Esempio n. 1
0
        public override void Initialise(MyGame myGame)
        {
            myGame.AddChild(myGame.Player = new Player(75, 100, 300));
            myGame.Player.Tank.rotation  += 90;
            myGame.Enemies.Add(new DumbEnemy(1000, 100, timeToShoot: 4f));
            myGame.Enemies.Add(new DumbEnemy(1000, 700, timeToShoot: 5f));

            myGame.AddBorders();

            myGame.AddDestructibleBlock(new Vec2(150, 0), new Vec2(150, 400), 30);
            myGame.AddDestructibleBlock(new Vec2(180, 0), new Vec2(180, 400), 30);
            myGame.AddDestructibleBlock(new Vec2(900, -50), new Vec2(850, 60), 30);
            myGame.AddDestructibleBlock(new Vec2(850, 60), new Vec2(850, 90), 30);
            myGame.AddDestructibleBlock(new Vec2(850, 110), new Vec2(850, 190), 30);
            myGame.AddDestructibleLine(new Vec2(865, 190), new Vec2(1200, 300));
        }