From ad75604ec79d70d328595f114e65bac80db9999f Mon Sep 17 00:00:00 2001 From: sanine-a Date: Sat, 31 Oct 2020 18:48:20 -0500 Subject: add additional texture types and refactor texture setup and loading --- demo/FPSCamera.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'demo/FPSCamera.lua') 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) -- cgit v1.2.1