Top-down twin-stick bullet-hell, Godot 4.7, server-authoritative dedicated server with client-side prediction. Clients send input only; the server resolves every hit for both players and enemies (no PvP). - SimWorld: whole simulation as plain RefCounted objects (no nodes, no physics server), ~0.24ms/tick at peak load -- runs headless for free and drives 78 tests in under a second - BulletPool: struct-of-arrays bullet storage, replicated as spawn/despawn events rather than per-tick state - Emitter framework (Ring/AimedSpread/WallGap/ArcSweep) shared by trash enemies and bosses -- a new boss is data in src/content/content.gd, no simulation changes - The Warden of the Fold: stationary 4-phase boss built entirely on that format - Lobby hub with a portal into on-demand dungeon instances; one process hosts the hub plus every concurrent dungeon - Emergency escape: 3s server-owned channel, cancelled by damage - tools/check.sh, test.sh (GUT), smoke.sh (real server + bot clients over ENet), bench.gd; git hooks wired to the same scripts - docs/ARCHITECTURE.md, NETCODE.md, WORKFLOW.md, ROADMAP.md
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
[gd_resource type="Resource" script_class="EnemyDef" format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://src/sim/patterns/bullet_emitter.gd" id="1_801wv"]
|
||||
[ext_resource type="Script" path="res://src/sim/patterns/aimed_spread_emitter.gd" id="2_bjhtk"]
|
||||
[ext_resource type="Script" path="res://src/actors/enemies/enemy_def.gd" id="3_e6oj1"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_vpd04"]
|
||||
script = ExtResource("2_bjhtk")
|
||||
count = 3
|
||||
spread_deg = 20.0
|
||||
interval = 120
|
||||
radius = 6.0
|
||||
lifetime = 240
|
||||
damage = 10
|
||||
|
||||
[resource]
|
||||
script = ExtResource("3_e6oj1")
|
||||
id = &"drifter"
|
||||
display_name = "Drifter"
|
||||
contact_damage = 8
|
||||
speed = 55.0
|
||||
emitters = Array[ExtResource("1_801wv")]([SubResource("Resource_vpd04")])
|
||||
pattern_loop_ticks = 120
|
||||
@@ -0,0 +1,14 @@
|
||||
[gd_resource type="Resource" script_class="EnemyDef" format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://src/sim/patterns/bullet_emitter.gd" id="1_ajtny"]
|
||||
[ext_resource type="Script" path="res://src/actors/enemies/enemy_def.gd" id="2_i7w5w"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_i7w5w")
|
||||
id = &"dummy"
|
||||
display_name = "Target Dummy"
|
||||
max_hp = 100000
|
||||
radius = 20.0
|
||||
contact_damage = 0
|
||||
move = 0
|
||||
visual = 3
|
||||
@@ -0,0 +1,16 @@
|
||||
[gd_resource type="Resource" script_class="EnemyDef" format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://src/sim/patterns/bullet_emitter.gd" id="1_dkoo8"]
|
||||
[ext_resource type="Script" path="res://src/actors/enemies/enemy_def.gd" id="2_t1lyl"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_t1lyl")
|
||||
id = &"stalker"
|
||||
display_name = "Stalker"
|
||||
max_hp = 30
|
||||
radius = 12.0
|
||||
contact_damage = 16
|
||||
move = 3
|
||||
speed = 95.0
|
||||
retarget_interval = 20
|
||||
visual = 2
|
||||
@@ -0,0 +1,25 @@
|
||||
[gd_resource type="Resource" script_class="EnemyDef" format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://src/sim/patterns/bullet_emitter.gd" id="1_asksf"]
|
||||
[ext_resource type="Script" path="res://src/sim/patterns/ring_emitter.gd" id="2_7m5d5"]
|
||||
[ext_resource type="Script" path="res://src/actors/enemies/enemy_def.gd" id="3_5udip"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_hc01i"]
|
||||
script = ExtResource("2_7m5d5")
|
||||
count = 10
|
||||
spin_per_shot_deg = 18.0
|
||||
interval = 150
|
||||
speed = 130.0
|
||||
|
||||
[resource]
|
||||
script = ExtResource("3_5udip")
|
||||
id = &"turret"
|
||||
display_name = "Turret"
|
||||
max_hp = 70
|
||||
radius = 16.0
|
||||
contact_damage = 0
|
||||
move = 0
|
||||
speed = 0.0
|
||||
visual = 1
|
||||
emitters = Array[ExtResource("1_asksf")]([SubResource("Resource_hc01i")])
|
||||
pattern_loop_ticks = 150
|
||||
Reference in New Issue
Block a user