diff options
author | sanine-a <sanine.not@pm.me> | 2020-10-31 18:48:20 -0500 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2020-10-31 18:48:20 -0500 |
commit | ad75604ec79d70d328595f114e65bac80db9999f (patch) | |
tree | c0eefa1a3795db995283418b54b558a8a33ceaec /demo/FPSCamera.lua | |
parent | 3dca6a336c9fd54b0847249b5771d39141daa3ae (diff) |
add additional texture types and refactor texture setup and loading
Diffstat (limited to 'demo/FPSCamera.lua')
-rw-r--r-- | demo/FPSCamera.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/demo/FPSCamera.lua b/demo/FPSCamera.lua index 7ee3cf8..7c33242 100644 --- a/demo/FPSCamera.lua +++ b/demo/FPSCamera.lua @@ -42,6 +42,13 @@ function camera:update(dt) movement:setAt(1, 0) movement:normalize() + + if honey.input.key.is_down(honey.input.key.left_shift) then + movement:add(Vector.Vec3.Y_UNIT, movement) + end + if honey.input.key.is_down(honey.input.key.left_control) then + movement:sub(Vector.Vec3.Y_UNIT, movement) + end movement:muls(self.movement_speed*dt, movement) self.position:add(movement, self.position) |