How bromscandium/astro works
Astro Game is a terminal-based C game. Its principal workflow starts with loading saved settings, enters the menu, and dispatches the player to gameplay, level selection, or the shop; settings are saved during these flows and at exit. Gameplay itself includes scrolling hazards, combat, and results, while the menu and level screens expose progress. The excerpts establish the calls among these components, but omit most of game.c and do not show the result implementation, so finer gameplay internals are not expanded.
Main entry points: menu.c Main menu · main.c Program entry · levels.c Level selection · game.c Gameplay
Components 11
Application
- Program entry
main.c - Settings file
- Main menu
menu.c - Menu display
menu.c
Play and Progress
- Gameplay
game.c - Level selection
levels.c - Level display
levels.c
Customization
- Shop
shop.c - Shop display
shop.c
Other components
- Player
- Terminal
Connections 17
- Player → Program entry: launches
README.md - Program entry → Settings file: loads settings
main.c - Program entry → Main menu: opens
main.c - Program entry → Settings file: saves settings
main.c - Program entry → Terminal: initializes UI
main.c - Main menu → Menu display: renders
menu.c - Main menu → Gameplay: starts play
menu.c - Main menu → Level selection: opens levels
menu.c - Main menu → Shop: opens shop
menu.c - Level selection → Level display: refreshes
levels.c - Level selection → Gameplay: starts level
levels.c - Level selection → Settings file: saves selection
levels.c - Shop → Shop display: refreshes
shop.c - Shop → Settings file: saves purchases
shop.c - Gameplay → Settings file: updates progress
game.c - Gameplay → Terminal: reads input
game.c - Main menu → Settings file: displays stats
menu.c