How userdvddev/cgrabrewritten works
Cash Grab! is a C++ arcade game built on SFML. The user-facing flow starts in the main menu, branches to options or play, shows a comic intro, then runs the falling-object game and returns to the menu when play ends. Within gameplay, the engine coordinates player movement, coin/bomb/power-up spawning, collisions, score/status, and game-over handling. The README is empty, so documented capabilities beyond the sampled code are unavailable; SFML internals are represented only as the external framework dependency.
Main entry points: mainGame.cpp Game Launcher · Funcs.cpp Game Engine · options-menu.cpp Options Menu · main-menu.cpp Main Menu
Components 12
Application Flow
- Game Launcher
mainGame.cpp - Program Entry
CgrabRewritten.cpp
Menus and Settings
- Main Menu
main-menu.cpp - Options Menu
options-menu.cpp
Gameplay
- Player
Funcs.h - Coins and Power-ups
Funcs.h - Bombs
Funcs.h - Game Engine
Funcs.cpp - Game Over
Funcs.h - Comic Intro
Funcs.h
SFML Runtime
- SFML Framework
Other components
- Player
Connections 18
- Player → Program Entry: starts
CgrabRewritten.cpp - Program Entry → Game Launcher: creates and runs
CgrabRewritten.cpp - Game Launcher → Main Menu: opens menu
mainGame.cpp - Main Menu → Game Launcher: returns choice
mainGame.cpp - Game Launcher → Options Menu: opens settings
mainGame.cpp - Game Launcher → Comic Intro: shows intro
mainGame.cpp - Game Launcher → Game Engine: runs gameplay
mainGame.cpp - Game Engine → Player: updates and renders
Funcs.cpp - Game Engine → Coins and Power-ups: spawns and updates
Funcs.cpp - Game Engine → Bombs: spawns and updates
Funcs.cpp - Game Engine → Game Over: handles game over
Funcs.cpp - Options Menu → Game Launcher: sets volume
mainGame.cpp - Main Menu → Options Menu: reads mute state
main-menu.cpp - Game Engine → Options Menu: reads audio levels
Funcs.cpp - Game Launcher → SFML Framework: uses window and audio
mainGame.cpp - Main Menu → SFML Framework: uses graphics and audio
main-menu.cpp - Options Menu → SFML Framework: uses graphics and audio
options-menu.cpp - Game Engine → SFML Framework: uses graphics and audio
Funcs.cpp