-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added functionality to choose whether a user wants level progression …
…or not, and reflect that in the game window. (#39) * Make level progression optional Change level progression from mandatory to optional: - Add progression flag to control automatic level increases - Preserve fixed starting level option when progression is disabled - Add UI indicator showing current progression mode (ON/OFF) - Pass progression setting through game restarts This allows players to stay at their chosen difficulty level rather than being forced into increasingly faster speeds through automatic progression. * feat: Add level progression option to level picker - Introduce LevelConfig type to bundle level number and progression setting - Add two-step menu system for selecting level and progression mode - Implement UP/DOWN navigation and selection for progression options - Add visual highlighting for selected menu options - Update UI to show different screens for level and progression selection * feat: Add optional level progression system - Add progression flag to Game state - Update initGame to accept progression parameter - Modify levelFinished to respect progression setting - Add progression lens to exposed interface - Make level advancement conditional on progression flag * refactor: Add progression toggle to level selection Modify level selection flow to include progression mode choice: - Update LevelConfig to include progression flag - Pass progression setting through to game initialization - Default to fixed level (progression off) when level specified via CLI - Keep high score and hard drop functionality unchanged This connects the new progression toggle UI with the initial game setup, allowing the mode choice to be made during level selection. * Update tetris.cabal * Update Main.hs * Update Tetris.hs * Update Game.hs * Update Game.hs * Update Game.hs * Update Game.hs * Update PickLevel.hs * Update Game.hs * Update Game.hs
- Loading branch information
1 parent
b0c7f6c
commit fcbdf10
Showing
5 changed files
with
162 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters