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
|
if self.keys["start"].isPressed then
|
||||||
self.world:switchActivity()
|
self.world:switchActivity()
|
||||||
|
self.assets:switchActivity()
|
||||||
self.scene:flushKeys()
|
self.scene:flushKeys()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -41,6 +41,7 @@ end
|
||||||
function Plateformer:update(dt)
|
function Plateformer:update(dt)
|
||||||
if (self.world.isActive == false) and self.sources[1].keys["start"].isPressed then
|
if (self.world.isActive == false) and self.sources[1].keys["start"].isPressed then
|
||||||
self.world:switchActivity()
|
self.world:switchActivity()
|
||||||
|
self.assets:switchActivity()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue