initial commit, kind of working.
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
package com.arc.dh.state
|
||||
{
|
||||
import com.arc.flixel.ArcButton;
|
||||
import com.arc.flixel.ArcSprite;
|
||||
import org.flixel.FlxG;
|
||||
|
||||
public class HelpScreen extends MenuScreen
|
||||
{
|
||||
|
||||
private static const sprite:Class = HelpScreen_sprite;
|
||||
|
||||
private var _help:ArcSprite;
|
||||
|
||||
private var _buttonBack:ArcButton;
|
||||
|
||||
public function HelpScreen(param1:MainMenu)
|
||||
{
|
||||
var M:MainMenu = param1;
|
||||
super(M);
|
||||
this._buttonBack = new ArcButton(135,210,87,26,StoryScreen.buttonBackSprite).callback(function():void
|
||||
{
|
||||
menu.switchScreen(menu.mainScreen);
|
||||
}).selectable(false);
|
||||
this.add(this._buttonBack);
|
||||
this._help = new ArcSprite(0,0,sprite);
|
||||
this.add(this._help);
|
||||
}
|
||||
|
||||
override public function update() : void
|
||||
{
|
||||
if(FlxG.keys.justPressed("ESCAPE"))
|
||||
{
|
||||
menu.switchScreen(menu.mainScreen);
|
||||
}
|
||||
super.update();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user