Extensive work on virtually all of the visuals and the net code
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
[ext_resource type="Script" uid="uid://grs3nyom325o" path="res://scripts/character_select.gd" id="1_bow2h"]
|
||||
[ext_resource type="PackedScene" uid="uid://46rpw0rrd51m" path="res://templates/pawn_display.tscn" id="2_5wdeo"]
|
||||
[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"]
|
||||
[ext_resource type="AudioStream" uid="uid://vcatohtmt8bk" path="res://audio/old-music/16 - Character Select.mp3" id="3_bow2h"]
|
||||
[ext_resource type="AudioStream" uid="uid://cwmfd8ov3lj1h" path="res://audio/sounds/menu select.wav" id="7_bqp8h"]
|
||||
[ext_resource type="AudioStream" uid="uid://doelc8yt5snc2" path="res://audio/sounds/Keypad A.wav" id="8_5cdo8"]
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -69,9 +69,9 @@ metadata/_editor_floor_ = Vector3(0, -1, 0)
|
||||
_spawnable_scenes = PackedStringArray("uid://c8xf3qawk5c6u")
|
||||
spawn_path = NodePath("../Pawns")
|
||||
|
||||
[node name="TrapSpawner" type="MultiplayerSpawner" parent="."]
|
||||
[node name="HackSpawner" type="MultiplayerSpawner" parent="."]
|
||||
_spawnable_scenes = PackedStringArray("uid://bk3yqawritfnj")
|
||||
spawn_path = NodePath("../Traps")
|
||||
spawn_path = NodePath("../Hacks")
|
||||
|
||||
[node name="CameraSpawner" type="MultiplayerSpawner" parent="."]
|
||||
_spawnable_scenes = PackedStringArray("uid://cqa0p34mbk6so")
|
||||
@@ -83,7 +83,7 @@ unique_name_in_owner = true
|
||||
[node name="Cameras" type="Node3D" parent="."]
|
||||
unique_name_in_owner = true
|
||||
|
||||
[node name="Traps" type="Node3D" parent="."]
|
||||
[node name="Hacks" type="Node3D" parent="."]
|
||||
unique_name_in_owner = true
|
||||
|
||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
[gd_scene load_steps=25 format=3 uid="uid://dd40q2mv84pmc"]
|
||||
[gd_scene load_steps=30 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="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://bl08d5aj1f7nf" path="res://audio/old-music/15 - Opening.mp3" id="4_mykxm"]
|
||||
[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://c4r0yuw28xqrc" path="res://visuals/textures/explosive_noise.tres" id="5_p07av"]
|
||||
[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"]
|
||||
@@ -17,11 +18,6 @@
|
||||
[ext_resource type="Texture2D" uid="uid://i0esgu8xi4dp" path="res://visuals/textures/small_noise.tres" id="15_khjys"]
|
||||
[ext_resource type="Texture2D" uid="uid://dri0a20l6kpbj" path="res://visuals/images/icon.svg" id="16_174rq"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_tpml5"]
|
||||
shader = ExtResource("2_3yumr")
|
||||
shader_parameter/granularity = 20.0
|
||||
shader_parameter/opacity_limit = 0.0
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_cs5ya"]
|
||||
offsets = PackedFloat32Array(0)
|
||||
colors = PackedColorArray(0, 0, 0, 1)
|
||||
@@ -30,6 +26,78 @@ colors = PackedColorArray(0, 0, 0, 1)
|
||||
gradient = SubResource("Gradient_cs5ya")
|
||||
width = 1
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_tpml5"]
|
||||
shader = ExtResource("2_3yumr")
|
||||
shader_parameter/granularity = 20.0
|
||||
shader_parameter/opacity_limit = 0.0
|
||||
|
||||
[sub_resource type="Shader" id="Shader_p07av"]
|
||||
code = "shader_type canvas_item;
|
||||
|
||||
uniform sampler2D chars;
|
||||
uniform sampler2D noise_tex;
|
||||
uniform float offset;
|
||||
uniform float seed;
|
||||
|
||||
float random (vec2 uv) {
|
||||
return fract(sin(dot(uv.xy,
|
||||
vec2(12.9898,78.233))) * 43758.5453123);
|
||||
}
|
||||
|
||||
void fragment() {
|
||||
// Random character
|
||||
vec2 uv = fract(UV * 32.0); // loop uv 32 times for the characters (as the noise resolution is 32x32)
|
||||
//vec2 uv = vec2(0,0);
|
||||
float noise = texture(noise_tex, vec2(round(UV.x * 26.0 + 0.5) / 26.0, 0)).g;
|
||||
noise = round(noise * 26.0) / 26.0; // make sure the color value are snapped by 0.1 (so its only 0.0, 0.1, 0.2, and so on) for perfect offset
|
||||
//uv.x = (uv.x / 26.0); // offset
|
||||
//uv.x = UV.x;
|
||||
//uv.x += noise; // offset every character by the noise value
|
||||
uv.x = fract(UV.x + noise);
|
||||
//uv.x += round(TIME * 0.5 * 26.0)/26.0; // animate characters with TIME, then snapped by 0.1 so it doesnt slide. 0.5 is the speed, you might want to change that
|
||||
|
||||
// distortion
|
||||
float rain = UV.y; // this is a vertical gradient
|
||||
float distortion = texture(noise_tex, (UV + vec2(0,offset)) / vec2(1.0, 64.0)).g; // this will be used for distortion, using previous noise but only horizontal
|
||||
distortion = round(distortion * 26.0) / 26.0; // for precision reason, you need to round your distortion too, otherwise some character wouldnt be fully shown
|
||||
rain -= round((TIME + offset) * 0.2 * 32.0) / 32.0; // the 'rain' shouldn't move smoothly right? also, 0.2 is the speed
|
||||
rain += distortion; // distort this gradient, turning it into a rain
|
||||
rain = fract(rain); // loop the rain
|
||||
rain = round(rain * 128.0) / 128.0; // pixelate the rain. Rounding by 32.0 or 8.0 is optional
|
||||
rain = pow(rain, 5.0); // this is not necessary, i just think that it looks good
|
||||
rain *= 2.0; // this is also not important, just making the characters brighter
|
||||
|
||||
COLOR.rgb = texture(chars, vec2(uv.x, uv.y)).rgb * rain * vec3(0.0, 1.0, 0.0); // finally multiply them together then multiply with green for the color
|
||||
COLOR.a = rain;
|
||||
}
|
||||
|
||||
|
||||
"
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_khjys"]
|
||||
resource_local_to_scene = true
|
||||
shader = SubResource("Shader_p07av")
|
||||
shader_parameter/chars = ExtResource("14_p07av")
|
||||
shader_parameter/noise_tex = ExtResource("5_p07av")
|
||||
shader_parameter/offset = 12.625
|
||||
shader_parameter/seed = 0.0
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_174rq"]
|
||||
resource_local_to_scene = true
|
||||
shader = SubResource("Shader_p07av")
|
||||
shader_parameter/chars = ExtResource("14_p07av")
|
||||
shader_parameter/noise_tex = ExtResource("5_p07av")
|
||||
shader_parameter/offset = 18.91
|
||||
shader_parameter/seed = 0.0
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_neciy"]
|
||||
resource_local_to_scene = true
|
||||
shader = SubResource("Shader_p07av")
|
||||
shader_parameter/chars = ExtResource("14_p07av")
|
||||
shader_parameter/noise_tex = ExtResource("5_p07av")
|
||||
shader_parameter/offset = 21.135
|
||||
shader_parameter/seed = 0.0
|
||||
|
||||
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_ib7db"]
|
||||
blend_mode = 1
|
||||
|
||||
@@ -89,6 +157,7 @@ shader_parameter/strength = 0.10300002864250002
|
||||
shader = ExtResource("13_4qe4i")
|
||||
shader_parameter/chars = ExtResource("14_p07av")
|
||||
shader_parameter/noise_tex = ExtResource("15_khjys")
|
||||
shader_parameter/offset = 0.0
|
||||
|
||||
[node name="Control" type="Control" groups=["scenes"]]
|
||||
layout_mode = 3
|
||||
@@ -99,7 +168,19 @@ grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_e54dn")
|
||||
|
||||
[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="TextureRect" type="TextureRect" parent="."]
|
||||
visible = false
|
||||
material = SubResource("ShaderMaterial_tpml5")
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
@@ -110,8 +191,56 @@ grow_vertical = 2
|
||||
texture = SubResource("GradientTexture1D_ig5kc")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="TextureRect2" type="TextureRect" parent="."]
|
||||
modulate = Color(1, 1, 1, 0.7921569)
|
||||
[node name="TextureRect8" type="TextureRect" parent="."]
|
||||
texture_repeat = 2
|
||||
material = SubResource("ShaderMaterial_khjys")
|
||||
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="TextureRect11" type="TextureRect" parent="."]
|
||||
modulate = Color(1, 1, 1, 0.5568628)
|
||||
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="TextureRect9" type="TextureRect" parent="."]
|
||||
texture_repeat = 2
|
||||
material = SubResource("ShaderMaterial_174rq")
|
||||
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="TextureRect12" type="TextureRect" parent="."]
|
||||
modulate = Color(1, 1, 1, 0.3254902)
|
||||
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="TextureRect10" type="TextureRect" parent="."]
|
||||
modulate = Color(1, 1, 1, 0.09411765)
|
||||
texture_repeat = 2
|
||||
material = SubResource("ShaderMaterial_neciy")
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
|
||||
Reference in New Issue
Block a user