How poltergeistfunk/hy452-snake works
HY452-Snake is a desktop Snake game with menus and cloud-backed scores. The player launches the game, navigates menus to play or manage an account and preferences, then can view scores and customize backgrounds or music. The README describes DynamoDB-backed scoring; the sampled client shows HTTP requests for scores, accounts, and assets, but not the cloud service implementation. Menu excerpts are partial, so some menu-to-client links are shown only where calls are visible.
Main entry points: game.py Snake gameplay · server.py Score and asset client · main.py Game launcher · menu.py Main menu
Components 13
Game application
- Game launcher
src/main.py - Snake gameplay
src/game.py - Game settings
config.yaml - Game artwork
assets/images
Player menus
- Main menu
src/menu.py - High scores
src/menu.py - Background and music
src/menu.py - Registration and login
src/menu.py - User profile
src/menu.py
Cloud client
- Score and asset client
src/server.py
Other components
- Player
- Cloud game API
- DynamoDB scores
Connections 13
- Player → Game launcher: launches
README.md - Game launcher → Snake gameplay: creates
src/main.py - Player → Snake gameplay: controls
README.md - Snake gameplay → Game settings: loads config
src/game.py - Snake gameplay → Game artwork: loads artwork
src/game.py - Snake gameplay → Main menu: uses menus
src/game.py - Player → Main menu: navigates
README.md - High scores → Score and asset client: fetches leaderboard
src/menu.py - Background and music → Score and asset client: fetches assets
src/menu.py - Registration and login → Score and asset client: registers and logs in
src/menu.py - User profile → Snake gameplay: reads player state
src/menu.py - Score and asset client → Cloud game API: sends HTTP requests
src/server.py - Cloud game API → DynamoDB scores: stores scores
README.md