How jpach-cs/se322mt_miner works
Montana Tech Miner is a small C platform-game prototype. The principal workflow is keyboard movement and jumping, followed by physics and floor/boundary handling, sprite-frame selection, and drawing the miner and floor. These stages are implemented together in one game loop rather than separate modules. The loop uses raylib for window, input, texture, and drawing operations and raymath for vector arithmetic; it also attempts to load a sprite from resources. The source shows no broader game systems. The resource directory’s contents were not provided, so the sprite’s presence is unverified.
Main entry points: main.c Miner game loop · raylib.h Window and graphics API · raymath.h Vector math API · resources Miner sprite asset
Components 5
Game prototype
- Miner game loop
src/main.c
Runtime APIs
- Window and graphics API
include/raylib.h - Vector math API
include/raymath.h
Game assets
- Miner sprite asset
resources
Other components
- Player
Connections 4
- Player → Miner game loop: provides input
readme.md - Miner game loop → Window and graphics API: uses window, input, drawing
src/main.c - Miner game loop → Vector math API: adds position vectors
src/main.c - Miner game loop → Miner sprite asset: loads texture
src/main.c