public override void Init() { this.scene = new Scene(new Camera2D(GetGraphics(),1280, 720), this); UIButton button = new UIButton("Play!", scene.GetWidth()/2, 320, 2.5f); scene.Add("start", button); UIButton highscores = new UIButton("Highscores", scene.GetWidth() / 2, 500, 2.5f); scene.Add("highscores", highscores); //UIButton exit = new UIButton("Level Editor", scene.GetWidth() / 2, 550, 2.5f); //scene.Add("editor", exit); UIImage title = new UIImage(Assets.GetRegion("title"), scene.GetWidth() / 2, 140, 1.5f); scene.Add("title", title); }
public void SetScene(Scene scene) { this.scene = scene; }