public override Boolean Activate(PlayerVerticalShooter player, GameTime gameTime) { BallisticLaser laser = new BallisticLaser(Game, spriteSheet); laser.PositionX = player.PositionX; laser.PositionY = player.PositionY; BasicBulletSetup(laser); Game.stateManager.shooterState.gameObjects.Add(laser); return(true); }
private void Setup() { Name = "Ballistic Laser"; Kind = "Primary"; energyCostPerSecond = 9f; delay = 1100; Weight = 200; ActivatedSoundID = SoundEffects.BigLaser; displaySprite = Game.spriteSheetItemDisplay.GetSubSprite(new Rectangle(600, 0, 100, 100)); bullet = new BallisticLaser(Game, spriteSheet); bullet.Initialize(); damage = 150; // Nonsense value! duration = 1000; speed = 1.5f; // Nonsense value! Value = 650; Tier = TierType.Good; numberOfShots = 1; }