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