Merge branch 'master' of https://git.sjkillen.ca/sjkillen/meat_madness_redux
This commit is contained in:
commit
1331322d8a
|
@ -0,0 +1,3 @@
|
||||||
|
source_md5="82d79a832cb895ddf29160602d1a3bac"
|
||||||
|
dest_md5="3ed030bdc4c8d1bf514194b0051bfa01"
|
||||||
|
|
Binary file not shown.
|
@ -0,0 +1,3 @@
|
||||||
|
source_md5="f62320f5d1e5f0d2d371cd65fcc3b0ca"
|
||||||
|
dest_md5="86422adcf00d789d63ed97ab0178a962"
|
||||||
|
|
Binary file not shown.
|
@ -0,0 +1,3 @@
|
||||||
|
source_md5="1bbe0a04963e27ba5a40e51bd5c6c81f"
|
||||||
|
dest_md5="214ef15e700cfe91b619a1d8ae0482fb"
|
||||||
|
|
Binary file not shown.
|
@ -0,0 +1,3 @@
|
||||||
|
source_md5="d4a5844d71536b7a9b6b9b7811259d4f"
|
||||||
|
dest_md5="b6de1591e42ebd2f6b026ba23576794d"
|
||||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -30,7 +30,7 @@ panorama = ExtResource( 4 )
|
||||||
background_mode = 2
|
background_mode = 2
|
||||||
background_sky = SubResource( 2 )
|
background_sky = SubResource( 2 )
|
||||||
ambient_light_color = Color( 0.329412, 0.231373, 0.231373, 1 )
|
ambient_light_color = Color( 0.329412, 0.231373, 0.231373, 1 )
|
||||||
ambient_light_energy = 2.22
|
ambient_light_energy = 2.0
|
||||||
ambient_light_sky_contribution = 0.0
|
ambient_light_sky_contribution = 0.0
|
||||||
fog_enabled = true
|
fog_enabled = true
|
||||||
fog_color = Color( 0.0117647, 0.0156863, 0.0156863, 1 )
|
fog_color = Color( 0.0117647, 0.0156863, 0.0156863, 1 )
|
||||||
|
@ -296,45 +296,47 @@ transform = Transform( -0.449096, 0.167882, 0.254066, 0.12168, 0.619619, -0.0688
|
||||||
[node name="meat_tentacle_small2" parent="decorations/tentacle_cluster_8" index="4" instance=ExtResource( 21 )]
|
[node name="meat_tentacle_small2" parent="decorations/tentacle_cluster_8" index="4" instance=ExtResource( 21 )]
|
||||||
transform = Transform( -0.451285, 0.168114, 0.250056, -0.00507374, 0.56347, -0.271243, -0.30563, -0.257587, -0.430144, -1.93217, -0.560821, -0.363808 )
|
transform = Transform( -0.451285, 0.168114, 0.250056, -0.00507374, 0.56347, -0.271243, -0.30563, -0.257587, -0.430144, -1.93217, -0.560821, -0.363808 )
|
||||||
|
|
||||||
[node name="shader" parent="." index="7" instance=ExtResource( 7 )]
|
[node name="blackboxes" type="Spatial" parent="." index="7"]
|
||||||
|
|
||||||
[node name="creek_cage" parent="." index="8" instance=ExtResource( 9 )]
|
[node name="black_box0" parent="blackboxes" index="0" instance=ExtResource( 19 )]
|
||||||
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -41.0261, 1.80736, -111.427 )
|
||||||
|
|
||||||
[node name="elevator" parent="." index="9" instance=ExtResource( 10 )]
|
[node name="black_box1" parent="blackboxes" index="1" instance=ExtResource( 19 )]
|
||||||
|
transform = Transform( -0.287692, -0.333414, 0.897813, -0.488515, 0.857409, 0.161872, -0.823764, -0.392025, -0.409548, 27.5249, 2.89185, -81.1085 )
|
||||||
|
id = 1
|
||||||
|
|
||||||
|
[node name="black_box2" parent="blackboxes" index="2" instance=ExtResource( 19 )]
|
||||||
|
transform = Transform( 0.428225, -0.113891, 0.896467, -0.148051, 0.96978, 0.193927, -0.891463, -0.215767, 0.398423, 44.7662, 0.738013, -12.0992 )
|
||||||
|
id = 2
|
||||||
|
|
||||||
|
[node name="black_box3" parent="blackboxes" index="3" instance=ExtResource( 19 )]
|
||||||
|
transform = Transform( 0.867158, -0.382308, -0.319182, 0.448321, 0.878331, 0.165962, 0.216898, -0.287011, 0.933049, -67.3523, 1.59831, -21.1349 )
|
||||||
|
id = 3
|
||||||
|
|
||||||
|
[node name="black_box4" parent="blackboxes" index="4" instance=ExtResource( 19 )]
|
||||||
|
transform = Transform( 0.900076, -0.435734, 0, 0.430268, 0.888784, -0.1579, 0.0688022, 0.142122, 0.987455, -1.60433, 2.16359, 17.6124 )
|
||||||
|
id = 4
|
||||||
|
|
||||||
|
[node name="shader" parent="." index="8" instance=ExtResource( 7 )]
|
||||||
|
|
||||||
|
[node name="creek_cage" parent="." index="9" instance=ExtResource( 9 )]
|
||||||
|
|
||||||
|
[node name="elevator" parent="." index="10" instance=ExtResource( 10 )]
|
||||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0735546, -123.027, -41.1766 )
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0735546, -123.027, -41.1766 )
|
||||||
|
|
||||||
[node name="SignalGenerator" parent="." index="10" instance=ExtResource( 12 )]
|
[node name="SignalGenerator" parent="." index="11" instance=ExtResource( 12 )]
|
||||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.489914, -122.635, -41.5684 )
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.489914, -122.635, -41.5684 )
|
||||||
stream = ExtResource( 16 )
|
stream = ExtResource( 16 )
|
||||||
max_db = 6.0
|
max_db = 6.0
|
||||||
max_distance = 200.0
|
max_distance = 200.0
|
||||||
|
|
||||||
[node name="upper_shelf" parent="." index="11" instance=ExtResource( 13 )]
|
[node name="upper_shelf" parent="." index="12" instance=ExtResource( 13 )]
|
||||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3.09789, 0 )
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3.09789, 0 )
|
||||||
|
|
||||||
[node name="black_box0" parent="." index="12" instance=ExtResource( 19 )]
|
[node name="obelisk" parent="." index="13" instance=ExtResource( 20 )]
|
||||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -41.0261, 1.80736, -111.427 )
|
transform = Transform( 1.5, 0, 0, 0, 1, 0, 0, 0, 1, 66.6986, 6.79926, -61.306 )
|
||||||
|
|
||||||
[node name="black_box1" parent="." index="13" instance=ExtResource( 19 )]
|
[node name="AmbientSounds" type="Node" parent="." index="14"]
|
||||||
transform = Transform( -0.222825, 0, 0.974859, 0, 1, 0, -0.974859, 0, -0.222825, -35.7068, 1.76987, -64.4388 )
|
|
||||||
id = 1
|
|
||||||
|
|
||||||
[node name="black_box2" parent="." index="14" instance=ExtResource( 19 )]
|
|
||||||
transform = Transform( 0.473566, 0, -0.880759, 0, 1, 0, 0.880759, 0, 0.473566, 44.7662, 0.822734, -12.0992 )
|
|
||||||
id = 2
|
|
||||||
|
|
||||||
[node name="black_box3" parent="." index="15" instance=ExtResource( 19 )]
|
|
||||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -35.0576, 3.21833, 30.1744 )
|
|
||||||
id = 3
|
|
||||||
|
|
||||||
[node name="black_box4" parent="." index="16" instance=ExtResource( 19 )]
|
|
||||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -1.60433, -122.797, -43.5648 )
|
|
||||||
id = 4
|
|
||||||
|
|
||||||
[node name="obelisk" parent="." index="17" instance=ExtResource( 20 )]
|
|
||||||
transform = Transform( -0.0547934, 0, 0.998498, 0, 1, 0, -0.998498, 0, -0.0547934, 66.6986, 6.79926, -61.306 )
|
|
||||||
|
|
||||||
[node name="AmbientSounds" type="Node" parent="." index="18"]
|
|
||||||
|
|
||||||
[node name="WaterSound" type="AudioStreamPlayer" parent="AmbientSounds" index="0"]
|
[node name="WaterSound" type="AudioStreamPlayer" parent="AmbientSounds" index="0"]
|
||||||
stream = ExtResource( 14 )
|
stream = ExtResource( 14 )
|
||||||
|
|
Binary file not shown.
|
@ -0,0 +1,37 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path.s3tc="res://.import/meat_planet_texture.png-61c3a90d1549893d98f9f9c99dc65ff2.s3tc.stex"
|
||||||
|
path.etc2="res://.import/meat_planet_texture.png-61c3a90d1549893d98f9f9c99dc65ff2.etc2.stex"
|
||||||
|
metadata={
|
||||||
|
"imported_formats": [ "s3tc", "etc2" ],
|
||||||
|
"vram_texture": true
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/meat_planet_texture.png"
|
||||||
|
dest_files=[ "res://.import/meat_planet_texture.png-61c3a90d1549893d98f9f9c99dc65ff2.s3tc.stex", "res://.import/meat_planet_texture.png-61c3a90d1549893d98f9f9c99dc65ff2.etc2.stex" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=2
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_mode=0
|
||||||
|
compress/bptc_ldr=0
|
||||||
|
compress/normal_map=0
|
||||||
|
flags/repeat=true
|
||||||
|
flags/filter=true
|
||||||
|
flags/mipmaps=true
|
||||||
|
flags/anisotropic=false
|
||||||
|
flags/srgb=1
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/HDR_as_SRGB=false
|
||||||
|
process/invert_color=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
stream=false
|
||||||
|
size_limit=0
|
||||||
|
detect_3d=false
|
||||||
|
svg/scale=1.0
|
|
@ -1,4 +1 @@
|
||||||
extends AnimationPlayer
|
|
||||||
|
|
||||||
func _ready() -> void:
|
|
||||||
self.play("ArmatureAction-loop")
|
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,28 @@
|
||||||
|
[gd_scene load_steps=4 format=2]
|
||||||
|
|
||||||
|
[ext_resource path="res://assets/models/meat_planet.glb" type="PackedScene" id=1]
|
||||||
|
[ext_resource path="res://assets/models/PlanetMaterial.material" type="Material" id=2]
|
||||||
|
|
||||||
|
[sub_resource type="Animation" id=2]
|
||||||
|
resource_name = "SphereAction-loop"
|
||||||
|
length = 10.0
|
||||||
|
loop = true
|
||||||
|
tracks/0/type = "transform"
|
||||||
|
tracks/0/path = NodePath("Sphere")
|
||||||
|
tracks/0/interp = 1
|
||||||
|
tracks/0/loop_wrap = true
|
||||||
|
tracks/0/imported = false
|
||||||
|
tracks/0/enabled = true
|
||||||
|
tracks/0/keys = PoolRealArray( 0, 1, -0.0390858, -0.0390858, 0.0390858, -0.0206999, -0.0206999, 0.0609526, 0.997711, 1.96091, 1.96091, 1.96091, 0.0666667, 1, -0.0390858, -0.0390858, 0.0390858, -0.0205543, -0.0205543, 0.0530486, 0.998169, 1.96091, 1.96091, 1.96091, 0.666667, 1, -0.0390858, -0.0390858, 0.0390858, -0.0166952, -0.0166952, -0.136506, 0.990358, 1.96091, 1.96091, 1.96091, 1.26667, 1, -0.0390858, -0.0390858, 0.0390858, -0.0122348, -0.0122348, -0.321143, 0.946873, 1.96091, 1.96091, 1.96091, 1.86667, 1, -0.0390858, -0.0390858, 0.0390858, -0.00733364, -0.00733364, -0.494212, 0.86928, 1.96091, 1.96091, 1.96091, 2.46667, 1, -0.0390858, -0.0390858, 0.0390858, -0.00216832, -0.00216832, -0.649478, 0.760374, 1.96091, 1.96091, 1.96091, 3.06667, 1, -0.0390858, -0.0390858, 0.0390858, 0.00307511, 0.00307511, -0.78135, 0.624078, 1.96091, 1.96091, 1.96091, 3.66667, 1, -0.0390858, -0.0390858, 0.0390858, 0.00820776, 0.00820776, -0.885076, 0.465302, 1.96091, 1.96091, 1.96091, 4.26667, 1, -0.0390858, -0.0390858, 0.0390858, 0.0130448, 0.0130448, -0.95692, 0.289765, 1.96091, 1.96091, 1.96091, 4.86667, 1, -0.0390858, -0.0390858, 0.0390858, 0.0174119, 0.0174119, -0.994294, 0.103791, 1.96091, 1.96091, 1.96091, 5.2, 1, -0.0390858, -0.0390858, 0.0390858, 0.0195659, 0.0195659, -0.999617, -0.0010536, 1.96091, 1.96091, 1.96091, 5.26667, 1, -0.0390858, -0.0390858, 0.0390858, -0.0199702, -0.0199702, 0.999359, 0.021988, 1.96091, 1.96091, 1.96091, 5.86667, 1, -0.0390858, -0.0390858, 0.0390858, -0.0231947, -0.0231947, 0.977395, 0.208863, 1.96091, 1.96091, 1.96091, 6.46667, 1, -0.0390858, -0.0390858, 0.0390858, -0.0255975, -0.0255975, 0.920805, 0.388339, 1.96091, 1.96091, 1.96091, 7.06667, 1, -0.0390858, -0.0390858, 0.0390858, -0.0270935, -0.0270935, 0.831596, 0.554057, 1.96091, 1.96091, 1.96091, 7.66667, 1, -0.0390858, -0.0390858, 0.0390858, -0.0276296, -0.0276296, 0.712927, 0.700149, 1.96091, 1.96091, 1.96091, 8.26667, 1, -0.0390858, -0.0390858, 0.0390858, -0.027187, -0.027187, 0.569003, 0.821437, 1.96091, 1.96091, 1.96091, 8.86667, 1, -0.0390858, -0.0390858, 0.0390858, -0.0257813, -0.0257813, 0.40492, 0.913625, 1.96091, 1.96091, 1.96091, 9.46667, 1, -0.0390858, -0.0390858, 0.0390858, -0.0234622, -0.0234622, 0.226494, 0.973447, 1.96091, 1.96091, 1.96091, 10, 1, -0.0390858, -0.0390858, 0.0390858, -0.0206999, -0.0206999, 0.0609527, 0.997711, 1.96091, 1.96091, 1.96091 )
|
||||||
|
|
||||||
|
[node name="meat_planet" instance=ExtResource( 1 )]
|
||||||
|
|
||||||
|
[node name="Sphere" parent="." index="0"]
|
||||||
|
transform = Transform( 1.94466, -0.236818, -0.0859437, 0.240179, 1.94466, 0.0760473, 0.0760473, -0.0859437, 1.95755, -0.0390858, -0.0390858, 0.0390858 )
|
||||||
|
material_override = ExtResource( 2 )
|
||||||
|
material/0 = ExtResource( 2 )
|
||||||
|
|
||||||
|
[node name="AnimationPlayer" parent="." index="1"]
|
||||||
|
autoplay = "SphereAction-loop"
|
||||||
|
playback_speed = 0.5
|
||||||
|
anims/SphereAction-loop = SubResource( 2 )
|
|
@ -12,7 +12,7 @@ shadow_offset=Vector2( 7, 2 )
|
||||||
|
|
||||||
[buttons]
|
[buttons]
|
||||||
|
|
||||||
normal=[ true, Color( 0.521569, 0.521569, 0.521569, 1 ), false, Color( 0, 0, 0, 1 ), true, "res://assets/Button07.png", false, Color( 1, 1, 1, 1 ) ]
|
normal=[ true, Color( 0.521569, 0.521569, 0.521569, 1 ), false, Color( 0, 0, 0, 1 ), true, "res://addons/dialogic/Example Assets/backgrounds/background-2.png", false, Color( 1, 1, 1, 1 ) ]
|
||||||
hover=[ true, Color( 0.717647, 0.717647, 0.717647, 1 ), false, Color( 0, 0, 0, 1 ), true, "res://addons/dialogic/Example Assets/backgrounds/background-2.png", false, Color( 1, 1, 1, 1 ) ]
|
hover=[ true, Color( 0.717647, 0.717647, 0.717647, 1 ), false, Color( 0, 0, 0, 1 ), true, "res://addons/dialogic/Example Assets/backgrounds/background-2.png", false, Color( 1, 1, 1, 1 ) ]
|
||||||
focus=[ true, Color( 1, 1, 1, 1 ), false, Color( 0, 0, 0, 1 ), true, "res://addons/dialogic/Example Assets/backgrounds/background-2.png", false, Color( 1, 1, 1, 1 ) ]
|
focus=[ true, Color( 1, 1, 1, 1 ), false, Color( 0, 0, 0, 1 ), true, "res://addons/dialogic/Example Assets/backgrounds/background-2.png", false, Color( 1, 1, 1, 1 ) ]
|
||||||
pressed=[ false, Color( 1, 1, 1, 1 ), false, Color( 0, 0, 0, 1 ), true, "res://addons/dialogic/Example Assets/backgrounds/background-2.png", false, Color( 1, 1, 1, 1 ) ]
|
pressed=[ false, Color( 1, 1, 1, 1 ), false, Color( 0, 0, 0, 1 ), true, "res://addons/dialogic/Example Assets/backgrounds/background-2.png", false, Color( 1, 1, 1, 1 ) ]
|
||||||
|
|
|
@ -50,7 +50,7 @@ animation="Up and down"
|
||||||
|
|
||||||
[buttons]
|
[buttons]
|
||||||
|
|
||||||
normal=[ false, Color( 1, 1, 1, 1 ), false, Color( 0, 0, 0, 1 ), true, "res://assets/Button07.png", false, Color( 1, 1, 1, 1 ) ]
|
normal=[ false, Color( 0.521569, 0.521569, 0.521569, 1 ), false, Color( 0, 0, 0, 1 ), true, "res://addons/dialogic/Example Assets/backgrounds/background-2.png", false, Color( 1, 1, 1, 1 ) ]
|
||||||
layout=1
|
layout=1
|
||||||
fixed=true
|
fixed=true
|
||||||
fixed_size=Vector2( 200, 80 )
|
fixed_size=Vector2( 200, 80 )
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
"set_value": "true"
|
"set_value": "true"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"change_scene": "res://tests/test_player_locomotion.tscn",
|
"change_scene": "res://assets/meat_creek/side_tunnel_1.tscn",
|
||||||
"event_id": "dialogic_041"
|
"event_id": "dialogic_041"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -70,7 +70,7 @@
|
||||||
"value": "true"
|
"value": "true"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"change_scene": "res://tests/test_player_locomotion.tscn",
|
"change_scene": "res://assets/meat_creek/side_tunnel_1.tscn",
|
||||||
"event_id": "dialogic_041"
|
"event_id": "dialogic_041"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -232,7 +232,7 @@ script = ExtResource( 19 )
|
||||||
|
|
||||||
[node name="Footsteps" type="AudioStreamPlayer" parent="MovementSoundsAnimations"]
|
[node name="Footsteps" type="AudioStreamPlayer" parent="MovementSoundsAnimations"]
|
||||||
stream = ExtResource( 17 )
|
stream = ExtResource( 17 )
|
||||||
volume_db = -15.0
|
volume_db = -12.0
|
||||||
|
|
||||||
[node name="Timer" type="Timer" parent="MovementSoundsAnimations/Footsteps"]
|
[node name="Timer" type="Timer" parent="MovementSoundsAnimations/Footsteps"]
|
||||||
one_shot = true
|
one_shot = true
|
||||||
|
|
|
@ -91,7 +91,6 @@ SavedDialogueProgress="*res://saved_dialogue_progress.gd"
|
||||||
|
|
||||||
[display]
|
[display]
|
||||||
|
|
||||||
window/size/resizable=false
|
|
||||||
window/size/fullscreen=true
|
window/size/fullscreen=true
|
||||||
|
|
||||||
[editor_plugins]
|
[editor_plugins]
|
||||||
|
|
|
@ -9,21 +9,27 @@
|
||||||
pause_mode = 2
|
pause_mode = 2
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
|
focus_mode = 1
|
||||||
|
mouse_filter = 1
|
||||||
theme = ExtResource( 4 )
|
theme = ExtResource( 4 )
|
||||||
script = ExtResource( 3 )
|
script = ExtResource( 3 )
|
||||||
|
|
||||||
[node name="pauseBackground" type="TextureRect" parent="."]
|
[node name="pauseBackground" type="TextureRect" parent="."]
|
||||||
|
pause_mode = 2
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
texture = ExtResource( 1 )
|
texture = ExtResource( 1 )
|
||||||
stretch_mode = 1
|
stretch_mode = 1
|
||||||
|
|
||||||
[node name="CenterContainer" type="CenterContainer" parent="."]
|
[node name="CenterContainer" type="CenterContainer" parent="."]
|
||||||
|
pause_mode = 2
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
|
mouse_filter = 1
|
||||||
theme = ExtResource( 2 )
|
theme = ExtResource( 2 )
|
||||||
|
|
||||||
[node name="VBoxContainer" type="VBoxContainer" parent="CenterContainer"]
|
[node name="VBoxContainer" type="VBoxContainer" parent="CenterContainer"]
|
||||||
|
pause_mode = 2
|
||||||
margin_left = 408.0
|
margin_left = 408.0
|
||||||
margin_top = 193.0
|
margin_top = 193.0
|
||||||
margin_right = 616.0
|
margin_right = 616.0
|
||||||
|
@ -32,36 +38,46 @@ theme = ExtResource( 4 )
|
||||||
custom_constants/separation = 10
|
custom_constants/separation = 10
|
||||||
|
|
||||||
[node name="Spacer" type="Control" parent="CenterContainer/VBoxContainer"]
|
[node name="Spacer" type="Control" parent="CenterContainer/VBoxContainer"]
|
||||||
|
pause_mode = 2
|
||||||
margin_right = 208.0
|
margin_right = 208.0
|
||||||
margin_bottom = 30.0
|
margin_bottom = 30.0
|
||||||
rect_min_size = Vector2( 1, 30 )
|
rect_min_size = Vector2( 1, 30 )
|
||||||
|
mouse_filter = 1
|
||||||
|
|
||||||
[node name="ResumeButton" type="Button" parent="CenterContainer/VBoxContainer"]
|
[node name="ResumeButton" type="Button" parent="CenterContainer/VBoxContainer"]
|
||||||
|
pause_mode = 2
|
||||||
margin_top = 40.0
|
margin_top = 40.0
|
||||||
margin_right = 208.0
|
margin_right = 208.0
|
||||||
margin_bottom = 76.0
|
margin_bottom = 76.0
|
||||||
rect_min_size = Vector2( 208, 36 )
|
rect_min_size = Vector2( 208, 36 )
|
||||||
|
mouse_filter = 1
|
||||||
text = "Resume"
|
text = "Resume"
|
||||||
|
|
||||||
[node name="MainMenuButton" type="Button" parent="CenterContainer/VBoxContainer"]
|
[node name="MainMenuButton" type="Button" parent="CenterContainer/VBoxContainer"]
|
||||||
|
pause_mode = 2
|
||||||
margin_top = 86.0
|
margin_top = 86.0
|
||||||
margin_right = 208.0
|
margin_right = 208.0
|
||||||
margin_bottom = 122.0
|
margin_bottom = 122.0
|
||||||
rect_min_size = Vector2( 208, 36 )
|
rect_min_size = Vector2( 208, 36 )
|
||||||
|
mouse_filter = 1
|
||||||
text = "Main Menu"
|
text = "Main Menu"
|
||||||
|
|
||||||
[node name="ControlsButton" type="Button" parent="CenterContainer/VBoxContainer"]
|
[node name="ControlsButton" type="Button" parent="CenterContainer/VBoxContainer"]
|
||||||
|
pause_mode = 2
|
||||||
margin_top = 132.0
|
margin_top = 132.0
|
||||||
margin_right = 208.0
|
margin_right = 208.0
|
||||||
margin_bottom = 168.0
|
margin_bottom = 168.0
|
||||||
rect_min_size = Vector2( 208, 36 )
|
rect_min_size = Vector2( 208, 36 )
|
||||||
|
mouse_filter = 1
|
||||||
text = "Controls"
|
text = "Controls"
|
||||||
|
|
||||||
[node name="QuitButton" type="Button" parent="CenterContainer/VBoxContainer"]
|
[node name="QuitButton" type="Button" parent="CenterContainer/VBoxContainer"]
|
||||||
|
pause_mode = 2
|
||||||
margin_top = 178.0
|
margin_top = 178.0
|
||||||
margin_right = 208.0
|
margin_right = 208.0
|
||||||
margin_bottom = 214.0
|
margin_bottom = 214.0
|
||||||
rect_min_size = Vector2( 208, 36 )
|
rect_min_size = Vector2( 208, 36 )
|
||||||
|
mouse_filter = 1
|
||||||
text = "Quit"
|
text = "Quit"
|
||||||
|
|
||||||
[connection signal="pressed" from="CenterContainer/VBoxContainer/ResumeButton" to="." method="_on_ResumeButton_pressed"]
|
[connection signal="pressed" from="CenterContainer/VBoxContainer/ResumeButton" to="." method="_on_ResumeButton_pressed"]
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
extends Control
|
||||||
|
|
||||||
|
func _ready():
|
||||||
|
$ButtonContainer/PlayButton.grab_focus()
|
||||||
|
|
||||||
|
func _on_PlayButton_pressed():
|
||||||
|
$MenuMusic.stop()
|
||||||
|
$BlackoutSound.play()
|
||||||
|
$ButtonContainer.visible = false
|
||||||
|
$BlackoutScreen.visible = true
|
||||||
|
var dialog = Dialogic.start("intro")
|
||||||
|
add_child(dialog)
|
||||||
|
|
||||||
|
func _on_Credits_pressed():
|
||||||
|
var dialog = Dialogic.start("credits")
|
||||||
|
add_child(dialog)
|
||||||
|
|
||||||
|
func _on_Controls_pressed():
|
||||||
|
var dialog = Dialogic.start("controls")
|
||||||
|
add_child(dialog)
|
||||||
|
|
||||||
|
func _on_QuitButton_pressed():
|
||||||
|
get_tree().quit()
|
|
@ -0,0 +1,118 @@
|
||||||
|
[gd_scene load_steps=9 format=2]
|
||||||
|
|
||||||
|
[ext_resource path="res://assets/models/meat_planet.tscn" type="PackedScene" id=1]
|
||||||
|
[ext_resource path="res://assets/audio/button_press.ogg" type="AudioStream" id=2]
|
||||||
|
[ext_resource path="res://assets/audio/menu_music.ogg" type="AudioStream" id=3]
|
||||||
|
[ext_resource path="res://effects/grainy_shader.tscn" type="PackedScene" id=4]
|
||||||
|
[ext_resource path="res://effects/WorldEnvironment.tscn" type="PackedScene" id=5]
|
||||||
|
[ext_resource path="res://assets/title_font.tres" type="DynamicFont" id=6]
|
||||||
|
[ext_resource path="res://assets/ui_theme.tres" type="Theme" id=7]
|
||||||
|
[ext_resource path="res://tests/test_titlescreen_planet/TitleMenu.gd" type="Script" id=8]
|
||||||
|
|
||||||
|
[node name="test_titlescreen_planet" type="Spatial"]
|
||||||
|
|
||||||
|
[node name="Camera" type="Camera" parent="."]
|
||||||
|
transform = Transform( -0.262413, -0.132575, 0.955805, -0.0204041, 0.991058, 0.131863, -0.96474, 0.0151002, -0.262772, 4.34589, 1.41359, 1.05785 )
|
||||||
|
|
||||||
|
[node name="meat_planet" parent="." instance=ExtResource( 1 )]
|
||||||
|
transform = Transform( -0.0182938, 0.353447, -0.54052, 0.529643, -0.301205, -0.214884, -0.369546, -0.44919, -0.281219, 0.0736001, 0.18823, -0.0757823 )
|
||||||
|
|
||||||
|
[node name="DirectionalLight" type="DirectionalLight" parent="."]
|
||||||
|
transform = Transform( 0.791944, 0.610549, 0.00734885, -0.405596, 0.517027, 0.753774, 0.456416, -0.599928, 0.657093, 3.25392, 5.38699, -0.264825 )
|
||||||
|
light_color = Color( 0.317647, 0.0156863, 0.0156863, 1 )
|
||||||
|
light_energy = 1.5
|
||||||
|
shadow_enabled = true
|
||||||
|
|
||||||
|
[node name="WorldEnvironment" parent="." instance=ExtResource( 5 )]
|
||||||
|
|
||||||
|
[node name="TitleMenu" type="Control" parent="."]
|
||||||
|
anchor_left = 0.5
|
||||||
|
anchor_top = 0.5
|
||||||
|
anchor_right = 0.5
|
||||||
|
anchor_bottom = 0.5
|
||||||
|
margin_left = -20.0
|
||||||
|
margin_top = -20.0
|
||||||
|
margin_right = 20.0
|
||||||
|
margin_bottom = 20.0
|
||||||
|
theme = ExtResource( 7 )
|
||||||
|
script = ExtResource( 8 )
|
||||||
|
|
||||||
|
[node name="Title" type="Label" parent="TitleMenu"]
|
||||||
|
anchor_left = 0.5
|
||||||
|
anchor_top = 0.5
|
||||||
|
anchor_right = 0.5
|
||||||
|
anchor_bottom = 0.5
|
||||||
|
margin_left = -512.0
|
||||||
|
margin_top = -396.0
|
||||||
|
margin_right = 172.0
|
||||||
|
margin_bottom = -332.0
|
||||||
|
rect_scale = Vector2( 1.5, 1.5 )
|
||||||
|
custom_colors/font_color = Color( 1, 1, 1, 1 )
|
||||||
|
custom_colors/font_outline_modulate = Color( 0, 0, 0, 1 )
|
||||||
|
custom_constants/shadow_offset_x = 10
|
||||||
|
custom_fonts/font = ExtResource( 6 )
|
||||||
|
text = "MEAT MADNESS"
|
||||||
|
align = 1
|
||||||
|
|
||||||
|
[node name="ButtonContainer" type="VBoxContainer" parent="TitleMenu"]
|
||||||
|
anchor_left = 0.5
|
||||||
|
anchor_top = 0.5
|
||||||
|
anchor_right = 0.5
|
||||||
|
anchor_bottom = 0.5
|
||||||
|
margin_left = -504.0
|
||||||
|
margin_top = -52.0
|
||||||
|
margin_right = -204.0
|
||||||
|
margin_bottom = 298.0
|
||||||
|
theme = ExtResource( 7 )
|
||||||
|
custom_constants/separation = 10
|
||||||
|
|
||||||
|
[node name="PlayButton" type="Button" parent="TitleMenu/ButtonContainer"]
|
||||||
|
margin_right = 300.0
|
||||||
|
margin_bottom = 80.0
|
||||||
|
size_flags_vertical = 3
|
||||||
|
text = "Play"
|
||||||
|
|
||||||
|
[node name="Credits" type="Button" parent="TitleMenu/ButtonContainer"]
|
||||||
|
margin_top = 90.0
|
||||||
|
margin_right = 300.0
|
||||||
|
margin_bottom = 170.0
|
||||||
|
size_flags_vertical = 3
|
||||||
|
text = "Credits"
|
||||||
|
|
||||||
|
[node name="Controls" type="Button" parent="TitleMenu/ButtonContainer"]
|
||||||
|
margin_top = 180.0
|
||||||
|
margin_right = 300.0
|
||||||
|
margin_bottom = 260.0
|
||||||
|
size_flags_vertical = 3
|
||||||
|
text = "Controls"
|
||||||
|
|
||||||
|
[node name="QuitButton" type="Button" parent="TitleMenu/ButtonContainer"]
|
||||||
|
margin_top = 270.0
|
||||||
|
margin_right = 300.0
|
||||||
|
margin_bottom = 350.0
|
||||||
|
size_flags_vertical = 3
|
||||||
|
text = "Quit"
|
||||||
|
|
||||||
|
[node name="BlackoutScreen" type="CanvasLayer" parent="TitleMenu"]
|
||||||
|
layer = 2
|
||||||
|
visible = false
|
||||||
|
|
||||||
|
[node name="ColorRect" type="ColorRect" parent="TitleMenu/BlackoutScreen"]
|
||||||
|
anchor_right = 1.0
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
color = Color( 0, 0, 0, 1 )
|
||||||
|
|
||||||
|
[node name="MenuMusic" type="AudioStreamPlayer" parent="TitleMenu"]
|
||||||
|
stream = ExtResource( 3 )
|
||||||
|
volume_db = -7.0
|
||||||
|
autoplay = true
|
||||||
|
|
||||||
|
[node name="BlackoutSound" type="AudioStreamPlayer" parent="TitleMenu"]
|
||||||
|
stream = ExtResource( 2 )
|
||||||
|
|
||||||
|
[node name="grainy_shader" parent="TitleMenu" instance=ExtResource( 4 )]
|
||||||
|
|
||||||
|
[connection signal="pressed" from="TitleMenu/ButtonContainer/PlayButton" to="TitleMenu" method="_on_PlayButton_pressed"]
|
||||||
|
[connection signal="pressed" from="TitleMenu/ButtonContainer/Credits" to="TitleMenu" method="_on_Credits_pressed"]
|
||||||
|
[connection signal="pressed" from="TitleMenu/ButtonContainer/Controls" to="TitleMenu" method="_on_Controls_pressed"]
|
||||||
|
[connection signal="pressed" from="TitleMenu/ButtonContainer/QuitButton" to="TitleMenu" method="_on_QuitButton_pressed"]
|
Loading…
Reference in New Issue