How contactcodeknights/blockgame works
BlockGame is a Pygame platformer with a menu, playable levels, and an in-game level editor. The main workflow is selecting Play, loading the saved tile map, controlling a player through the level, and reaching its exit; selecting the editor instead lets players place tiles and save a map. The graph separates app flow, gameplay, and level authoring. Source excerpts show the runtime and map interactions; unsampled JSON contents and any behavior beyond the documented starter-project scope are not inferred.
Main entry points: main.py Game entry · settings.py Game settings · menu.py Main menu · editor.py Level editor
Components 8
App flow
- Game entry
BlockGame/main.py - Main menu
BlockGame/menu.py - Game settings
BlockGame/settings.py
Gameplay
- Level runtime
BlockGame/main.py - Player physics
BlockGame/player.py
Level authoring
- Level editor
BlockGame/editor.py - Saved level map
BlockGame/map_data.json
Other components
- Player
Connections 15
- Player → Main menu: chooses action
BlockGame/menu.py - Game entry → Main menu: runs menu
BlockGame/main.py - Main menu → Game entry: returns choice
BlockGame/main.py - Game entry → Level runtime: starts play
BlockGame/main.py - Game entry → Level editor: starts editor
BlockGame/main.py - Level runtime → Saved level map: loads map
BlockGame/main.py - Level editor → Saved level map: loads and saves
BlockGame/editor.py - Level runtime → Player physics: updates and draws
BlockGame/main.py - Game entry → Game settings: imports config
BlockGame/main.py - Main menu → Game settings: imports config
BlockGame/menu.py - Level runtime → Game settings: uses dimensions
BlockGame/main.py - Player physics → Game settings: imports config
BlockGame/player.py - Level editor → Game settings: imports config
BlockGame/editor.py - Player → Level runtime: controls character
- Player → Level editor: edits tiles
BlockGame/editor.py