feat: 3D blobber dungeon generator (PR 1)

Replaces the 2D-only demo pipeline with a 3D cell-based blobber
generator. Per-cell face walls, per-material mesh emission, and a
GDExtension binding that returns a Dictionary with ArrayMesh surfaces
the demo consumes directly.

- src/blobber/: cell3d_t data model, dungeon container, pipeline that
  wraps the 2D generator per level and materializes into cell3d
- src/mesh/: face-quad emitter with per-material groups + .obj dump
- src/genesis3d_main.c: new CLI driving the blobber + mesh
- godot/: BrogueGen.generate_dungeon(seed, num_levels, depth) binding
  with dungeon_to_dict packing cells + mesh surfaces
- demo/: demo_blobber.tscn + dungeon_builder.gd, func_godot addon for
  the .map export path, point/entity templates, TrenchBroom docs
- Retired: old arcade/FPS demo scenes and their scripts, unused meshlib

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
saarsena@gmail.com 2026-04-18 13:24:27 -04:00
parent 6ee49c3375
commit 7a6ae79d01
160 changed files with 7209 additions and 2072 deletions

View file

@ -0,0 +1,11 @@
[gd_resource type="Resource" script_class="FuncGodotMapSettings" format=3 uid="uid://by3eva1ib4gyl"]
[ext_resource type="Script" uid="uid://38q6k0ctahjn" path="res://addons/func_godot/src/map/func_godot_map_settings.gd" id="1_script"]
[ext_resource type="Material" uid="uid://cvex6toty8yn7" path="res://addons/func_godot/textures/default_material.tres" id="2_material"]
[ext_resource type="Resource" path="res://data/fgd/brogue_fgd.tres" id="3_fgd"]
[ext_resource type="Script" uid="uid://cij36hpqc46c" path="res://addons/func_godot/src/import/quake_wad_file.gd" id="4_ajbga"]
[resource]
script = ExtResource("1_script")
entity_fgd = ExtResource("3_fgd")
base_texture_dir = "res://textures/"

View file

@ -0,0 +1,14 @@
[gd_resource type="Resource" script_class="FuncGodotFGDSolidClass" load_steps=2 format=3]
[ext_resource type="Script" uid="uid://5cow84q03m6a" path="res://addons/func_godot/src/fgd/func_godot_fgd_solid_class.gd" id="1_script"]
[resource]
script = ExtResource("1_script")
collision_shape_type = 2
collision_mask = 0
classname = "func_lava"
description = "Lava volume. Party takes damage on entry and lasting burn debuff. Swap for a custom Area3D script to drive behavior."
meta_properties = Dictionary[String, Variant]({
"color": Color(0.95, 0.4, 0.1, 1)
})
node_class = "Area3D"

View file

@ -0,0 +1,3 @@
[gd_scene format=3]
[node name="func_lava" type="Area3D"]

View file

@ -0,0 +1,14 @@
[gd_resource type="Resource" script_class="FuncGodotFGDSolidClass" load_steps=2 format=3]
[ext_resource type="Script" uid="uid://5cow84q03m6a" path="res://addons/func_godot/src/fgd/func_godot_fgd_solid_class.gd" id="1_script"]
[resource]
script = ExtResource("1_script")
collision_shape_type = 2
collision_mask = 0
classname = "func_water"
description = "Water volume. Party takes no damage but movement is slowed and fire is extinguished. Swap for a custom Area3D script to drive behavior."
meta_properties = Dictionary[String, Variant]({
"color": Color(0.15, 0.4, 0.75, 1)
})
node_class = "Area3D"

View file

@ -0,0 +1,3 @@
[gd_scene format=3]
[node name="func_water" type="Area3D"]

View file

@ -0,0 +1,15 @@
[gd_resource type="Resource" script_class="FuncGodotFGDPointClass" load_steps=3 format=3]
[ext_resource type="Script" uid="uid://cxsqwtsqd8w33" path="res://addons/func_godot/src/fgd/func_godot_fgd_point_class.gd" id="1_script"]
[ext_resource type="PackedScene" path="res://data/entities/point_door/point_door.tscn" id="2_scene"]
[resource]
script = ExtResource("1_script")
scene_file = ExtResource("2_scene")
apply_scale_on_map_build = false
classname = "point_door"
description = "Door marker placed on a door cell. 'angle' controls orientation. Behavior (open/close, locked) stubbed."
meta_properties = Dictionary[String, Variant]({
"color": Color(0.62, 0.38, 0.18, 1),
"size": AABB(-8, -16, -8, 16, 48, 16)
})

View file

@ -0,0 +1,3 @@
[gd_scene format=3]
[node name="point_door" type="Marker3D"]

View file

@ -0,0 +1,15 @@
[gd_resource type="Resource" script_class="FuncGodotFGDPointClass" load_steps=3 format=3]
[ext_resource type="Script" uid="uid://cxsqwtsqd8w33" path="res://addons/func_godot/src/fgd/func_godot_fgd_point_class.gd" id="1_script"]
[ext_resource type="PackedScene" path="res://data/entities/point_player_start/point_player_start.tscn" id="2_scene"]
[resource]
script = ExtResource("1_script")
scene_file = ExtResource("2_scene")
apply_scale_on_map_build = false
classname = "point_player_start"
description = "Dungeon party spawn at game start. Emitted once per exported .map at level 0's first stair-up (or first walkable cell if none)."
meta_properties = Dictionary[String, Variant]({
"color": Color(0.2, 0.6, 1, 1),
"size": AABB(-16, -16, -16, 32, 32, 32)
})

View file

@ -0,0 +1,3 @@
[gd_scene format=3]
[node name="point_player_start" type="Marker3D"]

View file

@ -0,0 +1,15 @@
[gd_resource type="Resource" script_class="FuncGodotFGDPointClass" load_steps=3 format=3]
[ext_resource type="Script" uid="uid://cxsqwtsqd8w33" path="res://addons/func_godot/src/fgd/func_godot_fgd_point_class.gd" id="1_script"]
[ext_resource type="PackedScene" path="res://data/entities/point_stair_down/point_stair_down.tscn" id="2_scene"]
[resource]
script = ExtResource("1_script")
scene_file = ExtResource("2_scene")
apply_scale_on_map_build = false
classname = "point_stair_down"
description = "Interact marker placed on a cell that should descend to the next level. Behavior (pickup, transition) stubbed."
meta_properties = Dictionary[String, Variant]({
"color": Color(0.85, 0.25, 0.2, 1),
"size": AABB(-16, -16, -16, 32, 32, 32)
})

View file

@ -0,0 +1,3 @@
[gd_scene format=3]
[node name="point_stair_down" type="Marker3D"]

View file

@ -0,0 +1,15 @@
[gd_resource type="Resource" script_class="FuncGodotFGDPointClass" load_steps=3 format=3]
[ext_resource type="Script" uid="uid://cxsqwtsqd8w33" path="res://addons/func_godot/src/fgd/func_godot_fgd_point_class.gd" id="1_script"]
[ext_resource type="PackedScene" path="res://data/entities/point_stair_up/point_stair_up.tscn" id="2_scene"]
[resource]
script = ExtResource("1_script")
scene_file = ExtResource("2_scene")
apply_scale_on_map_build = false
classname = "point_stair_up"
description = "Interact marker placed on a cell that should climb to the previous level. Behavior (pickup, transition) stubbed."
meta_properties = Dictionary[String, Variant]({
"color": Color(0.2, 0.8, 0.3, 1),
"size": AABB(-16, -16, -16, 32, 32, 32)
})

View file

@ -0,0 +1,3 @@
[gd_scene format=3]
[node name="point_stair_up" type="Marker3D"]

View file

@ -0,0 +1,15 @@
[gd_resource type="Resource" script_class="FuncGodotFGDFile" load_steps=9 format=3]
[ext_resource type="Script" uid="uid://drlmgulwbjwqu" path="res://addons/func_godot/src/fgd/func_godot_fgd_file.gd" id="1_script"]
[ext_resource type="Resource" uid="uid://crgpdahjaj" path="res://addons/func_godot/fgd/func_godot_fgd.tres" id="2_base"]
[ext_resource type="Resource" path="res://data/entities/point_player_start/point_player_start.tres" id="3_player_start"]
[ext_resource type="Resource" path="res://data/entities/point_stair_up/point_stair_up.tres" id="4_stair_up"]
[ext_resource type="Resource" path="res://data/entities/point_stair_down/point_stair_down.tres" id="5_stair_down"]
[ext_resource type="Resource" path="res://data/entities/point_door/point_door.tres" id="6_door"]
[ext_resource type="Resource" path="res://data/entities/func_water/func_water.tres" id="7_water"]
[ext_resource type="Resource" path="res://data/entities/func_lava/func_lava.tres" id="8_lava"]
[resource]
script = ExtResource("1_script")
base_fgd_files = Array[Resource]([ExtResource("2_base")])
entity_definitions = Array[Resource]([ExtResource("3_player_start"), ExtResource("4_stair_up"), ExtResource("5_stair_down"), ExtResource("6_door"), ExtResource("7_water"), ExtResource("8_lava")])