This repository has been archived on 2024-02-25. You can view files and clone it, but cannot push or open issues or pull requests.
spaaace/src/MenuScene.hx
Bram van der Veen 21e68289a8 Added menu scene
2014-07-05 22:41:30 +02:00

22 lines
No EOL
514 B
Haxe

import com.haxepunk.Scene;
import com.haxepunk.HXP;
import com.haxepunk.graphics.Text;
import MenuButton;
import Title;
class MenuScene extends Scene {
public override function begin() {
var play = new MenuButton(HXP.width / 2, HXP.height / 2, "Play!");
var title = new Title(HXP.width / 2, (HXP.height / 2) - 400);
var copy = new Text("By Bram \"96AA48\" van der Veen, 2014", HXP.width / 2, HXP.height - 50);
copy.size = 22;
copy.centerOrigin();
add(title);
add(play);
addGraphic(copy);
}
}