1
0
mirror of https://github.com/Melon-Bread/Pet.GB synced 2024-11-28 13:58:20 -05:00

Added new egg animations

This commit is contained in:
Rain Clark 2016-10-09 05:30:25 -04:00
parent 02590653d3
commit ca98d16778
3 changed files with 7 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 403 B

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 889 B

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -67,16 +67,21 @@ class PlayState extends FlxState
if (_infoMenu.visible) if (_infoMenu.visible)
{ {
_gelPet.active = false; _gelPet.active = false;
_gelPet._clock.pause(true); _clock.pause(true);
_hud.active = false; _hud.active = false;
} }
else else
{ {
_gelPet.active = true; _gelPet.active = true;
_gelPet._clock.pause(false); _clock.pause(false);
_hud.active = true; _hud.active = true;
saveGame(); saveGame();
} }
if (_gelPet.CurrentMood == Gel.Mood.EXCITED || _gelPet.CurrentMood == Gel.Mood.ASHAMED)
_clock.pause();
else
_clock.pause(false);
} }
private function saveGame() private function saveGame()