소스 검색

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 )