Beispiel #1
0
        private void Die()
        {
            var exp = new Explode(player.texture, player.position, player.size);

            explosions.Add(exp);
            player.isalive = false;
        }
Beispiel #2
0
        private void KillEnemyNoGold(Enemy ene)
        {
            var exp = new Explode(ene.texture, ene.position, ene.size);

            explosions.Add(exp);
            enemies.Remove(ene);
            enemieskilled++;
        }
Beispiel #3
0
        private void KillEnemy(Enemy ene)
        {
            var exp = new Explode(ene.texture, ene.position, ene.size);

            explosions.Add(exp);
            enemies.Remove(ene);
            enemieskilled++;
            player.gold += ene.reward;
        }