Massive work on level, UI, sound, and player functionality, small progress on netcode. Renamed project to Net Gunner.
This commit is contained in:
@@ -1,12 +1,51 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://ck4x56txf676a"]
|
||||
[gd_scene load_steps=10 format=3 uid="uid://ck4x56txf676a"]
|
||||
|
||||
[ext_resource type="Shader" uid="uid://b2g6yddun2l6e" path="res://visuals/shaders/noise.gdshader" id="1_jgus3"]
|
||||
[ext_resource type="Script" uid="uid://bnmklbse62lrf" path="res://scripts/static.gd" id="2_bow2h"]
|
||||
[ext_resource type="Texture2D" uid="uid://dri0a20l6kpbj" path="res://visuals/images/icon.svg" id="2_uxcyu"]
|
||||
[ext_resource type="AudioStream" uid="uid://vcatohtmt8bk" path="res://audio/music/16 - Character Select.mp3" id="3_bow2h"]
|
||||
|
||||
[sub_resource type="Shader" id="Shader_fa52j"]
|
||||
code = "shader_type canvas_item;
|
||||
|
||||
uniform sampler2D main_texture;
|
||||
uniform float granularity : hint_range(5, 30) = 15.0;
|
||||
uniform float opacity_limit;
|
||||
|
||||
float random (vec2 uv) {
|
||||
return fract(sin(dot(uv.xy,
|
||||
vec2(12.9898,78.233))) * 43758.5453123);
|
||||
}
|
||||
|
||||
void vertex() {
|
||||
// Called for every vertex the material is visible on.
|
||||
|
||||
}
|
||||
|
||||
void fragment() {
|
||||
// Called for every pixel the material is visible on.
|
||||
vec2 uv = UV;
|
||||
float g = ( pow(granularity, 2));
|
||||
uv = round((uv * g)) / g;
|
||||
uv.y = TIME * uv.y + TIME * .05;
|
||||
uv.x = 10.0 * TIME * uv.x + TIME * 1.0;
|
||||
float val = random(uv);
|
||||
float op = random(-uv) / val;
|
||||
float alpha = 1.0;
|
||||
if(op < opacity_limit){
|
||||
alpha = 0.0;
|
||||
}
|
||||
vec4 color = vec4(val, val, val, alpha * COLOR.a);
|
||||
COLOR = color;
|
||||
}
|
||||
|
||||
//void light() {
|
||||
// // Called for every pixel for every light affecting the CanvasItem.
|
||||
// // Uncomment to replace the default light processing function with this one.
|
||||
//}
|
||||
"
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_uxcyu"]
|
||||
shader = ExtResource("1_jgus3")
|
||||
shader_parameter/granularity = 0.0
|
||||
shader = SubResource("Shader_fa52j")
|
||||
shader_parameter/granularity = 20.0000007125
|
||||
shader_parameter/opacity_limit = 0.0
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_ak2if"]
|
||||
@@ -17,6 +56,19 @@ colors = PackedColorArray(0, 0, 0, 1)
|
||||
gradient = SubResource("Gradient_ak2if")
|
||||
width = 1
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_5wdeo"]
|
||||
shader = SubResource("Shader_fa52j")
|
||||
shader_parameter/granularity = 10.0000002375
|
||||
shader_parameter/opacity_limit = 0.86
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_w1hxv"]
|
||||
offsets = PackedFloat32Array(1)
|
||||
colors = PackedColorArray(1, 1, 1, 1)
|
||||
|
||||
[sub_resource type="GradientTexture1D" id="GradientTexture1D_bqp8h"]
|
||||
gradient = SubResource("Gradient_w1hxv")
|
||||
width = 1
|
||||
|
||||
[node name="Control" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
@@ -50,7 +102,6 @@ grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = SubResource("GradientTexture1D_fa52j")
|
||||
expand_mode = 1
|
||||
script = ExtResource("2_bow2h")
|
||||
|
||||
[node name="Control" type="Control" parent="Panel/Panel"]
|
||||
anchors_preset = 0
|
||||
@@ -59,6 +110,17 @@ offset_top = 286.0
|
||||
offset_right = 392.0
|
||||
offset_bottom = 350.0
|
||||
|
||||
[node name="Label" type="Label" parent="Panel/Panel/Control"]
|
||||
modulate = Color(0, 0.3254902, 1, 1)
|
||||
layout_mode = 0
|
||||
offset_left = 37.0
|
||||
offset_top = 288.0
|
||||
offset_right = 448.0
|
||||
offset_bottom = 355.0
|
||||
theme_override_font_sizes/font_size = 48
|
||||
text = "NAME GOES HERE"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="Panel/Panel/Control"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 7
|
||||
@@ -67,18 +129,12 @@ anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -39.0
|
||||
offset_top = 236.0
|
||||
offset_top = 281.0
|
||||
offset_right = 245.0
|
||||
offset_bottom = 349.0
|
||||
offset_bottom = 394.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
|
||||
[node name="Label" type="Label" parent="Panel/Panel/Control/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
text = "NAME GOES HERE"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Panel" type="PanelContainer" parent="Panel/Panel/Control/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
@@ -160,7 +216,6 @@ grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = SubResource("GradientTexture1D_fa52j")
|
||||
expand_mode = 1
|
||||
script = ExtResource("2_bow2h")
|
||||
|
||||
[node name="Label" type="Label" parent="Panel/Panel2"]
|
||||
layout_mode = 1
|
||||
@@ -180,6 +235,17 @@ offset_top = 286.0
|
||||
offset_right = 392.0
|
||||
offset_bottom = 350.0
|
||||
|
||||
[node name="Label" type="Label" parent="Panel/Panel2/Control"]
|
||||
layout_mode = 0
|
||||
offset_left = 33.0
|
||||
offset_top = 286.0
|
||||
offset_right = 444.0
|
||||
offset_bottom = 353.0
|
||||
theme_override_colors/font_color = Color(1, 0, 0, 1)
|
||||
theme_override_font_sizes/font_size = 48
|
||||
text = "NAME GOES HERE"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="Panel/Panel2/Control"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 7
|
||||
@@ -188,18 +254,12 @@ anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -42.0
|
||||
offset_top = 235.0
|
||||
offset_top = 280.0
|
||||
offset_right = 242.0
|
||||
offset_bottom = 348.0
|
||||
offset_bottom = 393.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
|
||||
[node name="Label" type="Label" parent="Panel/Panel2/Control/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
text = "NAME GOES HERE"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Panel" type="PanelContainer" parent="Panel/Panel2/Control/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
@@ -290,13 +350,45 @@ alignment = 1
|
||||
custom_minimum_size = Vector2(150, 150)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="Panel2/HBoxContainer/Panel"]
|
||||
[node name="Portrait" type="TextureRect" parent="Panel2/HBoxContainer/Panel"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("2_uxcyu")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="Control" type="Control" parent="Panel2/HBoxContainer/Panel"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="Static" type="TextureRect" parent="Panel2/HBoxContainer/Panel/Control"]
|
||||
material = SubResource("ShaderMaterial_5wdeo")
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = SubResource("GradientTexture1D_fa52j")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="Green Tint" type="TextureRect" parent="Panel2/HBoxContainer/Panel/Control"]
|
||||
modulate = Color(0, 0.6039216, 0, 0.42745098)
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = SubResource("GradientTexture1D_bqp8h")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="NinePatchRect" type="NinePatchRect" parent="Panel2/HBoxContainer/Panel"]
|
||||
layout_mode = 1
|
||||
@@ -310,13 +402,45 @@ grow_vertical = 2
|
||||
custom_minimum_size = Vector2(150, 150)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="Panel2/HBoxContainer/Panel2"]
|
||||
[node name="Portrait" type="TextureRect" parent="Panel2/HBoxContainer/Panel2"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("2_uxcyu")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="Control" type="Control" parent="Panel2/HBoxContainer/Panel2"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="Static" type="TextureRect" parent="Panel2/HBoxContainer/Panel2/Control"]
|
||||
material = SubResource("ShaderMaterial_5wdeo")
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = SubResource("GradientTexture1D_fa52j")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="Green Tint" type="TextureRect" parent="Panel2/HBoxContainer/Panel2/Control"]
|
||||
modulate = Color(0, 0.6039216, 0, 0.42745098)
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = SubResource("GradientTexture1D_bqp8h")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="NinePatchRect" type="NinePatchRect" parent="Panel2/HBoxContainer/Panel2"]
|
||||
layout_mode = 1
|
||||
@@ -330,13 +454,45 @@ grow_vertical = 2
|
||||
custom_minimum_size = Vector2(150, 150)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="Panel2/HBoxContainer/Panel3"]
|
||||
[node name="Portrait" type="TextureRect" parent="Panel2/HBoxContainer/Panel3"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("2_uxcyu")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="Control" type="Control" parent="Panel2/HBoxContainer/Panel3"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="Static" type="TextureRect" parent="Panel2/HBoxContainer/Panel3/Control"]
|
||||
material = SubResource("ShaderMaterial_5wdeo")
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = SubResource("GradientTexture1D_fa52j")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="Green Tint" type="TextureRect" parent="Panel2/HBoxContainer/Panel3/Control"]
|
||||
modulate = Color(0, 0.6039216, 0, 0.42745098)
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = SubResource("GradientTexture1D_bqp8h")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="NinePatchRect" type="NinePatchRect" parent="Panel2/HBoxContainer/Panel3"]
|
||||
layout_mode = 1
|
||||
@@ -350,13 +506,45 @@ grow_vertical = 2
|
||||
custom_minimum_size = Vector2(150, 150)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="Panel2/HBoxContainer/Panel4"]
|
||||
[node name="Portrait" type="TextureRect" parent="Panel2/HBoxContainer/Panel4"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("2_uxcyu")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="Control" type="Control" parent="Panel2/HBoxContainer/Panel4"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="Static" type="TextureRect" parent="Panel2/HBoxContainer/Panel4/Control"]
|
||||
material = SubResource("ShaderMaterial_5wdeo")
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = SubResource("GradientTexture1D_fa52j")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="Green Tint" type="TextureRect" parent="Panel2/HBoxContainer/Panel4/Control"]
|
||||
modulate = Color(0, 0.6039216, 0, 0.42745098)
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = SubResource("GradientTexture1D_bqp8h")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="NinePatchRect" type="NinePatchRect" parent="Panel2/HBoxContainer/Panel4"]
|
||||
layout_mode = 1
|
||||
@@ -370,13 +558,45 @@ grow_vertical = 2
|
||||
custom_minimum_size = Vector2(150, 150)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="Panel2/HBoxContainer/Panel5"]
|
||||
[node name="Portrait" type="TextureRect" parent="Panel2/HBoxContainer/Panel5"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("2_uxcyu")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="Control" type="Control" parent="Panel2/HBoxContainer/Panel5"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="Static" type="TextureRect" parent="Panel2/HBoxContainer/Panel5/Control"]
|
||||
material = SubResource("ShaderMaterial_5wdeo")
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = SubResource("GradientTexture1D_fa52j")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="Green Tint" type="TextureRect" parent="Panel2/HBoxContainer/Panel5/Control"]
|
||||
modulate = Color(0, 0.6039216, 0, 0.42745098)
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = SubResource("GradientTexture1D_bqp8h")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="NinePatchRect" type="NinePatchRect" parent="Panel2/HBoxContainer/Panel5"]
|
||||
layout_mode = 1
|
||||
@@ -390,13 +610,45 @@ grow_vertical = 2
|
||||
custom_minimum_size = Vector2(150, 150)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="Panel2/HBoxContainer/Panel6"]
|
||||
[node name="Portrait" type="TextureRect" parent="Panel2/HBoxContainer/Panel6"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("2_uxcyu")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="Control" type="Control" parent="Panel2/HBoxContainer/Panel6"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="Static" type="TextureRect" parent="Panel2/HBoxContainer/Panel6/Control"]
|
||||
material = SubResource("ShaderMaterial_5wdeo")
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = SubResource("GradientTexture1D_fa52j")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="Green Tint" type="TextureRect" parent="Panel2/HBoxContainer/Panel6/Control"]
|
||||
modulate = Color(0, 0.6039216, 0, 0.42745098)
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = SubResource("GradientTexture1D_bqp8h")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="NinePatchRect" type="NinePatchRect" parent="Panel2/HBoxContainer/Panel6"]
|
||||
layout_mode = 1
|
||||
|
||||
@@ -29,8 +29,8 @@ omni_attenuation = -0.165
|
||||
|
||||
[node name="Spawner" type="MultiplayerSpawner" parent="." groups=["spawner"]]
|
||||
unique_name_in_owner = true
|
||||
_spawnable_scenes = PackedStringArray("uid://cqe6hkn2oncpc")
|
||||
spawn_path = NodePath("../Players")
|
||||
spawn_limit = 2
|
||||
script = ExtResource("5_02mmr")
|
||||
|
||||
[node name="SpawnPoints" type="Node" parent="Spawner"]
|
||||
@@ -42,5 +42,6 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 19.415695, 0, 0)
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.23061, 0, 0)
|
||||
|
||||
[node name="Players" type="Node3D" parent="."]
|
||||
unique_name_in_owner = true
|
||||
|
||||
[node name="GridMap" type="GridMap" parent="."]
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,16 +1,21 @@
|
||||
[gd_scene load_steps=11 format=3 uid="uid://dd40q2mv84pmc"]
|
||||
[gd_scene load_steps=20 format=3 uid="uid://dd40q2mv84pmc"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dhu2psbhh1rl8" path="res://scripts/title_screen.gd" id="1_e54dn"]
|
||||
[ext_resource type="Shader" uid="uid://b2g6yddun2l6e" path="res://visuals/shaders/noise.gdshader" id="2_3yumr"]
|
||||
[ext_resource type="Script" uid="uid://bnmklbse62lrf" path="res://scripts/static.gd" id="3_cs5ya"]
|
||||
[ext_resource type="FontFile" uid="uid://c83fwpdo5bu8j" path="res://ASTERA v2.ttf" id="4_3yumr"]
|
||||
[ext_resource type="Texture2D" uid="uid://dtg4wpwey78lo" path="res://visuals/images/title.png" id="4_cs5ya"]
|
||||
[ext_resource type="AudioStream" uid="uid://bl08d5aj1f7nf" path="res://audio/music/15 - Opening.mp3" id="4_mykxm"]
|
||||
[ext_resource type="AudioStream" uid="uid://kj25hej55ckw" path="res://audio/sounds/BUTTON Generic Metal Medium High Mechanics 02.wav" id="5_tklts"]
|
||||
[ext_resource type="AudioStream" uid="uid://cmnibhyxpag0a" path="res://audio/sounds/BeepBeep_high.wav" id="6_u26n3"]
|
||||
[ext_resource type="Texture2D" uid="uid://c0eww4swdkxcg" path="res://visuals/images/title target.png" id="4_tklts"]
|
||||
[ext_resource type="Material" uid="uid://c88aptbv2lgbu" path="res://visuals/materials/tv_static_image.tres" id="5_ib7db"]
|
||||
[ext_resource type="Texture2D" uid="uid://cllmt3pn6veff" path="res://visuals/images/title backsplash.png" id="5_u26n3"]
|
||||
[ext_resource type="AudioStream" uid="uid://cwmfd8ov3lj1h" path="res://audio/sounds/menu select.wav" id="6_3yumr"]
|
||||
[ext_resource type="Texture2D" uid="uid://dkef04mo56lma" path="res://visuals/images/title glow.png" id="6_ib7db"]
|
||||
[ext_resource type="AudioStream" uid="uid://doelc8yt5snc2" path="res://audio/sounds/Keypad A.wav" id="7_cs5ya"]
|
||||
[ext_resource type="Texture2D" uid="uid://bjwelo48s6aoh" path="res://visuals/images/title frame.png" id="11_u26n3"]
|
||||
[ext_resource type="Material" uid="uid://cysw8uwdmtv1v" path="res://visuals/materials/lowres-text.tres" id="12_ib7db"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_tpml5"]
|
||||
shader = ExtResource("2_3yumr")
|
||||
shader_parameter/granularity = 0.0
|
||||
shader_parameter/granularity = 20.0
|
||||
shader_parameter/opacity_limit = 0.0
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_cs5ya"]
|
||||
@@ -21,6 +26,61 @@ colors = PackedColorArray(0, 0, 0, 1)
|
||||
gradient = SubResource("Gradient_cs5ya")
|
||||
width = 1
|
||||
|
||||
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_ib7db"]
|
||||
blend_mode = 1
|
||||
|
||||
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_frs5l"]
|
||||
blend_mode = 1
|
||||
light_mode = 1
|
||||
|
||||
[sub_resource type="Shader" id="Shader_u26n3"]
|
||||
code = "shader_type canvas_item;
|
||||
|
||||
uniform sampler2D noise;
|
||||
varying vec4 modulate;
|
||||
uniform float threshold : hint_range(0,0.5)= .5;
|
||||
uniform float strength : hint_range(-0.5,0.5) = 0;
|
||||
float random (vec2 uv) {
|
||||
return fract(sin(dot(uv.xy,
|
||||
vec2(12.9898,78.233))) * 43758.5453123);
|
||||
}
|
||||
|
||||
void vertex() {
|
||||
// Called for every vertex the material is visible on.
|
||||
modulate = COLOR;
|
||||
}
|
||||
|
||||
void fragment() {
|
||||
// Called for every pixel the material is visible on.
|
||||
vec2 uv = UV;
|
||||
vec2 rv = vec2(mod(TIME / 3.5, 1.0), uv.y);
|
||||
vec4 val = texture(noise, rv);
|
||||
|
||||
uv.x += .002 * (val.x - 0.5) * 2.0;
|
||||
float extrema = abs(val.x - 0.5);
|
||||
//if(extrema > threshold){
|
||||
//uv.x += sign(val.x - 0.5) * mix(0,strength, (extrema) / (.5 - threshold));
|
||||
//}
|
||||
if(extrema > threshold){
|
||||
uv.x -= strength * (val.x - 0.5) * 2.0;
|
||||
}
|
||||
vec4 col = texture(TEXTURE, uv) * modulate;
|
||||
COLOR = col; //* COLOR;
|
||||
//COLOR = val;
|
||||
}
|
||||
|
||||
//void light() {
|
||||
// // Called for every pixel for every light affecting the CanvasItem.
|
||||
// // Uncomment to replace the default light processing function with this one.
|
||||
//}
|
||||
"
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_mynnq"]
|
||||
resource_local_to_scene = true
|
||||
shader = SubResource("Shader_u26n3")
|
||||
shader_parameter/threshold = 0.5
|
||||
shader_parameter/strength = 0.10300002864250002
|
||||
|
||||
[node name="Control" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
@@ -40,22 +100,61 @@ grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = SubResource("GradientTexture1D_ig5kc")
|
||||
expand_mode = 1
|
||||
script = ExtResource("3_cs5ya")
|
||||
|
||||
[node name="Label" type="RichTextLabel" parent="."]
|
||||
[node name="TextureRect2" type="TextureRect" parent="."]
|
||||
modulate = Color(1, 1, 1, 0.7921569)
|
||||
layout_mode = 1
|
||||
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="Target" type="TextureRect" parent="."]
|
||||
unique_name_in_owner = true
|
||||
texture_filter = 4
|
||||
material = SubResource("CanvasItemMaterial_ib7db")
|
||||
layout_mode = 0
|
||||
offset_left = 130.0
|
||||
offset_top = 260.0
|
||||
offset_right = 1791.0
|
||||
offset_bottom = 678.0
|
||||
theme_override_constants/line_separation = -450
|
||||
theme_override_fonts/normal_font = ExtResource("4_3yumr")
|
||||
theme_override_fonts/bold_font = ExtResource("4_3yumr")
|
||||
theme_override_fonts/bold_italics_font = ExtResource("4_3yumr")
|
||||
theme_override_font_sizes/bold_italics_font_size = 300
|
||||
bbcode_enabled = true
|
||||
text = "[b][i]TRAP
|
||||
SHOOTER[/i][/b]"
|
||||
offset_left = -41.5
|
||||
offset_top = -65.0
|
||||
offset_right = 1749.7963
|
||||
offset_bottom = 1073.0
|
||||
pivot_offset = Vector2(595, 585)
|
||||
texture = ExtResource("4_tklts")
|
||||
|
||||
[node name="TextureRect5" type="TextureRect" parent="."]
|
||||
modulate = Color(0.23392546, 0.23392546, 0.2339254, 0.59607846)
|
||||
texture_filter = 2
|
||||
texture_repeat = 2
|
||||
material = ExtResource("5_ib7db")
|
||||
layout_mode = 0
|
||||
offset_left = -18.5
|
||||
offset_top = -65.0
|
||||
offset_right = 1772.7963
|
||||
offset_bottom = 1073.0
|
||||
texture = ExtResource("5_u26n3")
|
||||
|
||||
[node name="TextureRect3" type="TextureRect" parent="."]
|
||||
texture_filter = 4
|
||||
material = SubResource("CanvasItemMaterial_frs5l")
|
||||
layout_mode = 0
|
||||
offset_left = -45.5
|
||||
offset_top = -65.0
|
||||
offset_right = 1745.7963
|
||||
offset_bottom = 1073.0
|
||||
texture = ExtResource("6_ib7db")
|
||||
|
||||
[node name="TextureRect7" type="TextureRect" parent="."]
|
||||
texture_filter = 4
|
||||
material = SubResource("ShaderMaterial_mynnq")
|
||||
layout_mode = 0
|
||||
offset_left = -41.5
|
||||
offset_top = -65.0
|
||||
offset_right = 1749.7963
|
||||
offset_bottom = 1073.0
|
||||
texture = ExtResource("4_cs5ya")
|
||||
|
||||
[node name="Panel2" type="Panel" parent="."]
|
||||
layout_mode = 1
|
||||
@@ -65,15 +164,16 @@ anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -192.0
|
||||
offset_top = -364.0
|
||||
offset_top = -311.0
|
||||
offset_right = 208.0
|
||||
offset_bottom = -214.0
|
||||
offset_bottom = -161.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
|
||||
[node name="START" type="Label" parent="Panel2"]
|
||||
unique_name_in_owner = true
|
||||
modulate = Color(0, 0, 1, 1)
|
||||
modulate = Color(0.08549138, 0.3231256, 1, 1)
|
||||
material = ExtResource("12_ib7db")
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
@@ -176,8 +276,32 @@ autoplay = true
|
||||
|
||||
[node name="SelectSound" type="AudioStreamPlayer" parent="."]
|
||||
unique_name_in_owner = true
|
||||
stream = ExtResource("5_tklts")
|
||||
stream = ExtResource("6_3yumr")
|
||||
|
||||
[node name="SwitchSound" type="AudioStreamPlayer" parent="."]
|
||||
unique_name_in_owner = true
|
||||
stream = ExtResource("6_u26n3")
|
||||
stream = ExtResource("7_cs5ya")
|
||||
|
||||
[node name="TextureRect6" type="TextureRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_right = 1920.0
|
||||
offset_bottom = 1080.0
|
||||
texture = ExtResource("11_u26n3")
|
||||
|
||||
[node name="Label2" type="Label" parent="."]
|
||||
modulate = Color(0, 1, 0, 1)
|
||||
texture_repeat = 2
|
||||
material = ExtResource("12_ib7db")
|
||||
layout_mode = 1
|
||||
anchors_preset = 5
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
offset_left = -202.25
|
||||
offset_top = 34.0
|
||||
offset_right = 202.25
|
||||
offset_bottom = 89.0
|
||||
grow_horizontal = 2
|
||||
theme_override_font_sizes/font_size = 40
|
||||
text = "TRAP & GUN ACTION"
|
||||
clip_text = true
|
||||
text_overrun_behavior = 1
|
||||
|
||||
Reference in New Issue
Block a user