public HoldArea(Level level, TetrominoManager minoManager, TextureManager textureManager) { this.level = level; this.minoManager = minoManager; this.textureManager = textureManager; position.X = (float)(level.grid[0, 0].X - Block.WIDTH); position.Y = (float)(level.grid[0, 0].Y); grid = new GridPosition[5, 5]; InitGrid(); }
public MinoQueue(TetrominoManager minoManager, Level level, TextureManager textureManager) { this.minoManager = minoManager; this.level = level; this.textureManager = textureManager; CreateNewMinoList(); AddMino(); AddMino(); AddMino(); position = new Point(leftEdge, topEdge); blockPointer = position; }
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(); }