示例#1
0
 public EnemyManager(TextureManager textureManager, EffectsManager effectsManager, BulletManager bulletManager, SoundManager soundManager, int leftBound)
 {
     _textureManager = textureManager;
     _effectManager  = effectsManager;
     _bulletManager  = bulletManager;
     _soundManager   = soundManager;
     _leftBound      = leftBound;
 }
 public PlayerCharacter(TextureManager textureManager, BulletManager bulletManager, SoundManager soundManager, EffectsManager effectsManager)
 {
     _sprite.Texture = textureManager.Get("player");
     _sprite.SetScale(0.15, 0.15);
     _bulletManager  = bulletManager;
     _bulletTexture  = textureManager.Get("player_lazer");
     _missleTexture  = textureManager.Get("missle");
     MissleAmmo      = 10;
     _soundManager   = soundManager;
     _effectsManager = effectsManager;
 }
示例#3
0
 public Level(Input input, PersistantGameData data, TextureManager textureManager, SoundManager soundManager, EffectsManager efffectManager, BulletManager bulletManager, PlayerCharacter playerCharacter)
 {
     _input           = input;
     _gameData        = data;
     _textureManager  = textureManager;
     _effectsManager  = efffectManager;
     _soundManager    = soundManager;
     _bulletManager   = bulletManager;
     _enemyManager    = new EnemyManager(_textureManager, _effectsManager, _bulletManager, _soundManager, -1400);
     _playerCharacter = playerCharacter;
     SetLevel();
 }
        //const double TIMEOUT = 4;
        //double _countDown = TIMEOUT;

        public InnerGameState(StateSystem system, Input input, PersistantGameData gameData, Killer1.Font generalFont, TextureManager textureManager, SoundManager soundManager)
        {
            _system                     = system;
            _input                      = input;
            _gameData                   = gameData;
            _generalFont                = generalFont;
            _textureManager             = textureManager;
            _effectsManager             = new EffectsManager(_textureManager);
            _soundManager               = soundManager;
            _playerCharacter            = new PlayerCharacter(_textureManager, _bulletManager, _soundManager, _effectsManager);
            _playerCharacter.MissleAmmo = 10;
            OnGameStart();
        }
示例#5
0
        public Enemy(TextureManager textureManager, EffectsManager effectsManager, BulletManager bulletManager, SoundManager soundManager)
        {
            _sprite.Texture = textureManager.Get("fish_ship");
            _effectsManager = effectsManager;
            _soundManager   = soundManager;

            _bulletManager = bulletManager;
            _bulletTexture = textureManager.Get("enemy_lazer");
            MaxTimeToShoot = 12;
            MinTimeToShoot = 1;
            RestartShootCountDown();

            _sprite.SetScale(_scale, _scale);
            _sprite.SetUVs(new Killer1.Point(0, 0), new Killer1.Point(-1, 1));
            _sprite.SetPosition(200, 0);
            Health = 2;
        }