public override void Initialize() { base.Initialize(); _ammo = maxAmmo; doAfterSystem = EntitySystem.Get <DoAfterSystem>(); _sparkSystem = EntitySystem.Get <SparkSystem>(); }
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 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); }
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); }
public void Initiate() { sparkSystem = new SparkSystem(startPosition); smokeSystem = new SmokeSystem(startPosition); explosionSystem = new ExplosionSystem(startPosition); }