How alexbatalov/fallout2-ce works
Fallout 2 Community Edition is a cross-platform reimplementation of Fallout 2, preserving its gameplay with engine fixes and quality-of-life changes. The player supplies original game assets, launches the game, and plays through exploration, dialogue, inventory, combat, and world-map travel; saves and mod/script support are additional capabilities. Android adds an asset-import flow before launch. The graph includes major gameplay domains from the source tree, but most native implementation files were not excerpted, so their internal call relationships are intentionally omitted. Android and UI/rendering links use the available source references and excerpts.
Main entry points: map.cc Map exploration · main.cc Game startup · SDLActivity.java SDL activity · ImportActivity.java Asset import
Components 24
Mobile platform
- Asset import
os/android/app/src/main/java/com/alexbatalov/fallout2ce/ImportActivity.java - Android launcher
os/android/app/src/main/java/com/alexbatalov/fallout2ce/MainActivity.java - SDL activity
os/android/app/src/main/java/org/libsdl/app/SDLActivity.java - HID devices
os/android/app/src/main/java/org/libsdl/app/HIDDeviceManager.java - SDL audio
os/android/app/src/main/java/org/libsdl/app/SDLAudioManager.java
Game runtime
- Game startup
src/main.cc - Game configuration
src/config.cc - Save and load
src/loadsave.cc
Gameplay systems
- Map exploration
src/map.cc - World travel
src/worldmap.cc - Combat
src/combat.cc - Inventory
src/inventory.cc - Dialogue
src/game_dialog.cc - Character editor
src/character_editor.cc
Content and scripting
- Game prototypes
src/proto.h - Game scripts
src/scripts.cc - Sfall compatibility
src/sfall_opcodes.cc - Art resources
src/art.h
Input and presentation
- Input handling
src/input.h - Window manager
src/window_manager.cc - Display rendering
src/svga.h - Audio engine
src/audio_engine.cc
Other components
- Player
- Game assets
Connections 23
- Player → Asset import: selects assets
- Game assets → Asset import: provides files
- Asset import → Android launcher: returns to
os/android/app/src/main/java/com/alexbatalov/fallout2ce/ImportActivity.java - Android launcher → SDL activity: launches
os/android/app/src/main/java/com/alexbatalov/fallout2ce/MainActivity.java - SDL activity → HID devices: manages devices
os/android/app/src/main/java/org/libsdl/app/SDLActivity.java - Player → Game startup: starts game
- Game startup → Game configuration: loads settings
- Game startup → Map exploration: runs gameplay
- Map exploration → World travel: supports travel
- Map exploration → Combat: supports combat
- Map exploration → Dialogue: supports encounters
- Map exploration → Inventory: uses inventory
- Player → Character editor: creates character
- Game startup → Save and load: offers saves
- Combat → Game scripts: runs scripts
- Game scripts → Sfall compatibility: extends scripting
- Map exploration → Game prototypes: uses prototypes
- Map exploration → Art resources: uses art
- SDL activity → SDL audio: provides audio
- Input handling → Window manager: feeds events
src/window_manager.cc - Window manager → Display rendering: presents windows
src/window_manager.cc - Game startup → Audio engine: starts audio
- Game startup → Input handling: initializes input