Files
kiss-vscode/projects/asciilib2/examples/death-trap/source/PlayState.hx

24 lines
432 B
Haxe

package;
import flixel.FlxState;
import asciilib.Game;
import asciilib.backends.flixel.*;
class PlayState extends FlxState
{
var game:Game;
override public function create()
{
super.create();
game = new Game("Beware Yon Death Trap", 100, 40, 8, 12, new DeathTrapLogic(), new FlxGraphicsBackend());
}
override public function update(elapsed:Float)
{
super.update(elapsed);
game.update(elapsed);
game.draw();
}
}