[gd_scene load_steps=9 format=2] [ext_resource path="res://assets/title_font.tres" type="DynamicFont" id=1] [ext_resource path="res://effects/WorldEnvironment.tscn" type="PackedScene" id=2] [ext_resource path="res://effects/grainy_shader.tscn" type="PackedScene" id=3] [ext_resource path="res://assets/models/meat_planet.tscn" type="PackedScene" id=4] [ext_resource path="res://screens/TitleMenu.gd" type="Script" id=5] [ext_resource path="res://assets/audio/menu_music.ogg" type="AudioStream" id=6] [ext_resource path="res://assets/audio/button_press.ogg" type="AudioStream" id=7] [ext_resource path="res://assets/ui_theme.tres" type="Theme" 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( 4 )] 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( 2 )] [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( 8 ) script = ExtResource( 5 ) [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( 1 ) 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( 8 ) 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( 6 ) volume_db = -7.0 autoplay = true [node name="BlackoutSound" type="AudioStreamPlayer" parent="TitleMenu"] stream = ExtResource( 7 ) [node name="grainy_shader" parent="TitleMenu" instance=ExtResource( 3 )] [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"]