public override void Update() { base.Update(); if (Input.KeyPressed(Key.Any)) { var f = new RealDatabaseService(); f.Post(PlayerStats.stats); var scene = new Scene(); scene.Add(new ImageEntity(640, 360, "Images/rsz_bg.jpg")); PlayerStats.SetUp(); var card = new Card(); scene.Add(card); scene.Add(card.desc); scene.Add(card.fundo); scene.Add(card.firstOption); scene.Add(card.secondOption); var StWin = new StatusWindow(GameManger.game.Width - 400, GameManger.game.Height / 2); scene.Add(StWin); var a = new Planet(250, GameManger.game.Height / 2); scene.Add(a); scene.Add(a.image); GameManger.game.SwitchScene(scene); } }
public static void Main(string[] args) { PlayerStats.SetUp(); //var f = new RealDatabaseService(); //f.PostQuestion(); var game = new Game("Utopia", 1280, 720, 30, false); GameManger.AddGame(game); var scene = new Scene(); scene.Add(new ImageEntity(640, 360, "Images/BGA.gif")); var card = new Card(); scene.Add(card); scene.Add(card.desc); scene.Add(card.fundo); scene.Add(card.firstOption); scene.Add(card.secondOption); var StWin = new StatusWindow(game.Width - 400, game.Height / 2); scene.Add(StWin); var a = new Planet(250, game.Height / 2); scene.Add(a); scene.Add(a.image); game.Start(scene); //GameManger.AddToGameScene(new Planet(40, game.Height / 2)); }