Massive work on level, UI, sound, and player functionality, small progress on netcode. Renamed project to Net Gunner.
This commit is contained in:
@@ -1,21 +1,47 @@
|
||||
[gd_scene load_steps=9 format=3 uid="uid://bgocskbofewsr"]
|
||||
[gd_scene load_steps=30 format=3 uid="uid://bgocskbofewsr"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bm50jiya4s3ei" path="res://scripts/hud.gd" id="1_jiiqi"]
|
||||
[ext_resource type="Texture2D" uid="uid://dri0a20l6kpbj" path="res://visuals/images/icon.svg" id="1_k5de2"]
|
||||
[ext_resource type="Texture2D" uid="uid://dhw2ao0dimytt" path="res://visuals/images/icons/bomb.png" id="1_t4m7m"]
|
||||
[ext_resource type="Script" uid="uid://c85j4kxafibj4" path="res://scripts/trap_display.gd" id="2_l86lr"]
|
||||
[ext_resource type="Texture2D" uid="uid://c3ghacgxkqrn7" path="res://visuals/images/icons/player 1 tag.png" id="2_yda1o"]
|
||||
[ext_resource type="Texture2D" uid="uid://psxrbfkh3jyq" path="res://visuals/images/icons/force_panel.png" id="2_yful7"]
|
||||
[ext_resource type="Texture2D" uid="uid://bwweebntsivfn" path="res://visuals/images/icons/background.png" id="3_e7ody"]
|
||||
[ext_resource type="Texture2D" uid="uid://coe2q8jdu47it" path="res://visuals/images/icons/gas.png" id="3_jiiqi"]
|
||||
[ext_resource type="Texture2D" uid="uid://btjn353r1qg1q" path="res://visuals/images/icons/player 2 tag.png" id="3_k0acs"]
|
||||
[ext_resource type="Texture2D" uid="uid://urh11huy67cs" path="res://visuals/materials/health gradient.tres" id="3_vhta5"]
|
||||
[ext_resource type="PackedScene" uid="uid://xk323c0ta2b" path="res://templates/trap_icon.tscn" id="4_aopqe"]
|
||||
[ext_resource type="Texture2D" uid="uid://bcv3f38cib5xk" path="res://visuals/images/icons/mine.png" id="4_l86lr"]
|
||||
[ext_resource type="Texture2D" uid="uid://cyuylbs0o72xk" path="res://visuals/images/icons/pitfall.png" id="5_aopqe"]
|
||||
[ext_resource type="Texture2D" uid="uid://hiwrcar5fnyk" path="res://visuals/images/icons/switch.png" id="6_e7ody"]
|
||||
[ext_resource type="Texture2D" uid="uid://cccpeolat5pk5" path="res://visuals/images/icons/selector.png" id="7_bftxg"]
|
||||
[ext_resource type="Texture2D" uid="uid://divrb0alxk567" path="res://visuals/images/icons/trap arrow.png" id="12_bftxg"]
|
||||
[ext_resource type="Script" uid="uid://dv3fk1ptmvltg" path="res://scripts/blinker.gd" id="13_bftxg"]
|
||||
[ext_resource type="AudioStream" uid="uid://cev1r8gqs7qbj" path="res://audio/sounds/9mm M&P Drop Mag Empty C.wav" id="14_d888c"]
|
||||
[ext_resource type="Texture2D" uid="uid://c1g5jy6w66rys" path="res://visuals/images/icons/trap button.png" id="15_wc04a"]
|
||||
[ext_resource type="Texture2D" uid="uid://b2tu6cwb6xftx" path="res://visuals/images/icons/lit trap button.png" id="16_aid7k"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxs0jj4y4clvv" path="res://visuals/images/icons/detect button.png" id="17_rpucv"]
|
||||
[ext_resource type="Texture2D" uid="uid://buh1sm00l81u5" path="res://visuals/images/icons/gun.png" id="18_iv5le"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxxm3c2lpmr4f" path="res://visuals/images/icons/lit detect button.png" id="18_yda1o"]
|
||||
[ext_resource type="Texture2D" uid="uid://diyks5oxgidoo" path="res://visuals/images/icons/ranged attack button.png" id="19_k0acs"]
|
||||
[ext_resource type="Texture2D" uid="uid://0ujjkgwiyveu" path="res://visuals/images/icons/lit ranged attack button.png" id="20_vhta5"]
|
||||
[ext_resource type="Texture2D" uid="uid://barbcaa2xvgkk" path="res://visuals/images/icons/switch button.png" id="21_iv5le"]
|
||||
[ext_resource type="Texture2D" uid="uid://bd0xwm4wuuiuo" path="res://visuals/images/icons/lit switch button.png" id="22_1ghxf"]
|
||||
|
||||
[node name="Control" type="Control"]
|
||||
[sub_resource type="Gradient" id="Gradient_1ghxf"]
|
||||
|
||||
[sub_resource type="GradientTexture1D" id="GradientTexture1D_gomyg"]
|
||||
gradient = SubResource("Gradient_1ghxf")
|
||||
width = 1
|
||||
|
||||
[node name="HUD" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_jiiqi")
|
||||
|
||||
[node name="Control" type="Control" parent="."]
|
||||
layout_mode = 1
|
||||
@@ -45,75 +71,169 @@ layout_mode = 2
|
||||
custom_minimum_size = Vector2(250, 100)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="Control/PanelContainer/HBoxContainer/VBoxContainer2/PanelContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 2
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer2/PanelContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
texture = ExtResource("2_yda1o")
|
||||
|
||||
[node name="ProgressBar" type="TextureProgressBar" parent="Control/PanelContainer/HBoxContainer/VBoxContainer2/PanelContainer/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(0, 50)
|
||||
layout_mode = 2
|
||||
value = 100.0
|
||||
nine_patch_stretch = true
|
||||
texture_over = ExtResource("3_vhta5")
|
||||
|
||||
[node name="PanelContainer2" type="PanelContainer" parent="Control/PanelContainer/HBoxContainer/VBoxContainer2"]
|
||||
custom_minimum_size = Vector2(250, 100)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="Control/PanelContainer/HBoxContainer/VBoxContainer2/PanelContainer2"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 2
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer2/PanelContainer2/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
texture = ExtResource("3_k0acs")
|
||||
|
||||
[node name="ProgressBar" type="TextureProgressBar" parent="Control/PanelContainer/HBoxContainer/VBoxContainer2/PanelContainer2/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(0, 50)
|
||||
layout_mode = 2
|
||||
value = 100.0
|
||||
nine_patch_stretch = true
|
||||
texture_over = ExtResource("3_vhta5")
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="Control/PanelContainer/HBoxContainer"]
|
||||
custom_minimum_size = Vector2(150, 0)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="PanelContainer2" type="PanelContainer" parent="Control/PanelContainer/HBoxContainer/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(150, 100)
|
||||
[node name="TrapDisplay" type="PanelContainer" parent="Control/PanelContainer/HBoxContainer/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(220, 100)
|
||||
layout_mode = 2
|
||||
script = ExtResource("2_l86lr")
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/TrapDisplay"]
|
||||
layout_mode = 2
|
||||
texture = ExtResource("3_e7ody")
|
||||
|
||||
[node name="Control2" type="Control" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/TrapDisplay"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Control" type="Control" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/PanelContainer2"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/PanelContainer2/Control"]
|
||||
[node name="Frame" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/TrapDisplay/Control2"]
|
||||
clip_children = 1
|
||||
layout_mode = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
offset_right = 220.0
|
||||
offset_bottom = 100.0
|
||||
texture = ExtResource("1_t4m7m")
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/PanelContainer2/Control/TextureRect"]
|
||||
[node name="Control" type="Control" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/TrapDisplay/Control2/Frame"]
|
||||
anchors_preset = 0
|
||||
offset_left = 35.0
|
||||
offset_right = 185.0
|
||||
offset_bottom = 100.0
|
||||
|
||||
[node name="TrapsContainer" type="HBoxContainer" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/TrapDisplay/Control2/Frame/Control"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 0
|
||||
offset_right = 920.0
|
||||
offset_bottom = 100.0
|
||||
theme_override_constants/separation = 0
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/PanelContainer2/Control/TextureRect/HBoxContainer"]
|
||||
[node name="Trap Icon" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/TrapDisplay/Control2/Frame/Control/TrapsContainer" instance=ExtResource("4_aopqe")]
|
||||
layout_mode = 2
|
||||
texture = ExtResource("1_t4m7m")
|
||||
|
||||
[node name="TextureRect2" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/PanelContainer2/Control/TextureRect/HBoxContainer"]
|
||||
[node name="TextureRect2" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/TrapDisplay/Control2/Frame/Control/TrapsContainer"]
|
||||
layout_mode = 2
|
||||
texture = ExtResource("2_yful7")
|
||||
|
||||
[node name="TextureRect3" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/PanelContainer2/Control/TextureRect/HBoxContainer"]
|
||||
[node name="TextureRect3" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/TrapDisplay/Control2/Frame/Control/TrapsContainer"]
|
||||
layout_mode = 2
|
||||
texture = ExtResource("3_jiiqi")
|
||||
|
||||
[node name="TextureRect4" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/PanelContainer2/Control/TextureRect/HBoxContainer"]
|
||||
[node name="TextureRect4" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/TrapDisplay/Control2/Frame/Control/TrapsContainer"]
|
||||
layout_mode = 2
|
||||
texture = ExtResource("4_l86lr")
|
||||
|
||||
[node name="TextureRect5" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/PanelContainer2/Control/TextureRect/HBoxContainer"]
|
||||
[node name="TextureRect5" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/TrapDisplay/Control2/Frame/Control/TrapsContainer"]
|
||||
layout_mode = 2
|
||||
texture = ExtResource("5_aopqe")
|
||||
|
||||
[node name="TextureRect6" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/PanelContainer2/Control/TextureRect/HBoxContainer"]
|
||||
[node name="TextureRect6" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/TrapDisplay/Control2/Frame/Control/TrapsContainer"]
|
||||
layout_mode = 2
|
||||
texture = ExtResource("6_e7ody")
|
||||
|
||||
[node name="TextureRect3" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/PanelContainer2/Control"]
|
||||
self_modulate = Color(0, 0, 0, 0.49019608)
|
||||
layout_mode = 0
|
||||
offset_right = 150.0
|
||||
offset_bottom = 100.0
|
||||
texture = ExtResource("1_t4m7m")
|
||||
[node name="Control" type="Control" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/TrapDisplay"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="TextureRect2" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/PanelContainer2/Control"]
|
||||
[node name="Selector" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/TrapDisplay/Control"]
|
||||
layout_mode = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
offset_left = 35.0
|
||||
offset_right = 185.0
|
||||
offset_bottom = 100.0
|
||||
texture = ExtResource("7_bftxg")
|
||||
|
||||
[node name="LeftArrow" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/TrapDisplay/Control"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 0
|
||||
offset_left = 3.0
|
||||
offset_top = 39.0
|
||||
offset_right = 26.0
|
||||
offset_bottom = 77.0
|
||||
texture = ExtResource("12_bftxg")
|
||||
script = ExtResource("13_bftxg")
|
||||
|
||||
[node name="RightArrow" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/TrapDisplay/Control"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 0
|
||||
offset_left = 195.0
|
||||
offset_top = 39.0
|
||||
offset_right = 218.0
|
||||
offset_bottom = 77.0
|
||||
texture = ExtResource("12_bftxg")
|
||||
flip_h = true
|
||||
script = ExtResource("13_bftxg")
|
||||
|
||||
[node name="CycleSound" type="AudioStreamPlayer" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/TrapDisplay"]
|
||||
unique_name_in_owner = true
|
||||
stream = ExtResource("14_d888c")
|
||||
|
||||
[node name="PanelContainer3" type="PanelContainer" parent="Control/PanelContainer/HBoxContainer/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(150, 100)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Control" type="Control" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/PanelContainer3"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="TextureRect2" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/PanelContainer3/Control"]
|
||||
layout_mode = 0
|
||||
offset_left = 128.0
|
||||
offset_top = 38.0
|
||||
offset_right = 180.0
|
||||
offset_bottom = 90.0
|
||||
texture = SubResource("GradientTexture1D_gomyg")
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/PanelContainer3/Control"]
|
||||
layout_mode = 0
|
||||
offset_left = 8.0
|
||||
offset_top = -25.0
|
||||
offset_right = 137.0
|
||||
offset_bottom = 104.0
|
||||
texture = ExtResource("18_iv5le")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="Label" type="Label" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/PanelContainer3/Control"]
|
||||
layout_mode = 0
|
||||
offset_left = 141.0
|
||||
offset_top = 29.0
|
||||
offset_right = 169.0
|
||||
offset_bottom = 96.0
|
||||
theme_override_font_sizes/font_size = 48
|
||||
text = "9"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="PanelContainer2" type="PanelContainer" parent="Control/PanelContainer/HBoxContainer"]
|
||||
custom_minimum_size = Vector2(150, 0)
|
||||
layout_mode = 2
|
||||
@@ -134,9 +254,25 @@ layout_mode = 2
|
||||
custom_minimum_size = Vector2(150, 0)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="Control/PanelContainer/HBoxContainer/VBoxContainer3/HBoxContainer/PanelContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="Control/PanelContainer/HBoxContainer/VBoxContainer3/HBoxContainer/PanelContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0, 0.6039216, 1, 1)
|
||||
text = "TIME"
|
||||
|
||||
[node name="Label2" type="Label" parent="Control/PanelContainer/HBoxContainer/VBoxContainer3/HBoxContainer/PanelContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0, 1, 0, 1)
|
||||
theme_override_font_sizes/font_size = 32
|
||||
text = "00:00:00"
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer3/HBoxContainer"]
|
||||
custom_minimum_size = Vector2(95, 0)
|
||||
layout_mode = 2
|
||||
texture = ExtResource("1_k5de2")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="Control2" type="Control" parent="Control/PanelContainer/HBoxContainer"]
|
||||
custom_minimum_size = Vector2(165, 0)
|
||||
@@ -151,38 +287,58 @@ offset_top = -200.0
|
||||
offset_right = 200.0
|
||||
grow_vertical = 0
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="Control2"]
|
||||
[node name="Trap" type="TextureButton" parent="Control2"]
|
||||
layout_mode = 0
|
||||
offset_left = 4.0
|
||||
offset_left = 13.0
|
||||
offset_top = 71.0
|
||||
offset_right = 68.0
|
||||
offset_right = 77.0
|
||||
offset_bottom = 135.0
|
||||
texture = ExtResource("1_k5de2")
|
||||
expand_mode = 1
|
||||
mouse_filter = 2
|
||||
toggle_mode = true
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("15_wc04a")
|
||||
texture_pressed = ExtResource("16_aid7k")
|
||||
ignore_texture_size = true
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="TextureRect2" type="TextureRect" parent="Control2"]
|
||||
[node name="Detect" type="TextureButton" parent="Control2"]
|
||||
layout_mode = 0
|
||||
offset_left = 68.0
|
||||
offset_top = 40.0
|
||||
offset_top = 35.0
|
||||
offset_right = 132.0
|
||||
offset_bottom = 104.0
|
||||
texture = ExtResource("1_k5de2")
|
||||
expand_mode = 1
|
||||
offset_bottom = 99.0
|
||||
mouse_filter = 2
|
||||
toggle_mode = true
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("17_rpucv")
|
||||
texture_pressed = ExtResource("18_yda1o")
|
||||
ignore_texture_size = true
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="TextureRect3" type="TextureRect" parent="Control2"]
|
||||
[node name="RangedAttack" type="TextureButton" parent="Control2"]
|
||||
layout_mode = 0
|
||||
offset_left = 132.0
|
||||
offset_left = 123.0
|
||||
offset_top = 71.0
|
||||
offset_right = 196.0
|
||||
offset_right = 187.0
|
||||
offset_bottom = 135.0
|
||||
texture = ExtResource("1_k5de2")
|
||||
expand_mode = 1
|
||||
mouse_filter = 2
|
||||
toggle_mode = true
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("19_k0acs")
|
||||
texture_pressed = ExtResource("20_vhta5")
|
||||
ignore_texture_size = true
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="TextureRect4" type="TextureRect" parent="Control2"]
|
||||
[node name="Switch" type="TextureButton" parent="Control2"]
|
||||
layout_mode = 0
|
||||
offset_left = 68.0
|
||||
offset_top = 103.0
|
||||
offset_top = 110.0
|
||||
offset_right = 132.0
|
||||
offset_bottom = 167.0
|
||||
texture = ExtResource("1_k5de2")
|
||||
expand_mode = 1
|
||||
offset_bottom = 174.0
|
||||
mouse_filter = 2
|
||||
toggle_mode = true
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("21_iv5le")
|
||||
texture_pressed = ExtResource("22_1ghxf")
|
||||
ignore_texture_size = true
|
||||
stretch_mode = 0
|
||||
|
||||
34
templates/blinder.tscn
Normal file
34
templates/blinder.tscn
Normal file
@@ -0,0 +1,34 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://it78s1mv5ix3"]
|
||||
|
||||
[ext_resource type="Shader" uid="uid://b2g6yddun2l6e" path="res://visuals/shaders/noise.gdshader" id="1_5s6pw"]
|
||||
[ext_resource type="AudioStream" uid="uid://g0kyo8v0oysp" path="res://audio/sounds/static.wav" id="2_0pfu4"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_3yumr"]
|
||||
shader = ExtResource("1_5s6pw")
|
||||
shader_parameter/granularity = 20.0000007125
|
||||
shader_parameter/opacity_limit = 0.0
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_cs5ya"]
|
||||
offsets = PackedFloat32Array(0)
|
||||
colors = PackedColorArray(0, 0, 0, 1)
|
||||
|
||||
[sub_resource type="GradientTexture1D" id="GradientTexture1D_ig5kc"]
|
||||
gradient = SubResource("Gradient_cs5ya")
|
||||
width = 1
|
||||
|
||||
[node name="Blinder" type="TextureRect"]
|
||||
z_index = 4096
|
||||
material = SubResource("ShaderMaterial_3yumr")
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = SubResource("GradientTexture1D_ig5kc")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource("2_0pfu4")
|
||||
volume_db = 15.0
|
||||
pitch_scale = 1.48
|
||||
autoplay = true
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://cqe6hkn2oncpc"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://cqe6hkn2oncpc"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://wpjuowslx60b" path="res://scripts/multiplayer_controller.gd" id="1_avlqc"]
|
||||
|
||||
@@ -11,6 +11,8 @@ albedo_color = Color(0, 1, 1, 1)
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_6emce"]
|
||||
size = Vector3(0.75, 2, 0.75)
|
||||
|
||||
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_avlqc"]
|
||||
|
||||
[node name="MultiplayerPC" type="CharacterBody3D"]
|
||||
script = ExtResource("1_avlqc")
|
||||
speed = 5.0
|
||||
@@ -29,3 +31,6 @@ material = SubResource("StandardMaterial3D_lnbra")
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
||||
shape = SubResource("BoxShape3D_6emce")
|
||||
|
||||
[node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="."]
|
||||
replication_config = SubResource("SceneReplicationConfig_avlqc")
|
||||
|
||||
40
templates/singleplayer_pc.tscn
Normal file
40
templates/singleplayer_pc.tscn
Normal file
@@ -0,0 +1,40 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://c8xf3qawk5c6u"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bcs7ygh6s3l35" path="res://scripts/player.gd" id="1_a5wj7"]
|
||||
[ext_resource type="Script" uid="uid://6w608y2grdqb" path="res://scripts/player_data.gd" id="2_sfa2f"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_y646j"]
|
||||
albedo_color = Color(0.08468992, 0.08468992, 0.08468992, 1)
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_lnbra"]
|
||||
albedo_color = Color(0, 1, 1, 1)
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_a5wj7"]
|
||||
radius = 0.3
|
||||
height = 1.0
|
||||
|
||||
[node name="Player" type="CharacterBody3D"]
|
||||
physics_interpolation_mode = 1
|
||||
floor_constant_speed = true
|
||||
floor_max_angle = 0.93549645
|
||||
floor_snap_length = 1.0
|
||||
script = ExtResource("1_a5wj7")
|
||||
speed = 3.0
|
||||
|
||||
[node name="Body" type="CSGBox3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.425, 0)
|
||||
size = Vector3(0.5, 0.85, 0.5)
|
||||
material = SubResource("StandardMaterial3D_y646j")
|
||||
|
||||
[node name="CSGCylinder3D" type="CSGCylinder3D" parent="Body"]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.371139e-08, -1, 0, 1, -4.371139e-08, 0, 0.21490532, 0.29997927)
|
||||
radius = 0.15
|
||||
height = 0.05
|
||||
material = SubResource("StandardMaterial3D_lnbra")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.4665325, 0)
|
||||
shape = SubResource("CapsuleShape3D_a5wj7")
|
||||
|
||||
[node name="Data" type="Node" parent="."]
|
||||
script = ExtResource("2_sfa2f")
|
||||
33
templates/trap_icon.tscn
Normal file
33
templates/trap_icon.tscn
Normal file
@@ -0,0 +1,33 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://xk323c0ta2b"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://54k4gu5skdur" path="res://scripts/trap_icon.gd" id="1_soq3m"]
|
||||
[ext_resource type="Texture2D" uid="uid://dhw2ao0dimytt" path="res://visuals/images/icons/bomb.png" id="2_adsdf"]
|
||||
|
||||
[node name="Trap Icon" type="Control"]
|
||||
custom_minimum_size = Vector2(150, 100)
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
script = ExtResource("1_soq3m")
|
||||
|
||||
[node name="Icon" type="TextureRect" parent="."]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 0
|
||||
offset_right = 150.0
|
||||
offset_bottom = 100.0
|
||||
texture = ExtResource("2_adsdf")
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -49.0
|
||||
offset_top = -45.0
|
||||
offset_right = -9.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
theme_override_font_sizes/font_size = 32
|
||||
horizontal_alignment = 2
|
||||
Reference in New Issue
Block a user