Commit Graph

22 Commits

Author SHA1 Message Date
9a3c1a0688 updated asteroids 2025-12-20 14:19:50 +01:00
970259e3d6 used tileset sprite sheet for asteroids 2025-12-20 13:50:56 +01:00
737dc71d8c seperate assets as constants 2025-12-20 12:05:40 +01:00
a520de6c1f Added hold block and minor fixes 2025-12-20 11:10:23 +01:00
989b98002c new background image 2025-12-18 07:20:20 +01:00
9d989ab395 new next block 2025-12-07 19:02:03 +01:00
12bc4870b1 fix statistics 2025-12-07 17:51:54 +01:00
2b4b07ae6a fixed statistics 2025-12-07 17:30:18 +01:00
ec9eb45cc3 gameplay score board 2025-12-06 21:07:17 +01:00
1355ce49fe visual makeover of backgrounds for each level 2025-12-06 20:07:04 +01:00
f24d484496 fixed highscore 2025-12-06 15:10:41 +01:00
cb8293175b new main screen 2025-12-06 12:42:29 +01:00
fff14fe3e1 New fonts 2025-12-06 11:09:12 +01:00
b44de25113 latest state 2025-12-06 09:43:33 +01:00
383b2e48ec new background for main screen 2025-12-01 20:52:26 +01:00
7f07036f07 fixes for mac music 2025-11-30 15:19:14 +01:00
5fd77fdaf0 Added new level sound 2025-11-30 10:37:35 +01:00
9a035df452 Removed unused graphics 2025-11-23 08:35:24 +01:00
77a9237e25 converted from bmp to jpg 2025-11-22 21:46:00 +01:00
ec2bb1bb1e feat: Add Firebase high score sync, menu music, and gameplay improvements
- Integrate Firebase Realtime Database for high score synchronization
  - Add cpr and nlohmann-json dependencies for HTTP requests
  - Implement async score loading from Firebase with local fallback
  - Submit all scores > 0 to Firebase in background thread
  - Always prompt for player name on game over if score > 0

- Add dedicated menu music system
  - Implement menu track support in Audio class with looping
  - Add "Every Block You Take.mp3" as main menu theme
  - Automatically switch between menu and game music on state transitions
  - Load menu track asynchronously to prevent startup delays

- Update level speed progression to match web version
  - Replace NES frame-based gravity with explicit millisecond values
  - Implement 20-level speed table (1000ms to 60ms)
  - Ensure consistent gameplay between C++ and web versions

- Fix startup performance issues
  - Move score loading to background thread to prevent UI freeze
  - Optimize Firebase network requests with 2s timeout
  - Add graceful fallback to local scores on network failure

Files modified:
- src/persistence/Scores.cpp/h - Firebase integration
- src/audio/Audio.cpp/h - Menu music support
- src/core/GravityManager.cpp/h - Level speed updates
- src/main.cpp - State-based music switching, async loading
- CMakeLists.txt - Add cpr and nlohmann-json dependencies
- vcpkg.json - Update dependency list
2025-11-22 09:47:46 +01:00
66099809e0 feat: implement textured line clear effects and refine UI alignment
- **Visual Effects**: Upgraded line clear particles to use the game's block texture instead of simple circles, matching the reference web game's aesthetic.
- **Particle Physics**: Tuned particle velocity, gravity, and fade rates for a more dynamic explosion effect.
- **Rendering Integration**: Updated [main.cpp](cci:7://file:///d:/Sites/Work/tetris/src/main.cpp:0:0-0:0) and `GameRenderer` to pass the block texture to the effect system and correctly trigger animations upon line completion.
- **Menu UI**: Fixed [MenuState](cci:1://file:///d:/Sites/Work/tetris/src/states/MenuState.cpp:19:0-19:55) layout calculations to use fixed logical dimensions (1200x1000), ensuring consistent centering and alignment of the logo, buttons, and settings icon across different window sizes.
- **Code Cleanup**: Refactored `PlayingState` to delegate effect triggering to the rendering layer where correct screen coordinates are available.
2025-11-21 21:19:14 +01:00
d161b2c550 Initial release: SDL Windows Tetris 2025-08-15 11:01:48 +02:00