diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-11-14 03:16:25 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-11-14 03:18:46 +0100 |
| commit | 709170b972314313fa89b80c48a48128e8df4177 (patch) | |
| tree | 5b6491661e2c447a8bdc82274e45cc05110d323f | |
| parent | 512f93be601b3b70ac90d958b0706f3c383a7423 (diff) | |
| download | nj26-709170b972314313fa89b80c48a48128e8df4177.tar.gz | |
Fix broken stuff
| -rw-r--r-- | Spatial.gd | 2 | ||||
| -rw-r--r-- | Spatial.tscn | 4 | ||||
| -rw-r--r-- | basefloor.gd | 16 |
3 files changed, 17 insertions, 5 deletions
@@ -20,7 +20,6 @@ func _physics_process(delta): var basefloor = get_node("basefloor") for b in boxes: - if b pass # Called when the node enters the scene tree for the first time. @@ -31,7 +30,6 @@ func _ready(): var b = box.instance() var pos = Vector3(randpos(), 10, randpos()) - print(pos) b.translate(pos) add_child(b) boxes += [b] diff --git a/Spatial.tscn b/Spatial.tscn index 47b5e74..f655124 100644 --- a/Spatial.tscn +++ b/Spatial.tscn @@ -1,6 +1,5 @@ -[gd_scene load_steps=13 format=2] +[gd_scene load_steps=12 format=2] -[ext_resource path="res://StaticBody.gd" type="Script" id=1] [ext_resource path="res://zombie.tscn" type="PackedScene" id=2] [ext_resource path="res://jail.tscn" type="PackedScene" id=3] [ext_resource path="res://Spatial.gd" type="Script" id=4] @@ -40,7 +39,6 @@ mesh = SubResource( 1 ) material/0 = SubResource( 8 ) [node name="StaticBody" type="StaticBody" parent="basefloor/MeshInstance2"] -script = ExtResource( 1 ) [node name="CollisionShape" type="CollisionShape" parent="basefloor/MeshInstance2/StaticBody"] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0 ) diff --git a/basefloor.gd b/basefloor.gd index e69de29..ce31a59 100644 --- a/basefloor.gd +++ b/basefloor.gd @@ -0,0 +1,16 @@ +extends MeshInstance + + +# Declare member variables here. Examples: +# var a = 2 +# var b = "text" + + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +#func _process(delta): +# pass |
