How bit-racer/bit-racer-assembly-game works
Bit Racer is an x86 assembly racing game. The intended player workflow is to start the game, navigate a race, and see the result; the README confirms the game and its assembly implementation but does not describe its controls or runtime module wiring. The source tree suggests distinct input, movement, track, rendering, and interface responsibilities, so those appear as separate components with unverified links. The sampled image converter is also shown as an asset-authoring utility. Most assembly sources were not sampled, so their relationships remain dashed rather than asserted.
Main entry points: main.asm Game Entry · track.inc Track State · moveP.inc Player Input · drawM.inc Display Drawing
Components 17
Game Runtime
- Game Entry
src/main.asm - Game Constants
src/consts.inc - Shared Procedures
src/procs.inc
Race Systems
- Player Input
src/moveP.inc - Car Movement
src/moveM.inc - Random Events
src/randomP.inc - Track State
src/track.inc - Player Track Logic
src/trackMP.inc - Track Logic
src/trackMM.inc - Power-ups
src/puM.inc
Display and Interface
- Player Drawing
src/drawP.inc - Display Drawing
src/drawM.inc - Chat Interface
src/chatP.inc - Chat Display
src/chatM.inc
Asset Authoring
- Image Data
src/image-includes - Image Converter
src/convert_all.py
Other components
- Player
Connections 16
- Player → Game Entry: starts game
- Game Entry → Player Input: handles input
- Player Input → Car Movement: drives movement
- Game Entry → Track State: uses track
- Track State → Player Track Logic: supports player
- Track State → Track Logic: supports track
- Game Entry → Random Events: uses randomness
- Game Entry → Power-ups: uses power-ups
- Game Entry → Player Drawing: draws player
- Game Entry → Display Drawing: draws display
- Game Entry → Chat Interface: uses chat
- Chat Interface → Chat Display: uses display
- Display Drawing → Image Data: uses image data
- Image Converter → Image Data: generates image data
- Game Entry → Game Constants: uses constants
- Game Entry → Shared Procedures: uses procedures