瀏覽代碼

Add 3 spawn points in each level

Create the scene Spawner by the way.
DricomDragon 5 年之前
父節點
當前提交
696a234ac2
共有 4 個文件被更改,包括 36 次插入2 次删除
  1. 13 1
      Levels/Lab.tscn
  2. 13 1
      Levels/Square.tscn
  3. 4 0
      Spawner.gd
  4. 6 0
      Spawner.tscn

文件差異過大導致無法顯示
+ 13 - 1
Levels/Lab.tscn


文件差異過大導致無法顯示
+ 13 - 1
Levels/Square.tscn


+ 4 - 0
Spawner.gd

@@ -0,0 +1,4 @@
+extends Position2D
+
+func _ready():
+	add_to_group("spawn")

+ 6 - 0
Spawner.tscn

@@ -0,0 +1,6 @@
+[gd_scene load_steps=2 format=2]
+
+[ext_resource path="res://Spawner.gd" type="Script" id=1]
+
+[node name="Spawn" type="Position2D"]
+script = ExtResource( 1 )