]> git.localhorst.tv Git - blank.git/blob - running
use collision structures for ray tests
[blank.git] / running
1 Arguments
2 =========
3
4 Runtime
5 -------
6
7 -n <n>
8         terminate after <n> frames
9
10 -t <t>
11         terminate after <t> milliseconds
12
13 if both n and t are given, terminate after n frames and
14 assume <t> milliseconds pass each frame
15
16 --asset-path <path>
17         load assets from given path
18         default is application dir + "assets"
19
20 --save-path <path>
21         store and load saves at given path
22         default is whatever SDL thinks is good
23         (should be ~/.local/share/localhorst/blank/)
24
25 Application
26 -----------
27
28 -d
29         disable double buffering
30
31 -m <num>
32         set sample size to <num> (samples per pixel)
33
34 --no-vsync
35         disable vsync
36
37 Interface
38 ---------
39
40 --no-keyboard
41         disable keyboard input handling
42
43 --no-mouse
44         disable mouse input handling
45
46 --no-hud
47         disable HUD drawing (includes the selected block outline)
48
49 --no-audio
50         disable audio
51         the audio device and sounds will still be allocated
52         it just stops the interface from queueing buffers
53
54 World
55 -----
56
57 -s <seed>
58         use <seed> (unsigned integer) as the world seed
59         only used for newly created worlds
60         default is 0
61
62 --world-name <name>
63         use given name for the world save
64         no checks are being done right now, so make sure it can be
65         used as a directory name
66
67
68 Controls
69 ========
70
71 Move around with WSAD, shift, and space, look around with mouse motion.
72 Mouse button 1 deletes the block you're pointing at, button 2 selects it
73 as the active block, and button 3 places the active block next to the one
74 you're pointing at.
75
76 As an alternative to picking, you can also use the mousewheel up/down to
77 flip through available blocks.
78
79 Q changes the face of the active block (loops over up, down, right, left,
80 front, and back) and E changes the turn (none, left, around, and right).
81
82 Pressing B prints details about the block you're pointing at and P prints
83 info about the active block. L spits out the player position and light
84 level there. C dumps info about the chunk of the pointed at block.
85
86 Press N to toggle player/world collision.
87
88 F1 toggles UI rendering.
89 F3 toggles a display telling how long on average it takes to compute a frame.
90 F4 toggles audio.
91
92 Controls are interpreted by scancode, meaning you don't have to break your
93 fingers when you're on an AZERTY. WSAD will be ZSQD there and the above
94 description is just wrong.
95
96 Also I've added a plethora of alternate keys that can be used, like arrow
97 keys for movement, ins/del for placing/removing blocks, etc.