add spawning

This commit is contained in:
2024-07-02 23:32:18 +02:00
parent b654df9f35
commit 130a538509
14 changed files with 387 additions and 81 deletions

View File

@@ -1,13 +1,15 @@
[gd_scene load_steps=16 format=2]
[gd_scene load_steps=18 format=2]
[ext_resource path="res://Tilesets/stone.png" type="Texture" id=1]
[ext_resource path="res://Tilesets/dirt.png" type="Texture" id=2]
[ext_resource path="res://Tilesets/water.png" type="Texture" id=3]
[ext_resource path="res://NPCs/goblin.tscn" type="PackedScene" id=4]
[ext_resource path="res://NPCs/ooze.tscn" type="PackedScene" id=5]
[ext_resource path="res://NPCs/malegoblin.tscn" type="PackedScene" id=4]
[ext_resource path="res://NPCs/femalegoblin.tscn" type="PackedScene" id=5]
[ext_resource path="res://NPCs/moss.tscn" type="PackedScene" id=6]
[ext_resource path="res://Audio/Background/cave.ogg" type="AudioStream" id=7]
[ext_resource path="res://camera.gd" type="Script" id=8]
[ext_resource path="res://NPCs/big_ooze.tscn" type="PackedScene" id=9]
[ext_resource path="res://spaw.gd" type="Script" id=10]
[sub_resource type="ConvexPolygonShape2D" id=1]
points = PoolVector2Array( 0, 0, 8, 0, 8, 8, 0, 8 )
@@ -157,20 +159,24 @@ position = Vector2( -4, 4 )
stream = ExtResource( 7 )
autoplay = true
[node name="goblin" parent="." instance=ExtResource( 4 )]
position = Vector2( 28, 52 )
[node name="moss" parent="." instance=ExtResource( 6 )]
position = Vector2( 44, 44 )
[node name="ooze" parent="." instance=ExtResource( 5 )]
position = Vector2( 28, 28 )
[node name="goblin2" parent="." instance=ExtResource( 4 )]
position = Vector2( 36, 36 )
[node name="moss2" parent="." instance=ExtResource( 6 )]
position = Vector2( 36, 20 )
[node name="ooze2" parent="." instance=ExtResource( 5 )]
position = Vector2( 36, 52 )
[node name="ooze" parent="." instance=ExtResource( 9 )]
position = Vector2( 36, 44 )
[node name="malegoblin" parent="." instance=ExtResource( 4 )]
position = Vector2( 12, 52 )
[node name="femalegoblin" parent="." instance=ExtResource( 5 )]
position = Vector2( 28, 52 )
[node name="Timer" type="Timer" parent="."]
process_mode = 0
wait_time = 10.0
autostart = true
script = ExtResource( 10 )
[connection signal="timeout" from="Timer" to="Timer" method="_on_Timer_timeout"]