Commit Graph

9 Commits

Author SHA1 Message Date
Heller
aa2016cc40 feat: smooth snake animation + beautiful Avalonia UI 2026-06-19 10:02:11 +00:00
Heller
7d55a08380 feat: smooth snake animation + beautiful Avalonia UI overhaul
- Two-timer architecture: game timer + 60fps render timer for smooth interpolation
- Snake body: StreamGeometry path with teal gradient, rounded joins
- Directional head with white eyes and dark pupils
- Food: pulsating glow, highlight, green leaf animation
- Modern dark theme (#0D1117), glassmorphism HUD
- Speed indicator bar, score +N popup
- High score persistence to JSON
- All keyboard shortcuts: Arrows, WASD, Space/P pause, Enter start, R restart, Esc quit
- Window resizable, 640x540 default

New files: AnimationHelper.cs, HighScoreManager.cs, SnakeRenderer.cs
2026-06-19 10:02:07 +00:00
Heller
2e89c6dca3 fix: implement direction input queue for rapid key presses 2026-06-17 19:16:05 +00:00
Heller
06c51277b6 fix: replace pending direction with input queue to preserve all rapid key presses 2026-06-17 19:16:03 +00:00
Heller
76b9faba1a fix: rapid key input causing self-collision 2026-06-17 19:12:23 +00:00
Heller
f02e389580 fix: prevent self-collision on rapid multi-key input using pending direction buffer 2026-06-17 19:12:20 +00:00
Heller
7330880c96 fix: correct tail collision logic in SnakeGame and Snake 2026-06-17 19:04:32 +00:00
Heller
0d9710965c feat: fully functional CLI and Avalonia UI for Snake game 2026-06-17 19:03:22 +00:00
Heller
42fcaf8631 feat: initial project structure with Snake.Core, CLI and Avalonia skeleton 2026-06-17 19:02:07 +00:00