Handbook
Glossary
wasd-world
Vocabulary
gpu
.
util
.
wasd
Class description
A wasd-world is a 3d world in which the camera can move using the keybindings 'w', 'a', 's' and 'd' and the view can rotate using the camera.
Definition
USING:
game.worlds
;
IN:
gpu.util.wasd
TUPLE:
wasd-world
<
game-world
location yaw pitch p-matrix
;
Methods
USING:
audio.engine
gpu.util.wasd
;
M:
wasd-world
audio-orientation
forward-vector
{
0.0 1.0 0.0
}
<audio-orientation-state>
;
inline
USING:
accessors
audio.engine
gpu.util.wasd
;
M:
wasd-world
audio-position
location>>
;
inline
USING:
accessors
gpu.state
gpu.util.wasd
kernel
ui.gadgets.worlds
;
M:
wasd-world
resize-world
[
<viewport-state>
set-gpu-state*
]
[
dup
generate-p-matrix
>>p-matrix
drop
]
bi
;
USING:
accessors
game.input
game.worlds
gpu.util.wasd
kernel
;
M:
wasd-world
tick-game-world
dup
focused?>>
[
[
wasd-keyboard-input
]
[
wasd-mouse-input
]
bi
reset-mouse
]
[
drop
]
if
;
USING:
gpu.util.wasd
kernel
;
M:
wasd-world
wasd-far-plane
drop
1024.0
;
USING:
gpu.util.wasd
kernel
;
M:
wasd-world
wasd-fly-vertically?
drop
t
;
USING:
gpu.util.wasd
kernel
;
M:
wasd-world
wasd-mouse-scale
drop
1.6666666666666668e-3
;
USING:
gpu.util.wasd
kernel
;
M:
wasd-world
wasd-movement-speed
drop
0.0625
;
USING:
gpu.util.wasd
kernel
;
M:
wasd-world
wasd-near-plane
drop
0.25
;
USING:
gpu.util.wasd
kernel
;
M:
wasd-world
wasd-pitch-range
drop
-pi/2
pi/2
;