How sebiny12p/ratchet_and_clank_railfinity works
Railfinity is a C++20 Raylib action runner for PC and Android. The player enters through the game loop, navigates menus or starts a seeded run, then controls rail movement and combat while collecting resources and facing procedural sectors and bosses. Run outcomes feed weapon, armor, and career progression; the game also provides a wardrobe, Raritanium lab, radio comms, and soundtrack selection. The excerpts show the central game, audio, types, and RNG layers; several feature-specific relationships are therefore left unverified rather than inferred.
Main entry points: RailGame.cpp Game Controller · RailAudio.cpp Audio & Jukebox · main.cpp Game Loop · RailTypes.hpp Game Data Types
Components 18
Runtime
- Game Loop
src/main.cpp - Game Controller
src/RailGame.cpp - Game Data Types
include/RailTypes.hpp - Seeded RNG
include/DeterministicRNG.hpp
Run Gameplay
- Run Simulation
src/RailGame.cpp - Input Controls
src/RailGame.cpp - Combat & Weapons
src/RailGame.cpp - Sectors & Bosses
src/RailGame.cpp
Progression & Customization
- Bolts & Raritanium
src/RailGame.cpp - Weapon Mastery
src/RailGame.cpp - Wardrobe & Companions
src/RailGame.cpp - Vendor & Raritanium Lab
src/RailGame.cpp - Career & Skills
src/RailGame.cpp
Presentation
- 3D & UI Rendering
src/RailRenderer3D.cpp - Radio Comms
src/RailGame.cpp - Audio & Jukebox
src/RailAudio.cpp - Soundtrack Assets
assets
Other components
- Player
Connections 18
- Player → Game Loop: starts game
README.md - Game Loop → Game Controller: runs frames
src/main.cpp - Game Controller → Run Simulation: updates
src/RailGame.cpp - Game Controller → Input Controls: handles input
src/RailGame.cpp - Game Controller → Audio & Jukebox: plays effects
src/RailGame.cpp - Game Controller → Seeded RNG: uses seeded RNG
- Run Simulation → Game Data Types: uses state types
- Run Simulation → Combat & Weapons: resolves combat
src/RailGame.cpp - Run Simulation → Sectors & Bosses: spawns sectors
src/RailGame.cpp - Run Simulation → Bolts & Raritanium: collects resources
src/RailGame.cpp - Run Simulation → Radio Comms: shows comms
src/RailGame.cpp - Combat & Weapons → Weapon Mastery: earns weapon XP
src/RailGame.cpp - Bolts & Raritanium → Vendor & Raritanium Lab: funds upgrades
src/RailGame.cpp - Bolts & Raritanium → Wardrobe & Companions: funds cosmetics
src/RailGame.cpp - Run Simulation → Career & Skills: tracks career
src/RailGame.cpp - Game Controller → 3D & UI Rendering: renders screens
- Game Controller → Audio & Jukebox: selects music
- Audio & Jukebox → Soundtrack Assets: loads tracks