Ejemplo n.º 1
0
        public override void Initialize()
        {
            player    = new Player(main);
            earth     = new Earth(main);
            bgLayer1  = new Background(main);
            bgLayer2  = new Background(main);
            bgLayer3  = new Background(main);
            formation = new Formation(main);
            bgLayer1.Initialize(0, -0.2f);
            bgLayer2.Initialize(1, -0.3f);
            bgLayer3.Initialize(2, -0.4f);

            //ui
            weaponIcon             = new Image(main.sprite.icon_bullet, new Vector2(45, 435), main);
            lifeIcon               = new Image(main.sprite.icon_live, new Vector2(45, 455), main);
            earthIcon              = new Image(main.sprite.icon_earth, new Vector2(45, 475), main);
            scoreText              = new Text(main);
            livesText              = new Text(main);
            planetText             = new Text(main);
            pauseText              = new Text(main);
            ammoText               = new Text(main);
            gameOverText           = new Text(main);
            earthHealth            = 100;
            gameOver               = false;
            main.utility.newColour = Color.Cyan * 0.8f;
        }