182 lines
4.9 KiB
Plaintext
182 lines
4.9 KiB
Plaintext
[gd_scene load_steps=15 format=2]
|
|
|
|
[ext_resource path="res://Materials/Dark_ProtoMat.tres" type="Material" id=1]
|
|
[ext_resource path="res://Player.tscn" type="PackedScene" id=2]
|
|
[ext_resource path="res://Materials/Orange_ProtoMat.tres" type="Material" id=3]
|
|
[ext_resource path="res://AllSkyFree_Skyboxes/Epic_BlueSunset_EquiRect_flat.png" type="Texture" id=4]
|
|
[ext_resource path="res://Title Timer.gd" type="Script" id=5]
|
|
[ext_resource path="res://fonts/TorontoSubwayRegular.ttf" type="DynamicFontData" id=6]
|
|
[ext_resource path="res://SlapGauge.gd" type="Script" id=7]
|
|
|
|
[sub_resource type="PanoramaSky" id=1]
|
|
panorama = ExtResource( 4 )
|
|
|
|
[sub_resource type="Environment" id=2]
|
|
background_mode = 2
|
|
background_sky = SubResource( 1 )
|
|
ambient_light_energy = 0.67
|
|
fog_enabled = true
|
|
fog_color = Color( 0.305882, 0.372549, 0.52549, 1 )
|
|
fog_sun_color = Color( 0.901961, 0.803922, 0.752941, 1 )
|
|
fog_sun_amount = 1.0
|
|
fog_depth_begin = 98.8
|
|
fog_depth_end = 1444.5
|
|
fog_depth_curve = 0.466516
|
|
fog_transmit_enabled = true
|
|
fog_transmit_curve = 0.659754
|
|
fog_height_enabled = true
|
|
fog_height_min = 148.2
|
|
fog_height_max = -48.0
|
|
fog_height_curve = 4.59481
|
|
ssao_radius = 8.1
|
|
ssao_intensity = 4.3
|
|
ssao_radius2 = 40.7
|
|
ssao_intensity2 = 14.6
|
|
ssao_bias = 0.059
|
|
ssao_color = Color( 0.180392, 0.207843, 0.25098, 1 )
|
|
glow_enabled = true
|
|
glow_intensity = 1.86
|
|
glow_strength = 0.87
|
|
glow_bloom = 0.02
|
|
glow_hdr_threshold = 0.44
|
|
glow_bicubic_upscale = true
|
|
|
|
[sub_resource type="DynamicFont" id=3]
|
|
size = 88
|
|
outline_size = 5
|
|
outline_color = Color( 0, 0, 0, 1 )
|
|
use_filter = true
|
|
font_data = ExtResource( 6 )
|
|
|
|
[sub_resource type="DynamicFont" id=4]
|
|
size = 19
|
|
outline_size = 2
|
|
outline_color = Color( 0, 0, 0, 1 )
|
|
use_mipmaps = true
|
|
use_filter = true
|
|
font_data = ExtResource( 6 )
|
|
|
|
[sub_resource type="Theme" id=5]
|
|
default_font = SubResource( 4 )
|
|
|
|
[sub_resource type="Shader" id=6]
|
|
code = "shader_type canvas_item;
|
|
render_mode unshaded;
|
|
|
|
uniform float fill;
|
|
uniform float kill;
|
|
uniform vec4 bkgcol = vec4(0.0, 0.0, 0.0, 0.3);
|
|
uniform vec4 kilcol = vec4(0.5, 0.0, 0.0, 0.3);
|
|
|
|
void fragment() {
|
|
if (fill >= UV.x) {
|
|
COLOR = vec4(UV.x,-UV.x + .5,-UV.x + 1.0,1.0);
|
|
COLOR.rgb *= vec3(cos(UV.y * 2.0) / 1.5,cos(UV.y * 2.0) / 1.5,cos(UV.y * 2.0) / 1.5);
|
|
}
|
|
else if (UV.x >= kill)
|
|
COLOR = kilcol;
|
|
else COLOR = bkgcol;
|
|
}"
|
|
|
|
[sub_resource type="ShaderMaterial" id=7]
|
|
shader = SubResource( 6 )
|
|
shader_param/fill = 0.0
|
|
shader_param/kill = null
|
|
shader_param/bkgcol = Plane( 0, 0, 0, 0.3 )
|
|
shader_param/kilcol = Plane( 0.5, 0, 0, 0.3 )
|
|
|
|
[node name="Spatial" type="Spatial"]
|
|
|
|
[node name="CSGCombiner" type="CSGCombiner" parent="."]
|
|
use_collision = true
|
|
|
|
[node name="CSGBox" type="CSGBox" parent="CSGCombiner"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0 )
|
|
width = 106.0
|
|
depth = 82.0
|
|
material = ExtResource( 1 )
|
|
|
|
[node name="CSGPolygon" type="CSGPolygon" parent="CSGCombiner"]
|
|
transform = Transform( 3.51681, 0, 0, 0, 4.16599, 0, 0, 0, 14.5504, 22.4026, 0, 7 )
|
|
polygon = PoolVector2Array( 0, 0, -3, 0, 1, 1, 1, 0 )
|
|
material = ExtResource( 3 )
|
|
|
|
[node name="Player" parent="." instance=ExtResource( 2 )]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 9, 0 )
|
|
|
|
[node name="WorldEnvironment_EpicBlueSky" type="WorldEnvironment" parent="."]
|
|
environment = SubResource( 2 )
|
|
|
|
[node name="DirectionalLight_EpicBlueSky" type="DirectionalLight" parent="."]
|
|
transform = Transform( 1, 0, 0, 0, 0.849579, 0.527461, 0, -0.527461, 0.849579, 0, 26.5368, 0 )
|
|
light_color = Color( 1, 0.924276, 0.869018, 1 )
|
|
light_specular = 1.0
|
|
shadow_enabled = true
|
|
|
|
[node name="HUD" type="CanvasLayer" parent="."]
|
|
__meta__ = {
|
|
"_editor_description_": "Heads Up Display"
|
|
}
|
|
|
|
[node name="Start" type="Control" parent="HUD"]
|
|
visible = false
|
|
margin_right = 40.0
|
|
margin_bottom = 40.0
|
|
|
|
[node name="Title" type="Label" parent="HUD/Start"]
|
|
anchor_left = 12.9
|
|
anchor_top = 7.625
|
|
anchor_right = 12.9
|
|
anchor_bottom = 7.625
|
|
margin_left = -439.0
|
|
margin_top = -54.0
|
|
margin_right = 443.0
|
|
margin_bottom = 48.0
|
|
custom_fonts/font = SubResource( 3 )
|
|
text = "FIRST PERSON SLAPPER"
|
|
|
|
[node name="Title Timer" type="Timer" parent="HUD/Start"]
|
|
one_shot = true
|
|
script = ExtResource( 5 )
|
|
|
|
[node name="New Game" type="Button" parent="HUD/Start"]
|
|
anchor_left = 12.85
|
|
anchor_top = 10.525
|
|
anchor_right = 12.85
|
|
anchor_bottom = 10.525
|
|
margin_left = -67.0
|
|
margin_top = -20.0
|
|
margin_right = 70.0
|
|
margin_bottom = 16.0
|
|
theme = SubResource( 5 )
|
|
text = "New Game"
|
|
|
|
[node name="ActualHUD" type="Control" parent="HUD"]
|
|
margin_right = 40.0
|
|
margin_bottom = 40.0
|
|
theme = SubResource( 5 )
|
|
|
|
[node name="SlapGauge" type="ColorRect" parent="HUD/ActualHUD"]
|
|
material = SubResource( 7 )
|
|
anchor_left = 12.875
|
|
anchor_top = 7.625
|
|
anchor_right = 12.875
|
|
anchor_bottom = 7.625
|
|
margin_left = -451.0
|
|
margin_top = 218.0
|
|
margin_right = -161.0
|
|
margin_bottom = 241.0
|
|
script = ExtResource( 7 )
|
|
|
|
[node name="SlapLabel" type="Label" parent="HUD/ActualHUD"]
|
|
modulate = Color( 1, 1, 1, 0.611765 )
|
|
anchor_left = 12.662
|
|
anchor_top = 7.324
|
|
anchor_right = 12.662
|
|
anchor_bottom = 7.324
|
|
margin_left = -436.48
|
|
margin_top = 229.04
|
|
margin_right = -325.48
|
|
margin_bottom = 261.04
|
|
text = "Slap"
|