Exemplo n.º 1
0
        public InnerGameState(Input input, StateSystem stateSystem, TextureManager textureManager,
            GameData gameData, EffectsManager effectsManager)
        {
            this.input = input;
            this.stateSystem = stateSystem;
            this.textureManager = textureManager;
            this.gameData = gameData;
            this.effectsManager = effectsManager;

            OnGameStart();
        }
Exemplo n.º 2
0
        public Level(TextureManager textureManager, Input input, GameData gameData, EffectsManager effectsManager)
        {
            this.textureManager = textureManager;
            this.input = input;
            this.gameData = gameData;
            this.effectsManager = effectsManager;
            scoreboard = new Scoreboard(gameData, textureManager);

            // Initialize game data
            timeBetweenMoves = defaultSpeed;
            timer = timeBetweenMoves;
            lockTimer = lockSpeed;

            // Initialize boundaries
            InitBoundaries();

            // Initialize blocks
            InitGrid();
            minoManager = new TetrominoManager(this, textureManager, gameData);
            CreateMino();
            InitializeBoundingBlocks();
        }
Exemplo n.º 3
0
 private void InitializeEffects()
 {
     effectsManager = new EffectsManager(textureManager);
     effectsManager.Add("double", "Double!");
     effectsManager.Add("triple", "Triple!");
     effectsManager.Add("tetris", "Tetris!");
     effectsManager.Add("level_up", "Level Up!");
 }