Exemple #1
0
 public GameView(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);
 }
Exemple #2
0
 public void Initiate()
 {
     sparkSystem     = new SparkSystem(startPosition);
     smokeSystem     = new SmokeSystem(startPosition);
     explosionSystem = new ExplosionSystem(startPosition);
 }