How smeckle-git/ripples_of_the_past works
Purpose and Entry Points
Godot game project for a narrative-driven 3D adventure/RPG: exploration of village, forest, intro, and “God Room” locations; NPC interaction; quests; companion behavior; dialogue choices; and journal/HUD UI. Project configuration is project.godot; the apparent gameplay root is scenes/Levels/Game.tscn, with destination scenes under scenes/Levels/Destinations/.
World and Scene Composition
Levels assemble reusable building, character, environmental, and GridMap-style terrain scenes. Major playable destinations are scenes/Levels/Destinations/Intro.tscn, scenes/Levels/Destinations/Village.tscn, and scenes/Levels/Destinations/GodRoom.tscn. Reusable world content is separated into scenes/Buildings/, scenes/environment/, and scenes/gridmap_blocks/; Terrain3D resources live in resources/terrain3d_resources/.
Player, Camera, and Movement State
The player is controlled through an explicit state-machine family: base state, machine, idle, walking, falling, dialogue, and follow states. This boundary centralizes movement/input behavior and makes dialogue or companion-follow modes distinct from ordinary traversal. Key paths: Scripts/player_prototype_st.gd, Scripts/managers/StateMachine/Player_State_machine.gd, Scripts/Camera/player_camera.gd.
Characters and Companion Systems
Named NPC scripts and character scenes represent story actors, while shared NPC/companion logic supports interaction and follow behavior. Character definitions are primarily scene-driven, with behavior scripts in Scripts/Characters/ and separate companion implementations in legacy/new-content directories. Key paths: scenes/Characters/Thorinn.tscn, Scripts/Characters/companion.gd, Scripts/npc.gd.
Quest and Narrative Progression
Quest scripts encode location- and character-specific progression, with a central quest manager and a karma/judgement branch layer. Dialogue timeline assets are content data consumed by Dialogic, allowing story flow and choices to be authored outside gameplay scripts. Key paths: Scripts/managers/quest_manager.gd, Scripts/Quests/Karma_global.gd, gui/Dialog/Timelines/Choose_which_villager_to_kill.dtl.
Interaction, Dialogue, and UI
In-world interaction flows through an interaction-area/manager layer into NPC, object, quest, or dialogue actions. HUD, journal, pause/settings, main menu, and loading UI are separate scene/script systems. Dialogic is vendored as an addon and provides runtime timeline handling, dialogue text, choices, variables, conditions, audio, and save-related subsystems. Key paths: Scripts/ui/InteractManager.gd, scenes/ui/Journal/Journal.tscn, addons/dialogic/Core/DialogicGameHandler.gd.
Transitions, Rendering, and Dependencies
Scene loading is handled by dedicated loaders and loading-screen UI, likely mediating destination transitions and minimizing blocking changes. Rendering uses Godot scenes, materials, particle scenes, and custom shaders; Terrain3D supplies native terrain binaries/editor tooling. No networked service or backend is evident. Key paths: Scripts/scene_loader.gd, scenes/ui/Loading_Screen/Scene_loader.tscn, addons/terrain_3d/terrain.gdextension.
Main entry points: InteractManager.gd Interaction Manager · Game.tscn Game Root · player_prototype_st.gd Player Controller · quest_manager.gd Quest Manager
Components 22
World & Scenes
- Game Root · Gameplay entry scene.
scenes/Levels/Game.tscn - Playable Destinations · Intro, Village, and God Room locations.
- Intro
scenes/Levels/Destinations/Intro.tscn - Village
scenes/Levels/Destinations/Village.tscn - God Room
scenes/Levels/Destinations/GodRoom.tscn - Reusable World Content · Buildings, environment, and GridMap terrain blocks.
- Terrain3D Resources
Gameplay
- Player Controller
Scripts/player_prototype_st.gd - Player State Machine · Separates traversal, falling, dialogue, and follow behavior.
Scripts/managers/StateMachine/Player_State_machine.gd - Player Camera
Scripts/Camera/player_camera.gd - NPCs & Companion · Shared interaction and companion-follow behavior.
Scripts/Characters/companion.gd - Thorinn
scenes/Characters/Thorinn.tscn - Interaction Manager · Routes in-world actions to NPCs, objects, quests, and dialogue.
Scripts/ui/InteractManager.gd
Narrative
- Quest Manager
Scripts/managers/quest_manager.gd - Karma Branching · Judgement and narrative branch layer.
Scripts/Quests/Karma_global.gd - Dialogue Timeline
gui/Dialog/Timelines/Choose_which_villager_to_kill.dtl
UI & Transitions
- Journal UI
scenes/ui/Journal/Journal.tscn - Scene Loader
Scripts/scene_loader.gd - Loading Screen
scenes/ui/Loading_Screen/Scene_loader.tscn
Engine Addons
- Dialogic Runtime · Runs timelines, choices, variables, conditions, audio, and saves.
addons/dialogic/Core/DialogicGameHandler.gd - Terrain3D Addon
addons/terrain_3d/terrain.gdextension
Other components
- Godot Project
project.godot
Connections 22
- Godot Project → Game Root: starts
- Game Root → Playable Destinations: hosts
- Playable Destinations → Intro: includes
- Playable Destinations → Village: includes
- Playable Destinations → God Room: includes
- Playable Destinations → Reusable World Content: composes
- Reusable World Content → Terrain3D Resources: uses
- Terrain3D Addon → Terrain3D Resources: provides
- Game Root → Player Controller: controls
- Player Controller → Player State Machine: delegates movement modes
- Player Controller → Player Camera: drives
- Player State Machine → NPCs & Companion: supports follow mode
- Thorinn → NPCs & Companion: uses behavior
- Interaction Manager → NPCs & Companion: activates
- Interaction Manager → Quest Manager: triggers progression
- Interaction Manager → Dialogic Runtime: starts dialogue
- Quest Manager → Karma Branching: evaluates branches
- Quest Manager → Journal UI: updates
- Dialogic Runtime → Dialogue Timeline: consumes
- Dialogue Timeline → Karma Branching: expresses choices
- Scene Loader → Loading Screen: shows
- Scene Loader → Playable Destinations: transitions to