Commit Graph
11 Commits
Author SHA1 Message Date
pastilhas a3c9f201be test: increase initial game speed to 12 FPS for easier testing
- Change INITIAL_FPS from 5 to 12 for faster gameplay
- Makes it easier to test key buffering at higher speeds
- Can be reverted once testing is complete
2025-10-30 22:47:49 +00:00
pastilhas 762bc86878 feat(phase1.2b): implement Nokia-style key buffering system
- Add nextDirectionRef to buffer player input
- Update changeDirection() to queue input instead of immediate execution
- Add applyBufferedDirection() to safely apply buffered input
- Buffer prevents 180° reversals for safe turns
- Call applyBufferedDirection() after each successful move in game loop
- Remove collision grace period - no longer needed with key buffering
- Remove collisionGracePeriodRef and related logic
- Clean up all console.log statements from useGameStatus
- Game now feels responsive at high speeds
- Allows pre-emptive turning on board edges (Nokia Snake style)
- Build and example app work correctly
2025-10-30 22:39:21 +00:00
pastilhas 2b3a55df37 before Unified API 2025-10-30 22:14:04 +00:00
pastilhas 835f68de72 food score 2025-10-16 17:50:53 +01:00
pastilhas d02a8e9618 working on levels 2025-10-16 17:18:31 +01:00
pastilhas e4f5be1a56 food! 2025-10-16 16:22:09 +01:00
pastilhas cbb8cce833 snake personality... 2025-10-16 13:39:35 +01:00
pastilhas f37605d8d2 snake moving, changing directions, wall collision working 2025-10-16 13:30:26 +01:00
pastilhas 6a3cfad409 game start/stop, snake rendered on board 2025-10-16 12:56:15 +01:00
pastilhas 39dde6e5e6 prepared for publish 0.1.0 2025-10-16 12:32:35 +01:00
pastilhas 892e85ecf5 board consumed in example 2025-10-16 12:25:52 +01:00