public AsteroidEngine(Model currentTexture, Camera camera, List <Model> particleModel, int level) { asteroids = GameConstants.NumAsteroids * level; asteroidList = new List <Asteroid>(GameConstants.NumAsteroids * level); asteroidParticle = new ParticleEngine(particleModel); asteroids = asteroidList.Count(); asteroidTransforms = SetupEffectDefaults(currentTexture, camera); random = new Random(); }
public Player(Model currentTexture, Vector3 position, Vector3 velocity, Camera camera, List <Model> particleModel, int lives, int score, SoundEffectInstance engineInstance, SoundEffect explosionSound) { this.engineInstance = engineInstance; this.explosionSound = explosionSound; CurrentTexture = currentTexture; engineParticle = new ParticleEngine(particleModel); explosionParticle = new ParticleEngine(particleModel); Position = position; Velocity = velocity; isActive = true; hasScored = false; isSpawning = true; isVisible = true; flashTimer = 0.15f; random = new Random(); this.score = score; this.lives = lives; Transforms = camera.SetupEffectDefaults(CurrentTexture, camera); //cheat isInvulnerable = false; }