example/plateformer: also pause asset animation
This commit is contained in:
parent
e475604c57
commit
236184ce0c
2 changed files with 2 additions and 0 deletions
|
@ -26,6 +26,7 @@ function Player:update(dt)
|
|||
|
||||
if self.keys["start"].isPressed then
|
||||
self.world:switchActivity()
|
||||
self.assets:switchActivity()
|
||||
self.scene:flushKeys()
|
||||
end
|
||||
|
||||
|
|
|
@ -41,6 +41,7 @@ end
|
|||
function Plateformer:update(dt)
|
||||
if (self.world.isActive == false) and self.sources[1].keys["start"].isPressed then
|
||||
self.world:switchActivity()
|
||||
self.assets:switchActivity()
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue