Exemplo n.º 1
0
        public void ActuallySpawnShip()
        {
            EnemyShip ship = new EnemyShip("Enemy", CludoGame.CurrentScene, Vector2.One);

            ship.Body.IsStatic = true;
            CludoGame.CurrentScene.GameObjects.AddGameObject("Enemy", ship);
            timeToSpawn = false;
        }
Exemplo n.º 2
0
        public override void StartScene()
        {
            base.StartScene();
            Pipeline.LoadContent <Texture2D>("Spaceship", Content, true);
            Pipeline.LoadContent <Texture2D>("Shot", Content, true);


            Player = new Player("Player1", this, Vector2.One * 350);
            Player.Body.IsStatic = true;
            GameObjects.AddGameObject("Player1", Player);

            EnemyShip ship = new EnemyShip("Enemy", this, Vector2.One);

            ship.Body.IsStatic = true;
            GameObjects.AddGameObject("Enemy", ship);
            // enable this to see the collision boxes
            this.Debug = false;
        }