spawner can now spawn 3d models

This commit is contained in:
Luca 2024-09-17 20:06:11 +02:00
parent ccd3ef577c
commit f025f89401
10 changed files with 59 additions and 34 deletions

View file

@ -1,8 +1,9 @@
[gd_scene load_steps=14 format=3 uid="uid://p8agd0dfam0p"]
[gd_scene load_steps=15 format=3 uid="uid://p8agd0dfam0p"]
[ext_resource type="PackedScene" uid="uid://be5bc5gjbo875" path="res://scenes/player.tscn" id="1_ra6oo"]
[ext_resource type="PackedScene" uid="uid://tyjgdu65yj3m" path="res://assets/models/round_bat/round_bat_skin.tscn" id="2_lks2w"]
[ext_resource type="PackedScene" uid="uid://dawpmu4vvv3rs" path="res://scenes/monster_spawnpoint.tscn" id="3_esgto"]
[ext_resource type="PackedScene" uid="uid://cytaswycabcel" path="res://scenes/monster.tscn" id="4_bpsqy"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_g80j5"]
sky_horizon_color = Color(0.64625, 0.65575, 0.67075, 1)
@ -87,3 +88,4 @@ script = null
[node name="MonsterSpawnpoint" parent="." instance=ExtResource("3_esgto")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6, 0, -10)
spawnable_monsters = Array[PackedScene]([ExtResource("4_bpsqy")])

8
scenes/monster.tscn Normal file
View file

@ -0,0 +1,8 @@
[gd_scene load_steps=3 format=3 uid="uid://cytaswycabcel"]
[ext_resource type="Script" path="res://scripts/monster.gd" id="1_13xtk"]
[ext_resource type="Resource" uid="uid://ym438vedcdyl" path="res://resources/DebugMonster1.tres" id="2_rjclr"]
[node name="Monster" type="Node3D"]
script = ExtResource("1_13xtk")
monster_stats = ExtResource("2_rjclr")

View file

@ -1,7 +1,7 @@
[gd_scene load_steps=6 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.gd" id="2_u38vv"]
[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"]