Rewrote the game in C#
Added sounds and music
This commit is contained in:
@@ -1,19 +1,11 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://bat14jn36bm8h"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://bat14jn36bm8h"]
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_iu3pc"]
|
||||
script/source = "extends Button
|
||||
|
||||
func _pressed() -> void:
|
||||
get_tree().change_scene_to_packed(load('res://game/game.tscn'))
|
||||
"
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_7qewh"]
|
||||
script/source = "extends Button
|
||||
|
||||
func _pressed() -> void:
|
||||
get_tree().root.propagate_notification(NOTIFICATION_WM_CLOSE_REQUEST)
|
||||
get_tree().quit()
|
||||
"
|
||||
[ext_resource type="Script" path="res://src/MainMenu.cs" id="1_av5cs"]
|
||||
[ext_resource type="Texture2D" uid="uid://douclisbiuxji" path="res://main_menu/sound_on.png" id="2_5sfx4"]
|
||||
[ext_resource type="Texture2D" uid="uid://c8nr5inhnhliv" path="res://main_menu/sound_off.png" id="3_03fxv"]
|
||||
[ext_resource type="Texture2D" uid="uid://dv2cueufmljpv" path="res://main_menu/music_on.png" id="4_7h5nd"]
|
||||
[ext_resource type="Texture2D" uid="uid://srex1nvup3xx" path="res://main_menu/music_off.png" id="5_0dja4"]
|
||||
[ext_resource type="Script" path="res://src/TextureToggleButton.cs" id="6_bmwx5"]
|
||||
|
||||
[node name="Control" type="Control"]
|
||||
layout_mode = 3
|
||||
@@ -26,6 +18,7 @@ offset_right = -50.0
|
||||
offset_bottom = -50.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_av5cs")
|
||||
|
||||
[node name="StartButton" type="Button" parent="."]
|
||||
layout_mode = 1
|
||||
@@ -40,20 +33,145 @@ focus_mode = 0
|
||||
theme_override_font_sizes/font_size = 128
|
||||
text = " Play Game "
|
||||
flat = true
|
||||
script = SubResource("GDScript_iu3pc")
|
||||
|
||||
[node name="ExitButton" type="Button" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.85
|
||||
anchor_top = 0.9
|
||||
anchor_left = 0.8
|
||||
anchor_top = 0.85
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
focus_mode = 0
|
||||
theme_override_colors/font_color = Color(0.8, 0.16, 0.16, 1)
|
||||
theme_override_colors/font_color = Color(0.9, 0.09, 0.09, 1)
|
||||
theme_override_font_sizes/font_size = 48
|
||||
text = "Exit"
|
||||
flat = true
|
||||
script = SubResource("GDScript_7qewh")
|
||||
|
||||
[node name="Settings" type="HBoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 2
|
||||
anchor_top = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_top = -40.0
|
||||
offset_right = 40.0
|
||||
grow_vertical = 0
|
||||
|
||||
[node name="SoundToggle" type="BaseButton" parent="Settings"]
|
||||
_import_path = NodePath("")
|
||||
unique_name_in_owner = false
|
||||
process_mode = 0
|
||||
process_priority = 0
|
||||
process_physics_priority = 0
|
||||
process_thread_group = 0
|
||||
editor_description = ""
|
||||
visible = true
|
||||
modulate = Color(1, 1, 1, 1)
|
||||
self_modulate = Color(0.875, 0.875, 0.875, 1)
|
||||
show_behind_parent = false
|
||||
top_level = false
|
||||
clip_children = 0
|
||||
light_mask = 1
|
||||
visibility_layer = 1
|
||||
z_index = 0
|
||||
z_as_relative = true
|
||||
y_sort_enabled = false
|
||||
texture_filter = 0
|
||||
texture_repeat = 0
|
||||
material = null
|
||||
use_parent_material = false
|
||||
clip_contents = false
|
||||
custom_minimum_size = Vector2(0, 0)
|
||||
layout_direction = 0
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 1
|
||||
size_flags_vertical = 1
|
||||
size_flags_stretch_ratio = 1.0
|
||||
auto_translate = true
|
||||
localize_numeral_system = true
|
||||
tooltip_text = ""
|
||||
focus_neighbor_left = NodePath("")
|
||||
focus_neighbor_top = NodePath("")
|
||||
focus_neighbor_right = NodePath("")
|
||||
focus_neighbor_bottom = NodePath("")
|
||||
focus_next = NodePath("")
|
||||
focus_previous = NodePath("")
|
||||
focus_mode = 2
|
||||
mouse_filter = 0
|
||||
mouse_force_pass_scroll_events = true
|
||||
mouse_default_cursor_shape = 0
|
||||
theme = null
|
||||
theme_type_variation = &""
|
||||
disabled = false
|
||||
toggle_mode = false
|
||||
button_pressed = false
|
||||
action_mode = 1
|
||||
button_mask = 1
|
||||
keep_pressed_outside = false
|
||||
button_group = null
|
||||
shortcut = null
|
||||
shortcut_feedback = true
|
||||
shortcut_in_tooltip = true
|
||||
script = ExtResource("6_bmwx5")
|
||||
FalseTexture = ExtResource("2_5sfx4")
|
||||
TrueTexture = ExtResource("3_03fxv")
|
||||
|
||||
[node name="MusicToggle" type="BaseButton" parent="Settings"]
|
||||
_import_path = NodePath("")
|
||||
unique_name_in_owner = false
|
||||
process_mode = 0
|
||||
process_priority = 0
|
||||
process_physics_priority = 0
|
||||
process_thread_group = 0
|
||||
editor_description = ""
|
||||
visible = true
|
||||
modulate = Color(1, 1, 1, 1)
|
||||
self_modulate = Color(0.875, 0.875, 0.875, 1)
|
||||
show_behind_parent = false
|
||||
top_level = false
|
||||
clip_children = 0
|
||||
light_mask = 1
|
||||
visibility_layer = 1
|
||||
z_index = 0
|
||||
z_as_relative = true
|
||||
y_sort_enabled = false
|
||||
texture_filter = 0
|
||||
texture_repeat = 0
|
||||
material = null
|
||||
use_parent_material = false
|
||||
clip_contents = false
|
||||
custom_minimum_size = Vector2(0, 0)
|
||||
layout_direction = 0
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 1
|
||||
size_flags_vertical = 1
|
||||
size_flags_stretch_ratio = 1.0
|
||||
auto_translate = true
|
||||
localize_numeral_system = true
|
||||
tooltip_text = ""
|
||||
focus_neighbor_left = NodePath("")
|
||||
focus_neighbor_top = NodePath("")
|
||||
focus_neighbor_right = NodePath("")
|
||||
focus_neighbor_bottom = NodePath("")
|
||||
focus_next = NodePath("")
|
||||
focus_previous = NodePath("")
|
||||
focus_mode = 2
|
||||
mouse_filter = 0
|
||||
mouse_force_pass_scroll_events = true
|
||||
mouse_default_cursor_shape = 0
|
||||
theme = null
|
||||
theme_type_variation = &""
|
||||
disabled = false
|
||||
toggle_mode = false
|
||||
button_pressed = false
|
||||
action_mode = 1
|
||||
button_mask = 1
|
||||
keep_pressed_outside = false
|
||||
button_group = null
|
||||
shortcut = null
|
||||
shortcut_feedback = true
|
||||
shortcut_in_tooltip = true
|
||||
script = ExtResource("6_bmwx5")
|
||||
FalseTexture = ExtResource("4_7h5nd")
|
||||
TrueTexture = ExtResource("5_0dja4")
|
||||
|
||||
BIN
main_menu/music_off.png
Normal file
BIN
main_menu/music_off.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 908 B |
34
main_menu/music_off.png.import
Normal file
34
main_menu/music_off.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://srex1nvup3xx"
|
||||
path="res://.godot/imported/music_off.png-df269b29cf7b9b15af5566f9b7842386.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://main_menu/music_off.png"
|
||||
dest_files=["res://.godot/imported/music_off.png-df269b29cf7b9b15af5566f9b7842386.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
BIN
main_menu/music_on.png
Normal file
BIN
main_menu/music_on.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 585 B |
34
main_menu/music_on.png.import
Normal file
34
main_menu/music_on.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dv2cueufmljpv"
|
||||
path="res://.godot/imported/music_on.png-85eca01b59a27fc90974c5dc1cc6989a.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://main_menu/music_on.png"
|
||||
dest_files=["res://.godot/imported/music_on.png-85eca01b59a27fc90974c5dc1cc6989a.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
BIN
main_menu/sound_off.png
Normal file
BIN
main_menu/sound_off.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
34
main_menu/sound_off.png.import
Normal file
34
main_menu/sound_off.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://c8nr5inhnhliv"
|
||||
path="res://.godot/imported/sound_off.png-14145494ed899d3cf624b0f44e93c9dc.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://main_menu/sound_off.png"
|
||||
dest_files=["res://.godot/imported/sound_off.png-14145494ed899d3cf624b0f44e93c9dc.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
BIN
main_menu/sound_on.png
Normal file
BIN
main_menu/sound_on.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
34
main_menu/sound_on.png.import
Normal file
34
main_menu/sound_on.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://douclisbiuxji"
|
||||
path="res://.godot/imported/sound_on.png-937b2ce2011fd25a7d8d80a1b1918374.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://main_menu/sound_on.png"
|
||||
dest_files=["res://.godot/imported/sound_on.png-937b2ce2011fd25a7d8d80a1b1918374.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
Reference in New Issue
Block a user