Пример #1
0
 public GameController(Texture2D spark, Texture2D smoke, Texture2D explosion, Rectangle gameWindow, Vector2 startPosition)
 {
     this.spark = spark;
     this.smoke = smoke;
     this.explosion = explosion;
     this.gameWindow = gameWindow;
     this.startPosition = startPosition;
     sparkSystem = new SparkSystem(startPosition);
     smokeSystem = new SmokeSystem(startPosition);
     explosionSystem = new ExplosionSystem(startPosition);
 }
Пример #2
0
 public GameController(Texture2D spark, Texture2D smoke, Texture2D explosion, Rectangle gameWindow,
     Vector2 startPosition, SpriteBatch spriteBatch, Camera camera, SoundEffect explosionSound)
 {
     this.spark = spark;
     this.smoke = smoke;
     this.explosion = explosion;
     this.gameWindow = gameWindow;
     this.startPosition = startPosition;
     this.spriteBatch = spriteBatch;
     this.camera = camera;
     this.explosionSound = explosionSound;
     sparkSystem = new SparkSystem(startPosition);
     smokeSystem = new SmokeSystem(startPosition);
     explosionSystem = new ExplosionSystem(startPosition, explosionSound);
 }
Пример #3
0
 public void Initiate()
 {
     sparkSystem = new SparkSystem(startPosition);
     smokeSystem = new SmokeSystem(startPosition);
     explosionSystem = new ExplosionSystem(startPosition);
 }