How jadfuhr/paleopals works
PaleoPals is a 2D fossil-digging game. The player starts the game, explores and mines a layered map, collects fossils and other items, and can view fossil progress in a museum or spend money on trader upgrades. NPC paleontologists add autonomous mining and fossil-collection behavior. The source index confirms several direct dependencies, but the excerpts do not show the full game-state orchestration or all UI interactions; those links are omitted or marked unverified rather than inferred as definite calls.
Main entry points: Game.cpp Game loop · NPC.cpp Paleontologist NPC · BTSelectorNode.cpp Behavior composites · Map.cpp World map
Components 18
Game runtime
- Game loop
PaleoPals/PaleoPals/Game.cpp - Main menu
PaleoPals/PaleoPals/Menu.cpp - Pause menu
PaleoPals/PaleoPals/Paused.cpp
Digging world
- World map
PaleoPals/PaleoPals/Map.cpp - Fossil manager
PaleoPals/PaleoPals/Fossil.cpp
Player and NPCs
- Player movement
PaleoPals/PaleoPals/Player.cpp - Paleontologist NPC
PaleoPals/PaleoPals/NPC.cpp - Behavior node base
PaleoPals/PaleoPals/BTNode.h - Behavior composites
PaleoPals/PaleoPals/BTSelectorNode.cpp - Surface wandering
PaleoPals/PaleoPals/BTWanderSurfaceNode.cpp - Mining behavior
PaleoPals/PaleoPals/BTMiningNode.cpp - Return behavior
PaleoPals/PaleoPals/BTReturnToSurfaceNode.cpp - Fossil collection behavior
PaleoPals/PaleoPals/BTCollectFossilNode.cpp
Collection and services
- Museum collection
PaleoPals/PaleoPals/Museum.cpp - Museum exhibits
PaleoPals/PaleoPals/MuseumInterior.cpp - Trader
PaleoPals/PaleoPals/Trader.cpp - Trader upgrades
PaleoPals/PaleoPals/TraderMenu.cpp
Other components
- Player
Connections 24
- Player → Game loop: starts
- Game loop → World map: uses
PaleoPals/PaleoPals/Game.cpp - Player movement → World map: reads and damages
PaleoPals/PaleoPals/Player.cpp - Player movement → Fossil manager: checks pickups
PaleoPals/PaleoPals/Player.cpp - Paleontologist NPC → World map: mines and navigates
- Mining behavior → Paleontologist NPC: acts on
PaleoPals/PaleoPals/BTMiningNode.cpp - Return behavior → Paleontologist NPC: acts on
PaleoPals/PaleoPals/BTReturnToSurfaceNode.cpp - Surface wandering → Paleontologist NPC: acts on
PaleoPals/PaleoPals/BTWanderSurfaceNode.cpp - Fossil collection behavior → Paleontologist NPC: acts on
PaleoPals/PaleoPals/BTCollectFossilNode.cpp - Behavior composites → Behavior node base: implements
PaleoPals/PaleoPals/BTSelectorNode.cpp - Fossil collection behavior → Behavior node base: implements
- Museum exhibits → Fossil manager: loads species data
- World map → Museum collection: owns
- World map → Trader: owns
- Game loop → Main menu: coordinates
- Game loop → Pause menu: coordinates
- Game loop → Player movement: updates and renders
- Game loop → Paleontologist NPC: updates and renders
- Game loop → Museum exhibits: opens and updates
- Game loop → Trader upgrades: handles trading
- Behavior composites → Surface wandering: dispatches
- Behavior composites → Mining behavior: dispatches
- Behavior composites → Return behavior: dispatches
- Behavior composites → Fossil collection behavior: dispatches