Proper rotation
This commit is contained in:
parent
d9a4a4bf05
commit
ca8a44a017
3
main.lua
3
main.lua
@ -46,6 +46,7 @@ function update(delta)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function onkey(key, code, action, mod)
|
function onkey(key, code, action, mod)
|
||||||
|
print(key, code, action, mod)
|
||||||
if key == LEFT and action == 1 then
|
if key == LEFT and action == 1 then
|
||||||
vx = -1.0
|
vx = -1.0
|
||||||
elseif key == RIGHT and action == 1 then
|
elseif key == RIGHT and action == 1 then
|
||||||
@ -65,7 +66,7 @@ function onkey(key, code, action, mod)
|
|||||||
if key == Q then
|
if key == Q then
|
||||||
if action == 1 then
|
if action == 1 then
|
||||||
cam_rot_x = 1.0
|
cam_rot_x = 1.0
|
||||||
else
|
elseif action == 0 then
|
||||||
cam_rot_x = 0.0
|
cam_rot_x = 0.0
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user