Exemplo n.º 1
0
        public ModeGame(int amountSimpleTanks, int speedGame, int amountWalls, int amountHunterTanks)
        {
            r = new Random();
            score = new Score();
            player = new Player();
            simpleTanks = new List<EnemyTank>();
            hunterTanks = new List<HunterTank>();
            walls = new List<Wall>();
            projectiles = new List<Projectile>();
            gameStatus = GameStatus.STOP;
            this.amountSimpleTanks = amountSimpleTanks;
            this.speedGame = speedGame;
            this.amountWalls = amountWalls;
            this.amountHunterTanks = amountHunterTanks;

            CreateWalls(amountWalls);
            CreateHunterTanks();
            CreateSimpleTanks();
        }
Exemplo n.º 2
0
        public virtual void NewGame()
        {
            player = new Player();
            //score = new Score();
            simpleTanks = new List<EnemyTank>();
            hunterTanks = new List<HunterTank>();
            walls = new List<Wall>();
            projectiles = new List<Projectile>();

            amountHunterTanks = Properties.Settings.Default.amountHunterTanks;
            amountSimpleTanks = Properties.Settings.Default.amountSimpleTanks;
            speedGame = Properties.Settings.Default.speedGame;
            amountWalls = Properties.Settings.Default.amountWalls;

            CreateWalls(amountWalls);
            CreateHunterTanks();
            CreateSimpleTanks();

            gameStatus = GameStatus.STOP;
        }