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