1
0
mirror of https://github.com/Melon-Bread/Pet.GB synced 2025-02-26 17:39:33 -05:00

Added some notes on what I want added ☑️

Mostly Egg Animations
This commit is contained in:
Rain Clark 2016-10-08 01:11:16 -04:00
parent 95df787db8
commit f95db88008

View File

@ -32,6 +32,7 @@ class MenuState extends FlxState
_txtTitle.screenCenter(X); _txtTitle.screenCenter(X);
add(_txtTitle); add(_txtTitle);
// TODO: Animate this
_sprEgg = new FlxSprite(0, 0, AssetPaths.Egg__png); _sprEgg = new FlxSprite(0, 0, AssetPaths.Egg__png);
_sprEgg.x = (FlxG.width/2) - (_sprEgg.width/2); _sprEgg.x = (FlxG.width/2) - (_sprEgg.width/2);
_sprEgg.y = (FlxG.height/2) - (_sprEgg.height/2); _sprEgg.y = (FlxG.height/2) - (_sprEgg.height/2);
@ -59,6 +60,9 @@ class MenuState extends FlxState
private function pressStart():Void private function pressStart():Void
{ {
_sndSelect.play(true); _sndSelect.play(true);
// TODO: Play Egg cracking animation
FlxG.camera.fade(FlxColor.fromRGB(136, 192, 112, 0), 0.5, true, function() FlxG.camera.fade(FlxColor.fromRGB(136, 192, 112, 0), 0.5, true, function()
{ {
FlxG.switchState(new PlayState()); FlxG.switchState(new PlayState());