substantial work on saving and loading and hub mechanic
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
[gd_scene load_steps=112 format=4 uid="uid://6agmt1hqlhww"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/LevelManager.gd" id="1_sbpvn"]
|
||||
[ext_resource type="PackedScene" uid="uid://brl0bsqjl5dg3" path="res://assets/mac_10.tscn" id="2_fn4vb"]
|
||||
[ext_resource type="Resource" uid="uid://dn3t7wcoumlm3" path="res://GameModes/standard.tres" id="2_cuqu0"]
|
||||
[ext_resource type="Texture2D" uid="uid://ckjcv72jcojjh" path="res://assets/materials/91_laurel hedge PBR texture-seamless_hr/91_laurel hedge_DIFF (Custom).jpg" id="3_3ov8a"]
|
||||
[ext_resource type="LightmapGIData" uid="uid://bwpvltmeo4cfl" path="res://assets/LevelBlockouts/blockout_2.lmbake" id="3_d2pxn"]
|
||||
[ext_resource type="Texture2D" uid="uid://d210plbmb7a2o" path="res://assets/materials/91_laurel hedge PBR texture-seamless_hr/91_laurel hedge_NORM (Custom).jpg" id="4_5u2rd"]
|
||||
@@ -898,12 +898,8 @@ _data = {
|
||||
[node name="BLOCKOUT2Test" type="Node3D" node_paths=PackedStringArray("player")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.016016, 0.0225029, -0.0192337)
|
||||
script = ExtResource("1_sbpvn")
|
||||
load_save = false
|
||||
gamemode = ExtResource("2_cuqu0")
|
||||
player = NodePath("Player")
|
||||
money = 50
|
||||
start_health = 5
|
||||
gun_1 = ExtResource("2_fn4vb")
|
||||
health_drop_enabled = false
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource("9_3usor")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.137423, 1.78365, 12.8627)
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://b3kmoledivusi"]
|
||||
|
||||
[ext_resource type="FontFile" uid="uid://d2h2tjhxiv5wo" path="res://assets/fonts/White On Black.ttf" id="1_3u3rp"]
|
||||
[ext_resource type="Script" path="res://scripts/dead_announce.gd" id="2_12exd"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_ic2ps"]
|
||||
font = ExtResource("1_3u3rp")
|
||||
font_size = 500
|
||||
|
||||
[node name="PickupAnnounce" type="Label"]
|
||||
offset_right = 3440.0
|
||||
offset_bottom = 1440.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 6
|
||||
text = "CLEARED"
|
||||
label_settings = SubResource("LabelSettings_ic2ps")
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
script = ExtResource("2_12exd")
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
visible = false
|
||||
y_sort_enabled = true
|
||||
layout_mode = 0
|
||||
offset_top = 1.0
|
||||
offset_right = 3840.0
|
||||
offset_bottom = 2161.0
|
||||
color = Color(0.615686, 0, 0.0980392, 0.356863)
|
||||
19
assets/level_sign.tscn
Normal file
19
assets/level_sign.tscn
Normal file
@@ -0,0 +1,19 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://eujx0yilqqcp"]
|
||||
|
||||
[ext_resource type="FontFile" uid="uid://d2h2tjhxiv5wo" path="res://assets/fonts/White On Black.ttf" id="1_uwkow"]
|
||||
[ext_resource type="Script" path="res://scripts/level_sign.gd" id="1_vvlkm"]
|
||||
|
||||
[node name="Level Sign" type="Node3D"]
|
||||
script = ExtResource("1_vvlkm")
|
||||
|
||||
[node name="Level Name" type="Label3D" parent="."]
|
||||
transform = Transform3D(0.7, 0, 0, 0, 0.7, 0, 0, 0, 0.7, 0.142793, 0.875884, 0)
|
||||
text = "Test"
|
||||
font = ExtResource("1_uwkow")
|
||||
font_size = 100
|
||||
|
||||
[node name="Gamemode" type="Label3D" parent="."]
|
||||
transform = Transform3D(0.7, 0, 0, 0, 0.7, 0, 0, 0, 0.7, 0.142793, 0.200374, 0)
|
||||
text = "Test"
|
||||
font = ExtResource("1_uwkow")
|
||||
font_size = 100
|
||||
@@ -61,7 +61,7 @@ shader_parameter/noise = SubResource("NoiseTexture2D_0eorp")
|
||||
size = Vector3(3, 3.58057, 3)
|
||||
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_xfie3"]
|
||||
radius = 7.0
|
||||
radius = 5.0
|
||||
|
||||
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_pxyjg"]
|
||||
random_pitch = 2.0
|
||||
@@ -264,6 +264,7 @@ collision_layer = 0
|
||||
collision_mask = 16
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="pick_up_magnet"]
|
||||
transform = Transform3D(1, -1.35287e-11, -5.82077e-11, 7.56017e-12, 1, 0, 0, 0, 1, 0.00132301, 0.00235856, -2.26706)
|
||||
shape = SubResource("SphereShape3D_xfie3")
|
||||
|
||||
[node name="Audio" type="Node3D" parent="."]
|
||||
|
||||
34
assets/scene_changer.tscn
Normal file
34
assets/scene_changer.tscn
Normal file
@@ -0,0 +1,34 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://dgapcuvg0gtmm"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/scene_changer.gd" id="1_7ngxb"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_mvtr6"]
|
||||
|
||||
[sub_resource type="SphereMesh" id="SphereMesh_wfy04"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_qd8ax"]
|
||||
transparency = 1
|
||||
blend_mode = 1
|
||||
emission_enabled = true
|
||||
emission = Color(0.223698, 0.336652, 0.628522, 1)
|
||||
emission_energy_multiplier = 5.6
|
||||
|
||||
[node name="Scene Changer" type="Area3D"]
|
||||
collision_layer = 4
|
||||
collision_mask = 4
|
||||
script = ExtResource("1_7ngxb")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
shape = SubResource("BoxShape3D_mvtr6")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
visible = false
|
||||
mesh = SubResource("SphereMesh_wfy04")
|
||||
surface_material_override/0 = SubResource("StandardMaterial3D_qd8ax")
|
||||
|
||||
[node name="Start_Activation" type="Timer" parent="."]
|
||||
wait_time = 0.5
|
||||
autostart = true
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
[connection signal="timeout" from="Start_Activation" to="." method="_on_start_activation_timeout"]
|
||||
@@ -7,24 +7,31 @@
|
||||
script = ExtResource("1_q47is")
|
||||
|
||||
[node name="Gamemode" type="Label3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.66069, 0)
|
||||
transform = Transform3D(0.7, 0, 0, 0, 0.7, 0, 0, 0, 0.7, 0.142793, 0.747273, 0)
|
||||
text = "Test"
|
||||
font = ExtResource("2_mtulh")
|
||||
font_size = 100
|
||||
|
||||
[node name="High Score" type="Label3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.396692, 0)
|
||||
text = "Test"
|
||||
font = ExtResource("2_mtulh")
|
||||
horizontal_alignment = 0
|
||||
|
||||
[node name="Kills" type="Label3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.423311, 0)
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.137377, 0)
|
||||
text = "Test"
|
||||
font = ExtResource("2_mtulh")
|
||||
horizontal_alignment = 0
|
||||
|
||||
[node name="Deaths" type="Label3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.218421, 0)
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.0675129, 0)
|
||||
text = "Test"
|
||||
font = ExtResource("2_mtulh")
|
||||
horizontal_alignment = 0
|
||||
|
||||
[node name="Shots Fired" type="Label3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.285934, 0)
|
||||
text = "Test"
|
||||
font = ExtResource("2_mtulh")
|
||||
horizontal_alignment = 0
|
||||
|
||||
Reference in New Issue
Block a user