example/plateformer: also pause asset animation

This commit is contained in:
Kazhnuz 2019-05-30 13:56:14 +02:00
parent e475604c57
commit 236184ce0c
2 changed files with 2 additions and 0 deletions

View file

@ -26,6 +26,7 @@ function Player:update(dt)
if self.keys["start"].isPressed then
self.world:switchActivity()
self.assets:switchActivity()
self.scene:flushKeys()
end

View file

@ -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