Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updating the main menu screen.

  • Loading branch information...
commit f0519d90da1cacbfea05b6de5056113a9ea97f11 1 parent 2b4f167
@brettchalupa authored
View
BIN  assets/graphics/menu.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  assets/graphics/menu.xcf
Binary file not shown
View
2  source/Control/Game.as
@@ -29,7 +29,7 @@ package source.Control
override public function begin():void
{
//enable the console
- FP.console.enable();
+ //FP.console.enable();
//set the level to 0
Global.level = 0;
View
11 source/Control/Menu.as
@@ -26,11 +26,9 @@ package source.Control
//add each menu option from the menu.png
public var sprNewGame:Image = new Image(Assets.MENU, new Rectangle(0, 0, 640, 64));
public var sprNewGameHover:Image = new Image(Assets.MENU, new Rectangle(0, 64, 640, 64));
- public var sprLoadGame:Image = new Image(Assets.MENU, new Rectangle(0, 128, 640, 64));
- public var sprLoadGameHover:Image = new Image(Assets.MENU,new Rectangle(0,192,640,64));
//create a new graphic list of our images
- public var sprites:Graphiclist = new Graphiclist(sprBanner, sprNewGame, sprNewGameHover, sprLoadGame, sprLoadGameHover);
+ public var sprites:Graphiclist = new Graphiclist(sprBanner, sprNewGame, sprNewGameHover);
//variable that contains the entity that holds all the graphics
public var display:Entity;
@@ -47,7 +45,6 @@ package source.Control
//image positions
sprBanner.y = -128;
sprNewGame.y = sprNewGameHover.y = 200;
- sprLoadGame.y = sprLoadGameHover.y = 264;
}
override public function update():void
@@ -65,16 +62,14 @@ package source.Control
//set the incorrect images to visible/invisible
sprNewGame.visible = selected == 0 ? false : true;
sprNewGameHover.visible = !sprNewGame.visible;
- sprLoadGame.visible = selected == 1 ? false : true;
- sprLoadGameHover.visible = !sprLoadGame.visible;
//we're done changing
changed = false;
}
//change selection
- if ( Input.pressed( Global.keyDown ) ) { selected += 1; }
- if ( Input.pressed( Global.keyUp ) ) { selected -= 1; }
+ //if ( Input.pressed( Global.keyDown ) ) { selected += 1; }
+ //if ( Input.pressed( Global.keyUp ) ) { selected -= 1; }
if ( Input.pressed( Global.keyA ) ) {
//fade out, go to the game
Please sign in to comment.
Something went wrong with that request. Please try again.