This commit is contained in:
Nicholas Butzke
2026-08-02 02:20:02 -04:00
parent 61669627db
commit 922983429e
226 changed files with 34032 additions and 18521 deletions
+13 -15
View File
@@ -1,5 +1,11 @@
extends TestLevelBuilder
func _build_environment() -> void:
# Dust 2 uses the warm sunset palette. Selecting it through the shared
# environment updates both the sky and the fullscreen ink pass.
LevelEnvironment.add_to(self, "sunset")
func _build_geometry() -> void:
# Build environment setup
_build_environment()
@@ -10,10 +16,9 @@ func _build_geometry() -> void:
# (keep the shared linear tonemap — ACES crushes the cel bands)
if environment.sky and environment.sky.sky_material:
var sky_mat = environment.sky.sky_material
sky_mat.sky_top_color = Color(0.3, 0.5, 0.8)
sky_mat.sky_horizon_color = Color(0.8, 0.7, 0.5)
sky_mat.ground_bottom_color = Color(0.2, 0.15, 0.1)
sky_mat.ground_horizon_color = Color(0.8, 0.7, 0.5)
sky_mat.set_shader_parameter("top_color", Color(0.3, 0.5, 0.8))
sky_mat.set_shader_parameter("horizon_color", Color(0.8, 0.7, 0.5))
sky_mat.set_shader_parameter("ground_color", Color(0.2, 0.15, 0.1))
_build_lighting()
var sun = get_node_or_null("Sun")
@@ -192,17 +197,10 @@ func _build_dust2_layout() -> void:
_build_dust2_dummies()
# Combat Area Bounds
var combat_area = load("res://entities/combat_area.gd").new()
combat_area.name = "CombatArea"
var area_shape = CollisionShape3D.new()
var cbox = BoxShape3D.new()
# Size the combat area to envelop the entire playable space (width and depth of 120, height of 20)
cbox.size = Vector3(120, 20, 120)
area_shape.shape = cbox
combat_area.add_child(area_shape)
# Center it on the map so it fits perfectly around the CSG boundaries
combat_area.position = Vector3(0, 10, 0)
add_child(combat_area)
# Envelops the playable space; centred so it fits around the CSG boundaries.
# Deeper than the old 20 m box, which sat with its floor at y = 0 and so
# never actually contained a player who had fallen below the map.
CombatArea.add_to(self, Vector3(120, 70, 120), Vector3(0, 25, 0))
func _build_dust2_dummies() -> void:
# Do not spawn dummies in real multiplayer matches