How run2go/blockjump works
Block Jump is a small Rust/SDL2 platform-jumping game. Its single-file runtime initializes a window and game state, processes input, updates physics and platforms, then draws the player, platforms, and score. The README describes it as work in progress and documents no additional capabilities. All implementation evidence comes from the excerpted main file; the graph separates its meaningful runtime responsibilities without implying independent modules.
Main entry points: main.rs Game loop and state
Components 7
Game runtime
- Game loop and state
src/main.rs
Gameplay logic
- Player input and physics
src/main.rs - Platform generation
src/main.rs - Score and reset
src/main.rs
Rendering
- Game renderer
src/main.rs
Other components
- Player
- SDL window and input
Connections 9
- Player → Game loop and state: provides input
src/main.rs - Game loop and state → SDL window and input: polls events
src/main.rs - Game loop and state → Player input and physics: updates state
src/main.rs - Game loop and state → Platform generation: initializes platforms
src/main.rs - Player input and physics → Platform generation: checks collisions
src/main.rs - Player input and physics → Score and reset: updates score
src/main.rs - Game loop and state → Score and reset: resets on fall
src/main.rs - Game loop and state → Game renderer: renders state
src/main.rs - Game renderer → SDL window and input: draws frame
src/main.rs