adds collision to spawned monsters, moves player position 3 units back
This commit is contained in:
parent
f025f89401
commit
e8f06e7b99
12 changed files with 251 additions and 121 deletions
|
|
@ -1,8 +1,6 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://dawpmu4vvv3rs"]
|
||||
[gd_scene load_steps=4 format=3 uid="uid://dawpmu4vvv3rs"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/monster_spawnpoint.gd" id="1_eyon3"]
|
||||
[ext_resource type="Script" path="res://resources/monster_stats.gd" id="2_u38vv"]
|
||||
[ext_resource type="Resource" uid="uid://ym438vedcdyl" path="res://resources/DebugMonster1.tres" id="3_4axng"]
|
||||
|
||||
[sub_resource type="SphereMesh" id="SphereMesh_phb77"]
|
||||
radius = 0.4
|
||||
|
|
@ -16,10 +14,17 @@ roughness = 0.25
|
|||
|
||||
[node name="MonsterSpawnpoint" type="Node3D"]
|
||||
script = ExtResource("1_eyon3")
|
||||
spawnable_monsters = Array[ExtResource("2_u38vv")]([ExtResource("3_4axng")])
|
||||
|
||||
[node name="Diamond" type="MeshInstance3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0)
|
||||
mesh = SubResource("SphereMesh_phb77")
|
||||
surface_material_override/0 = SubResource("StandardMaterial3D_kvc2a")
|
||||
|
||||
[node name="VisibleOnScreenNotifier3D" type="VisibleOnScreenNotifier3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0)
|
||||
|
||||
[node name="Label3D" type="Label3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, 0)
|
||||
billboard = 1
|
||||
text = "0 / 5"
|
||||
font_size = 64
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue