Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of https://github.com/bmac/pocket-universe

  • Loading branch information...
commit 924d8bf6ebf268070ed4c22f91cee07c1bc8832f 2 parents a4beff4 + a6ba80a
@vad710 vad710 authored
Showing with 25 additions and 6 deletions.
  1. +25 −6 src/CreditsState.as
View
31 src/CreditsState.as
@@ -12,7 +12,11 @@ package
private var music:MusicController;
- private var player:FlxSprite;
+ private var drop:FlxSprite;
+
+ [Embed(source="../assets/drop/ALL THE SPRITES.png")] private var player_sprite:Class;
+
+ private var backText:FlxText = new FlxText(0, 450, 960, "Press ESC to Return");
public function CreditsState()
{
@@ -21,8 +25,13 @@ package
override public function create():void
{
- FlxG.mouse.show();
- add(new FlxButton(430, 70, "Go To Menu", gotoMenu));
+ drop = new FlxSprite(369, -40)
+ drop.loadGraphic(player_sprite, true, true, 150, 150);
+ drop.addAnimation('idle', [0, 1, 2, 1, 0, 0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0, 2, 1, 3, 3, 3, 3, 2, 1, 0, 0, 0], 6, true);
+ add(drop);
+ drop.play("idle");
+ //FlxG.mouse.show();
+ //add(new FlxButton(430, 70, "Go To Menu", gotoMenu));
add(createText(100, 100, "Programming:"));
add(createText(100, 170, "Jonathan Rubinger"));
@@ -33,20 +42,30 @@ package
add(createText(450, 100,"Art:"));
- add(createText(700, 170, "Breeze"));
- add(createText(700, 170, "Emily"));
+ add(createText(450, 170, "Breeze Grigas"));
+ add(createText(450, 220, "Emily Hancock"));
+ add(createText(450, 320, "Chester T Kwan"));
add(createText(700, 100,"Audio:"));
add(createText(700, 170, "Jonathan Rubinger"));
-
+ backText.setFormat(null, 30, 0xFF00FF, "center");
+ add(backText);
// start the music
music = new MusicController();
}
+ override public function update():void
+ {
+ if (FlxG.keys.ESCAPE)
+ {
+ gotoMenu();
+ }
+ }
+
private function gotoMenu():void
{
FlxG.mouse.hide();
Please sign in to comment.
Something went wrong with that request. Please try again.