Explorar o código

Add 3 spawn points in each level

Create the scene Spawner by the way.
DricomDragon %!s(int64=5) %!d(string=hai) anos
pai
achega
696a234ac2
Modificáronse 4 ficheiros con 36 adicións e 2 borrados
  1. 13 1
      Levels/Lab.tscn
  2. 13 1
      Levels/Square.tscn
  3. 4 0
      Spawner.gd
  4. 6 0
      Spawner.tscn

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 13 - 1
Levels/Lab.tscn


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 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 )