Added dynamic spawning and despawning of objects
This commit is contained in:
parent
adbb208436
commit
e0cf8d9755
23 changed files with 794 additions and 350 deletions
|
|
@ -1,8 +1,7 @@
|
|||
[gd_scene format=3 uid="uid://b3yh6h7fdt160"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cue3c56axvyja" path="res://scripts/Player.cs" id="1_uwrxv"]
|
||||
[ext_resource type="Script" uid="uid://cy8nuarxbnd" path="res://scripts/GravityZone.cs" id="1_yqjtg"]
|
||||
[ext_resource type="Script" uid="uid://bwpdtkgmwjs7g" path="res://scripts/GravityReceiver.cs" id="3_lnu2h"]
|
||||
[ext_resource type="Script" uid="uid://dr6y711ano07p" path="res://scripts/QueueManager.cs" id="4_iywne"]
|
||||
[ext_resource type="Script" uid="uid://n557xfrv0i6x" path="res://scripts/GameControlManager.cs" id="4_lbhrr"]
|
||||
[ext_resource type="Script" uid="uid://bwgjvm21oi3d6" path="res://scripts/GameManager.cs" id="4_p57ef"]
|
||||
[ext_resource type="Script" uid="uid://betypbypf6bf2" path="res://scripts/GameMenuController.cs" id="5_iywne"]
|
||||
|
|
@ -16,14 +15,14 @@ size = Vector3(10, 0.5, 10)
|
|||
[sub_resource type="BoxShape3D" id="BoxShape3D_uwrxv"]
|
||||
size = Vector3(10, 5, 10)
|
||||
|
||||
[sub_resource type="CapsuleMesh" id="CapsuleMesh_8cj0n"]
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_uwrxv"]
|
||||
|
||||
[node name="Game" type="Node3D" unique_id=1201210338]
|
||||
[node name="Game" type="Node3D" unique_id=1201210338 node_paths=PackedStringArray("GameMenu", "QueueManager")]
|
||||
script = ExtResource("4_p57ef")
|
||||
GameMenu = NodePath("GameMenu")
|
||||
QueueManager = NodePath("QueueManager")
|
||||
closeTickInterval = 0.01
|
||||
|
||||
[node name="Plane" type="StaticBody3D" parent="." unique_id=1260154250]
|
||||
transform = Transform3D(1, 0, 0, 0, 0.99999994, 0, 0, 0, 0.99999994, 20, 0, 0)
|
||||
transform = Transform3D(1, 0, 0, 0, 0.99999994, 0, 0, 0, 0.99999994, 0, -10, 0)
|
||||
|
||||
[node name="PlaneMesh" type="MeshInstance3D" parent="Plane" unique_id=107049489]
|
||||
transform = Transform3D(5, 0, 0, 0, 1, 0, 0, 0, 5, 0, 0, 0)
|
||||
|
|
@ -41,37 +40,13 @@ script = ExtResource("1_yqjtg")
|
|||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.5, 0)
|
||||
shape = SubResource("BoxShape3D_uwrxv")
|
||||
|
||||
[node name="Player" type="CharacterBody3D" parent="." unique_id=612572257 node_paths=PackedStringArray("GameMenu")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 8.823173, 0.7854848)
|
||||
script = ExtResource("1_uwrxv")
|
||||
GameMenu = NodePath("../GameMenu")
|
||||
|
||||
[node name="Camera" type="Camera3D" parent="Player" unique_id=1097983892]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.6, 0)
|
||||
fov = 90.0
|
||||
|
||||
[node name="PlayerMesh" type="MeshInstance3D" parent="Player" unique_id=1440613415]
|
||||
mesh = SubResource("CapsuleMesh_8cj0n")
|
||||
|
||||
[node name="PlayerCollider" type="CollisionShape3D" parent="Player" unique_id=886478863]
|
||||
shape = SubResource("CapsuleShape3D_uwrxv")
|
||||
|
||||
[node name="GravityReceiver" type="Node3D" parent="Player" unique_id=1963556576]
|
||||
script = ExtResource("3_lnu2h")
|
||||
|
||||
[node name="OmniLight" type="OmniLight3D" parent="." unique_id=1887866205]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.6497431, -4.41529)
|
||||
omni_range = 500.0
|
||||
omni_attenuation = 0.1
|
||||
|
||||
[node name="GameManager" type="Node" parent="." unique_id=267630256 node_paths=PackedStringArray("player")]
|
||||
script = ExtResource("4_p57ef")
|
||||
player = NodePath("../Player")
|
||||
|
||||
[node name="GameControlManager" type="Node" parent="." unique_id=1751385863 node_paths=PackedStringArray("GameMenu")]
|
||||
script = ExtResource("4_lbhrr")
|
||||
GameMenu = NodePath("../GameMenu")
|
||||
|
||||
[node name="QueueManager" type="Node" parent="." unique_id=355148200]
|
||||
script = ExtResource("4_iywne")
|
||||
|
||||
[node name="GameMenu" type="Control" parent="." unique_id=223510406]
|
||||
visible = false
|
||||
layout_mode = 3
|
||||
|
|
@ -102,6 +77,8 @@ offset_bottom = 63.0
|
|||
layout_mode = 2
|
||||
text = "Main Menu"
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="." unique_id=226559047]
|
||||
|
||||
[connection signal="body_entered" from="Plane/GravityZone" to="Plane/GravityZone" method="OnBodyEntered"]
|
||||
[connection signal="body_exited" from="Plane/GravityZone" to="Plane/GravityZone" method="OnBodyExited"]
|
||||
[connection signal="pressed" from="GameMenu/VBoxContainer/MainMenuButton" to="GameMenu" method="OnMainMenu"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue