mirror of
https://github.com/vrld/hump.git
synced 2024-11-23 12:24:19 +00:00
parent
77bdf42c68
commit
e750b7e651
@ -223,7 +223,7 @@ seconds have passed.
|
||||
::
|
||||
|
||||
-- shake the camera for one second
|
||||
local orig_x, orig_y = camera:pos()
|
||||
local orig_x, orig_y = camera:position()
|
||||
Timer.during(1, function()
|
||||
camera:lookAt(orig_x + math.random(-2,2), orig_y + math.random(-2,2))
|
||||
end, function()
|
||||
|
Loading…
Reference in New Issue
Block a user