monster spawner and moving to the camera direction
This commit is contained in:
parent
8c29b8bffd
commit
b20f3b5124
821 changed files with 1611 additions and 1409 deletions
|
|
@ -1,7 +1,8 @@
|
|||
[gd_scene load_steps=13 format=3 uid="uid://p8agd0dfam0p"]
|
||||
[gd_scene load_steps=14 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://resources/models/round_bat/round_bat_skin.tscn" id="2_lks2w"]
|
||||
[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"]
|
||||
|
||||
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_g80j5"]
|
||||
sky_horizon_color = Color(0.64625, 0.65575, 0.67075, 1)
|
||||
|
|
@ -78,7 +79,11 @@ skeleton = NodePath("../..")
|
|||
shape = SubResource("BoxShape3D_522pk")
|
||||
|
||||
[node name="Monster" type="Node3D" parent="."]
|
||||
transform = Transform3D(0.886107, 0, 0.463482, 0, 1, 0, -0.463482, 0, 0.886107, -2, 0, -4)
|
||||
|
||||
[node name="RoundBatSkin" parent="Monster" instance=ExtResource("2_lks2w")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, -4)
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
||||
script = null
|
||||
|
||||
[node name="MonsterSpawnpoint" parent="." instance=ExtResource("3_esgto")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6, 0, -10)
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://cswuap81n7t3f"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://b6ylra30qxf30" path="res://resources/logo/logo.png" id="1_fpt28"]
|
||||
[ext_resource type="Texture2D" uid="uid://b6ylra30qxf30" path="res://assets/logo/logo.png" id="1_fpt28"]
|
||||
[ext_resource type="PackedScene" uid="uid://p8agd0dfam0p" path="res://scenes/debug_level.tscn" id="1_j851n"]
|
||||
[ext_resource type="FontFile" uid="uid://dmc6dygxrekja" path="res://resources/fonts/BreatheFireIii-PKLOB.ttf" id="2_vjast"]
|
||||
[ext_resource type="FontFile" uid="uid://dmc6dygxrekja" path="res://assets/fonts/BreatheFireIii-PKLOB.ttf" id="2_vjast"]
|
||||
[ext_resource type="Script" path="res://scripts/joystick.gd" id="4_6b5cb"]
|
||||
[ext_resource type="Texture2D" uid="uid://8anyvhkcy4ng" path="res://resources/textures/Xbox Series/Vector/xbox_button_a.svg" id="5_pwhwh"]
|
||||
[ext_resource type="Texture2D" uid="uid://8anyvhkcy4ng" path="res://assets/textures/Xbox Series/Vector/xbox_button_a.svg" id="5_pwhwh"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_7ngu6"]
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_7t5ln"]
|
||||
|
||||
[node name="Main" type="Node3D"]
|
||||
|
||||
|
|
@ -81,38 +81,27 @@ text = "Exit"
|
|||
|
||||
[node name="ControlsLayer" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="VBoxContainer" type="HBoxContainer" parent="ControlsLayer"]
|
||||
custom_minimum_size = Vector2(100, 100)
|
||||
[node name="VBoxContainer2" type="VBoxContainer" parent="ControlsLayer"]
|
||||
anchors_preset = 12
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_top = -300.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="Joystick" type="Panel" parent="ControlsLayer/VBoxContainer"]
|
||||
[node name="Panel" type="Panel" parent="ControlsLayer/VBoxContainer2"]
|
||||
custom_minimum_size = Vector2(200, 200)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_styles/panel = SubResource("StyleBoxEmpty_7ngu6")
|
||||
size_flags_horizontal = 0
|
||||
theme_override_styles/panel = SubResource("StyleBoxEmpty_7t5ln")
|
||||
script = ExtResource("4_6b5cb")
|
||||
|
||||
[node name="Thumbstick" type="TextureRect" parent="ControlsLayer/VBoxContainer/Joystick"]
|
||||
self_modulate = Color(0, 0, 0, 0.501961)
|
||||
[node name="Thumbstick" type="TextureRect" parent="ControlsLayer/VBoxContainer2/Panel"]
|
||||
custom_minimum_size = Vector2(100, 100)
|
||||
layout_mode = 0
|
||||
offset_left = 103.0
|
||||
offset_top = 100.0
|
||||
offset_right = 203.0
|
||||
offset_bottom = 200.0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
texture = ExtResource("5_pwhwh")
|
||||
expand_mode = 2
|
||||
|
||||
[node name="Spacer" type="Control" parent="ControlsLayer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_stretch_ratio = 1.1
|
||||
|
||||
[connection signal="gui_input" from="ControlsLayer/VBoxContainer/Joystick" to="ControlsLayer/VBoxContainer/Joystick" method="_on_gui_input"]
|
||||
[connection signal="resized" from="ControlsLayer/VBoxContainer/Joystick" to="ControlsLayer/VBoxContainer/Joystick" method="_on_resized"]
|
||||
[connection signal="gui_input" from="ControlsLayer/VBoxContainer2/Panel" to="ControlsLayer/VBoxContainer2/Panel" method="_on_gui_input"]
|
||||
[connection signal="resized" from="ControlsLayer/VBoxContainer2/Panel" to="ControlsLayer/VBoxContainer2/Panel" method="_on_resized"]
|
||||
|
|
|
|||
25
scenes/monster_spawnpoint.tscn
Normal file
25
scenes/monster_spawnpoint.tscn
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
[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="Resource" uid="uid://ym438vedcdyl" path="res://resources/DebugMonster1.tres" id="3_4axng"]
|
||||
|
||||
[sub_resource type="SphereMesh" id="SphereMesh_phb77"]
|
||||
radius = 0.4
|
||||
radial_segments = 4
|
||||
rings = 1
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_kvc2a"]
|
||||
albedo_color = Color(0.626709, 0.340723, 0.657327, 1)
|
||||
metallic = 1.0
|
||||
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="."]
|
||||
mesh = SubResource("SphereMesh_phb77")
|
||||
surface_material_override/0 = SubResource("StandardMaterial3D_kvc2a")
|
||||
|
||||
[node name="VisibleOnScreenNotifier3D" type="VisibleOnScreenNotifier3D" parent="."]
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://be5bc5gjbo875"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/player.gd" id="1_3fea3"]
|
||||
[ext_resource type="PackedScene" uid="uid://cy36aygvs66pn" path="res://resources/models/gobot/gobot_skin.tscn" id="2_vivad"]
|
||||
[ext_resource type="PackedScene" uid="uid://cy36aygvs66pn" path="res://assets/models/gobot/gobot_skin.tscn" id="2_vivad"]
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_xuba7"]
|
||||
height = 1.7
|
||||
|
|
@ -16,8 +16,10 @@ transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0,
|
|||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.85, 0)
|
||||
shape = SubResource("CapsuleShape3D_xuba7")
|
||||
|
||||
[node name="SpringArm3D" type="SpringArm3D" parent="."]
|
||||
[node name="CameraRoot" type="Node3D" parent="."]
|
||||
|
||||
[node name="SpringArm3D" type="SpringArm3D" parent="CameraRoot"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.64528, 2.83335)
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="SpringArm3D"]
|
||||
[node name="Camera3D" type="Camera3D" parent="CameraRoot/SpringArm3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 0.965926, 0.258819, 0, -0.258819, 0.965926, 0, 0.0210915, 0.372644)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue