380088c694
One-screen 640x360 arena (walls, grid floor, fixed view), mech with positioning-only movement (WASD/arrows, accel/decel, no aim), auto-fire KINETIC hardpoint (nearest-target, visible range ring) firing slugs that damage + knock back, untagged grunt trickle spawner with contact damage, hull bar HUD, scene-reload on hull zero. Headless smoke gate: tests/smoke.tscn asserts boot, piloting movement, spawning, input-free auto-fire, grunt lethality, knockback displacement. 3/3 passes on nh3-dev headless 4.7.1.
19 lines
516 B
Plaintext
19 lines
516 B
Plaintext
[gd_scene load_steps=4 format=3]
|
|
|
|
[ext_resource type="Script" path="res://scripts/mech.gd" id="1"]
|
|
[ext_resource type="Script" path="res://scripts/kinetic_weapon.gd" id="2"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="body"]
|
|
size = Vector2(20, 24)
|
|
|
|
[node name="Mech" type="CharacterBody2D"]
|
|
collision_layer = 2
|
|
collision_mask = 5
|
|
script = ExtResource("1")
|
|
|
|
[node name="Collision" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("body")
|
|
|
|
[node name="Weapon" type="Node2D" parent="."]
|
|
script = ExtResource("2")
|