How sanjyasz/quantic_horizon works
Purpose and Runtime
This is a Godot game project centered on a 3D player experience in the Tidehaven level, with traversal/tools, HUD/menu UI, audio, and an integrated HeightTerrain terrain system. Runtime code is primarily GDScript and Godot scenes/resources; Godot project startup is configured in project.godot. The concrete main scene is not available from the provided tree.
World and Level Composition
The primary authored level is Tidehaven, represented by a scene plus level controller:
• LEVELS/Tidehaven/tidehaven.tscn
• LEVELS/Tidehaven/tidehaven.gd
• GRAPHICS/Hterrain/terrain_generation.tscn
Warp locations are reusable scene/script units, likely placed by levels and activated by player interaction:
• LEVELS/warp_point/warp_point.tscn
• LEVELS/warp_point/warp_point.gd
Terrain data is stored as HeightTerrain resources/images rather than generated only at runtime:
• GRAPHICS/Hterrain/data.hterrain
• GRAPHICS/Hterrain/height.res
Player Control and Equipment
The player is a compositional scene with movement/controller scripts and a character model:
• PLAYER/Player/Player.tscn
• PLAYER/Player/player.gd
• PLAYER/Player/camera_controller.gd
Three distinct player tools implement gameplay capabilities and establish natural interaction boundaries with the world: disruption, scanning/messaging, and teleportation.
• PLAYER/Tools/disruptor/disruptor.gd
• PLAYER/Tools/resonograph/resonograph.gd
• PLAYER/Tools/translocator/translocator.gd
The translocator has its own scene and visual-effect scene, suggesting an interaction flow from tool activation to warp feedback:
• PLAYER/Tools/translocator/translocator.tscn
• PLAYER/Tools/translocator/warp_effect.tscn
Shared Game State, UI, and Feedback
Global.gd is the likely project-wide state/service boundary; consumers should avoid creating parallel global state without inspecting its API:
• Global.gd
The UI layer is scene-driven. HUD presentation is separate from radial tool/menu selection:
• UI/HUD/HUD.tscn
• UI/HUD/date_time_display.gd
• UI/RadialMenu/radial_menu.gd
Audio is asset-backed, with a music scene and reusable SFX files; gameplay scripts/scenes are expected to trigger these through Godot audio nodes rather than an external audio service:
• AUDIO/MUSIC/background_music.tscn
• AUDIO/SFX/warp.mp3
• AUDIO/SFX/sonar-ping.mp3
Terrain Rendering, Physics, and Details
The bundled zylann.hterrain addon owns terrain representation, chunk lifecycle, meshing, colliders, texture sets, and detail layers:
• ADDONS/zylann.hterrain/hterrain.gd
• ADDONS/zylann.hterrain/hterrain_data.gd
• ADDONS/zylann.hterrain/hterrain_mesher.gd
Control flow is terrain data → LOD chunk/mesh generation → collider/rendering. Terrain material output is GPU shader-based and supports multiple splat/array strategies:
• ADDONS/zylann.hterrain/hterrain_chunk.gd
• ADDONS/zylann.hterrain/hterrain_collider.gd
• ADDONS/zylann.hterrain/shaders/multisplat16.gdshader
Detail/vegetation rendering is a distinct layer over the terrain:
• ADDONS/zylann.hterrain/hterrain_detail_layer.gd
• GRAPHICS/ASSETS/GRASS/grass.res
Native and Editor Boundaries
HeightTerrain includes an optional compiled native module for performance-sensitive image operations and quadtree LOD, with GDScript fallbacks/factory mediation:
• ADDONS/zylann.hterrain/native/factory.gd
• ADDONS/zylann.hterrain/native/src/quad_tree_lod.cpp
• ADDONS/zylann.hterrain/native/bin/osx/libhterrain_native.dylib
The addon also includes a Godot Editor plugin and terrain authoring tools. These are development-time infrastructure, not core game-loop systems:
• ADDONS/zylann.hterrain/plugin.cfg
• ADDONS/zylann.hterrain/tools/plugin.gd
• ADDONS/zylann.hterrain/tools/brush/terrain_painter.gd
Main entry points: Player.tscn Player · hterrain.gd Terrain Runtime · tidehaven.tscn Tidehaven Level · translocator.tscn Translocator
Components 23
Game Runtime
- Godot Project · Configures project startup; main scene is unspecified.
project.godot - Global State · Shared game state boundary.
Global.gd - HUD
UI/HUD/HUD.tscn - Radial Menu
UI/RadialMenu/radial_menu.gd - Background Music
AUDIO/MUSIC/background_music.tscn
World
- Tidehaven Level
LEVELS/Tidehaven/tidehaven.tscn - Terrain Generation Scene
GRAPHICS/Hterrain/terrain_generation.tscn - Warp Point
LEVELS/warp_point/warp_point.tscn
Player & Tools
- Player
PLAYER/Player/Player.tscn - Player Controller
PLAYER/Player/player.gd - Camera Controller
PLAYER/Player/camera_controller.gd - Disruptor
PLAYER/Tools/disruptor/disruptor.gd - Resonograph · Scanning and messaging tool.
PLAYER/Tools/resonograph/resonograph.gd - Translocator
PLAYER/Tools/translocator/translocator.tscn - Warp Effect
PLAYER/Tools/translocator/warp_effect.tscn
HeightTerrain
- Terrain Data · Authored height and terrain data.
GRAPHICS/Hterrain/data.hterrain - Terrain Runtime · Owns terrain representation and chunk lifecycle.
ADDONS/zylann.hterrain/hterrain.gd - LOD Chunk Meshing · Builds LOD chunks and meshes from terrain data.
ADDONS/zylann.hterrain/hterrain_chunk.gd - Terrain Colliders
ADDONS/zylann.hterrain/hterrain_collider.gd - Terrain Shader
ADDONS/zylann.hterrain/shaders/multisplat16.gdshader - Terrain Details
ADDONS/zylann.hterrain/hterrain_detail_layer.gd
Native & Authoring
- Native Factory · Selects native implementations or GDScript fallbacks.
ADDONS/zylann.hterrain/native/factory.gd - Terrain Editor Plugin · Development-time terrain authoring tools.
ADDONS/zylann.hterrain/tools/plugin.gd
Connections 26
- Godot Project → Tidehaven Level: starts scene
- Tidehaven Level → Player: hosts
- Tidehaven Level → Terrain Generation Scene: composes
- Tidehaven Level → Warp Point: places
- Terrain Generation Scene → Terrain Runtime: uses
- Terrain Data → Terrain Runtime: supplies terrain
- Terrain Runtime → LOD Chunk Meshing: manages
- LOD Chunk Meshing → Terrain Colliders: builds physics
- LOD Chunk Meshing → Terrain Shader: renders with
- Terrain Runtime → Terrain Details: layers details
- Terrain Runtime → Native Factory: uses optimized ops
- Terrain Editor Plugin → Terrain Runtime: authors
- Player → Player Controller: controls
- Player → Camera Controller: uses
- Player → Disruptor: equips
- Player → Resonograph: equips
- Player → Translocator: equips
- Translocator → Warp Point: activates
- Translocator → Warp Effect: spawns feedback
- Player → HUD: drives presentation
- Radial Menu → Disruptor: selects
- Radial Menu → Resonograph: selects
- Radial Menu → Translocator: selects
- Player → Global State: reads and updates
- Global State → HUD: provides state
- Tidehaven Level → Background Music: plays