Exemple #1
0
        public Level(Input input, TextureManager textureManager, PersistantGameData gameData)
        {
            _testSprite.Texture = textureManager.Get("explosion");
            _testSprite.SetAnimation(4, 4);

            _input = input;
            _gameData = gameData;
            _textureManager = textureManager;

            _background = new ScrollingBackground(textureManager.Get("background"));
            _background.SetScale(2, 2);
            _background.Speed = 0.15f;

            _backgroundLayer = new ScrollingBackground(textureManager.Get("background_layer_1"));
            _backgroundLayer.Speed = 0.1f;
            _backgroundLayer.SetScale(2.0, 2.0);

            _playerCharacter = new PlayerCharacter(_textureManager, _bulletManager);

            _enemyList.Add(new Enemy(_textureManager));
        }
Exemple #2
0
 internal void OnCollision(PlayerCharacter player)
 {
     // Handle collision with player.
 }
 internal void OnCollision(PlayerCharacter player)
 {
     // Handle collision with player.
 }