aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar David <david003@gmx.net>2022-07-17 16:29:41 +0200
committerLibravatar David <david003@gmx.net>2022-07-17 16:29:41 +0200
commite146111ffbee2b133ea16bf97905c5f4559af95e (patch)
treed796a0f7e5ee9faf7da6f3a95b112186590d2864
parentddbcd54013ac76016c39f76394654c4d1451c662 (diff)
download2022-e146111ffbee2b133ea16bf97905c5f4559af95e.tar.gz
2022-e146111ffbee2b133ea16bf97905c5f4559af95e.tar.bz2
2022-e146111ffbee2b133ea16bf97905c5f4559af95e.zip
improve menu
-rw-r--r--godot/assets/fonts/Roboto-Medium.ttf3
-rw-r--r--godot/assets/fonts/Roboto.zipbin0 -> 1108906 bytes
-rw-r--r--godot/assets/fonts/format.tres2
-rw-r--r--godot/assets/fonts/theme_middletext.tres50
-rw-r--r--godot/assets/fonts/theme_smalltext.tres53
-rw-r--r--godot/scenes/Menu.tscn115
6 files changed, 209 insertions, 14 deletions
diff --git a/godot/assets/fonts/Roboto-Medium.ttf b/godot/assets/fonts/Roboto-Medium.ttf
new file mode 100644
index 0000000..8458c90
--- /dev/null
+++ b/godot/assets/fonts/Roboto-Medium.ttf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9d0d55a303bfd13b79a87721f65185e93f235e2d77fe398b2dca67ac519915f5
+size 168644
diff --git a/godot/assets/fonts/Roboto.zip b/godot/assets/fonts/Roboto.zip
new file mode 100644
index 0000000..cfc3014
--- /dev/null
+++ b/godot/assets/fonts/Roboto.zip
Binary files differ
diff --git a/godot/assets/fonts/format.tres b/godot/assets/fonts/format.tres
index 9020d9c..7fca71e 100644
--- a/godot/assets/fonts/format.tres
+++ b/godot/assets/fonts/format.tres
@@ -3,5 +3,5 @@
[ext_resource path="res://assets/fonts/format.otf" type="DynamicFontData" id=1]
[resource]
-size = 50
+size = 89
font_data = ExtResource( 1 )
diff --git a/godot/assets/fonts/theme_middletext.tres b/godot/assets/fonts/theme_middletext.tres
new file mode 100644
index 0000000..abe61fe
--- /dev/null
+++ b/godot/assets/fonts/theme_middletext.tres
@@ -0,0 +1,50 @@
+[gd_resource type="Theme" load_steps=10 format=2]
+
+[ext_resource path="res://assets/fonts/format.otf" type="DynamicFontData" id=1]
+
+[sub_resource type="DynamicFont" id=1]
+size = 55
+extra_spacing_bottom = -15
+font_data = ExtResource( 1 )
+
+[sub_resource type="StyleBoxFlat" id=2]
+content_margin_top = 10.0
+content_margin_bottom = 10.0
+bg_color = Color( 0.4, 0.337255, 0.313726, 0.32549 )
+
+[sub_resource type="StyleBoxFlat" id=3]
+content_margin_top = 10.0
+content_margin_bottom = 10.0
+bg_color = Color( 0.176471, 0.14902, 0.141176, 1 )
+
+[sub_resource type="StyleBoxFlat" id=4]
+content_margin_top = 10.0
+content_margin_bottom = 10.0
+bg_color = Color( 0.4, 0.337255, 0.313726, 1 )
+
+[sub_resource type="StyleBoxFlat" id=5]
+content_margin_top = 20.0
+content_margin_bottom = 20.0
+bg_color = Color( 0.290196, 0.247059, 0.231373, 1 )
+
+[sub_resource type="StyleBoxFlat" id=6]
+content_margin_top = 10.0
+content_margin_bottom = 10.0
+bg_color = Color( 0.176471, 0.14902, 0.141176, 1 )
+
+[sub_resource type="DynamicFont" id=8]
+size = 50
+font_data = ExtResource( 1 )
+
+[sub_resource type="StyleBoxFlat" id=7]
+bg_color = Color( 0.160784, 0.133333, 0.133333, 1 )
+
+[resource]
+Button/fonts/font = SubResource( 1 )
+Button/styles/disabled = SubResource( 2 )
+Button/styles/focus = SubResource( 3 )
+Button/styles/hover = SubResource( 4 )
+Button/styles/normal = SubResource( 5 )
+Button/styles/pressed = SubResource( 6 )
+Label/fonts/font = SubResource( 8 )
+Panel/styles/panel = SubResource( 7 )
diff --git a/godot/assets/fonts/theme_smalltext.tres b/godot/assets/fonts/theme_smalltext.tres
new file mode 100644
index 0000000..078fa10
--- /dev/null
+++ b/godot/assets/fonts/theme_smalltext.tres
@@ -0,0 +1,53 @@
+[gd_resource type="Theme" load_steps=11 format=2]
+
+[ext_resource path="res://assets/fonts/format.otf" type="DynamicFontData" id=1]
+
+[sub_resource type="DynamicFont" id=1]
+size = 55
+extra_spacing_bottom = -15
+font_data = ExtResource( 1 )
+
+[sub_resource type="StyleBoxFlat" id=2]
+content_margin_top = 10.0
+content_margin_bottom = 10.0
+bg_color = Color( 0.4, 0.337255, 0.313726, 0.32549 )
+
+[sub_resource type="StyleBoxFlat" id=3]
+content_margin_top = 10.0
+content_margin_bottom = 10.0
+bg_color = Color( 0.176471, 0.14902, 0.141176, 1 )
+
+[sub_resource type="StyleBoxFlat" id=4]
+content_margin_top = 10.0
+content_margin_bottom = 10.0
+bg_color = Color( 0.4, 0.337255, 0.313726, 1 )
+
+[sub_resource type="StyleBoxFlat" id=5]
+content_margin_top = 20.0
+content_margin_bottom = 20.0
+bg_color = Color( 0.290196, 0.247059, 0.231373, 1 )
+
+[sub_resource type="StyleBoxFlat" id=6]
+content_margin_top = 10.0
+content_margin_bottom = 10.0
+bg_color = Color( 0.176471, 0.14902, 0.141176, 1 )
+
+[sub_resource type="DynamicFontData" id=9]
+font_path = "res://assets/fonts/Roboto-Medium.ttf"
+
+[sub_resource type="DynamicFont" id=8]
+size = 30
+font_data = SubResource( 9 )
+
+[sub_resource type="StyleBoxFlat" id=7]
+bg_color = Color( 0.160784, 0.133333, 0.133333, 1 )
+
+[resource]
+Button/fonts/font = SubResource( 1 )
+Button/styles/disabled = SubResource( 2 )
+Button/styles/focus = SubResource( 3 )
+Button/styles/hover = SubResource( 4 )
+Button/styles/normal = SubResource( 5 )
+Button/styles/pressed = SubResource( 6 )
+Label/fonts/font = SubResource( 8 )
+Panel/styles/panel = SubResource( 7 )
diff --git a/godot/scenes/Menu.tscn b/godot/scenes/Menu.tscn
index b3e0311..fefd680 100644
--- a/godot/scenes/Menu.tscn
+++ b/godot/scenes/Menu.tscn
@@ -1,4 +1,4 @@
-[gd_scene load_steps=7 format=2]
+[gd_scene load_steps=20 format=2]
[ext_resource path="res://assets/theme.tres" type="Theme" id=1]
[ext_resource path="res://scenes/Menu.gd" type="Script" id=2]
@@ -6,6 +6,59 @@
[ext_resource path="res://assets/Images/icons8-mausklick-links-26.png" type="Texture" id=4]
[ext_resource path="res://assets/Images/icons8-esc-80.png" type="Texture" id=5]
[ext_resource path="res://assets/Images/Tab.png" type="Texture" id=6]
+[ext_resource path="res://assets/fonts/format.otf" type="DynamicFontData" id=7]
+[ext_resource path="res://assets/fonts/theme_smalltext.tres" type="Theme" id=8]
+[ext_resource path="res://assets/fonts/theme_middletext.tres" type="Theme" id=9]
+
+[sub_resource type="DynamicFont" id=1]
+size = 55
+extra_spacing_bottom = -15
+font_data = ExtResource( 7 )
+
+[sub_resource type="StyleBoxFlat" id=2]
+content_margin_top = 10.0
+content_margin_bottom = 10.0
+bg_color = Color( 0.4, 0.337255, 0.313726, 0.32549 )
+
+[sub_resource type="StyleBoxFlat" id=3]
+content_margin_top = 10.0
+content_margin_bottom = 10.0
+bg_color = Color( 0.176471, 0.14902, 0.141176, 1 )
+
+[sub_resource type="StyleBoxFlat" id=4]
+content_margin_top = 10.0
+content_margin_bottom = 10.0
+bg_color = Color( 0.4, 0.337255, 0.313726, 1 )
+
+[sub_resource type="StyleBoxFlat" id=5]
+content_margin_top = 20.0
+content_margin_bottom = 20.0
+bg_color = Color( 0.290196, 0.247059, 0.231373, 1 )
+
+[sub_resource type="StyleBoxFlat" id=6]
+content_margin_top = 10.0
+content_margin_bottom = 10.0
+bg_color = Color( 0.176471, 0.14902, 0.141176, 1 )
+
+[sub_resource type="DynamicFontData" id=8]
+font_path = "res://assets/fonts/Roboto-Medium.ttf"
+
+[sub_resource type="DynamicFont" id=9]
+size = 23
+font_data = SubResource( 8 )
+
+[sub_resource type="StyleBoxFlat" id=7]
+bg_color = Color( 0.160784, 0.133333, 0.133333, 1 )
+
+[sub_resource type="Theme" id=10]
+Button/fonts/font = SubResource( 1 )
+Button/styles/disabled = SubResource( 2 )
+Button/styles/focus = SubResource( 3 )
+Button/styles/hover = SubResource( 4 )
+Button/styles/normal = SubResource( 5 )
+Button/styles/pressed = SubResource( 6 )
+Label/fonts/font = SubResource( 9 )
+Panel/styles/panel = SubResource( 7 )
[node name="Menu" type="Control"]
anchor_right = 1.0
@@ -57,18 +110,22 @@ anchor_left = 0.8
anchor_top = 0.6
anchor_right = 1.0
anchor_bottom = 7.0
+margin_left = -86.0
+margin_top = -62.0
+margin_right = 75.0
[node name="Label" type="Label" parent="Credits"]
-margin_right = 384.0
+margin_right = 545.0
margin_bottom = 51.0
-theme = ExtResource( 1 )
+theme = ExtResource( 9 )
text = "CREDITS"
[node name="RichTextLabel" type="RichTextLabel" parent="Credits"]
+visible = false
margin_top = 55.0
-margin_right = 384.0
+margin_right = 510.0
margin_bottom = 370.0
-theme = ExtResource( 1 )
+theme = ExtResource( 9 )
text = "PROGRAMMING
[Celeste]
[Ice]
@@ -92,13 +149,32 @@ https://freesound.org/s/586838/
"
fit_content_height = true
+[node name="Label2" type="Label" parent="Credits"]
+margin_top = 55.0
+margin_right = 545.0
+margin_bottom = 455.0
+theme = SubResource( 10 )
+text = "PROGRAMMING [Celeste]
+ [IceLRemius]
+ [Perivesta]
+ ART [Scarabeaver]
+
+
+MUSIC FROM FREESOUND:ORG:
+
+Main Menu: \"Relaxing Music\" by Migfus20
+https://freesound.org/s/586538/
+
+In Game: \"Background Music\" by Migfus20
+https://freesound.org/s/586838/"
+
[node name="Label2" type="Label" parent="."]
anchor_left = 0.05
anchor_top = 0.2
anchor_right = 0.3
anchor_bottom = 0.2
margin_bottom = 51.0
-theme = ExtResource( 1 )
+theme = ExtResource( 9 )
text = "HOW TO PLAY"
align = 1
@@ -115,7 +191,7 @@ rect_min_size = Vector2( 480, 80 )
[node name="TextureRect" type="TextureRect" parent="VBoxContainer2/Control"]
anchor_top = 0.15
-anchor_right = 0.4
+anchor_right = 0.5
anchor_bottom = 0.85
texture = ExtResource( 3 )
stretch_mode = 6
@@ -124,6 +200,7 @@ stretch_mode = 6
anchor_left = 0.4
anchor_right = 1.0
anchor_bottom = 1.0
+theme = ExtResource( 8 )
text = "Move the mouse to look around."
valign = 1
@@ -135,7 +212,7 @@ rect_min_size = Vector2( 480, 80 )
[node name="TextureRect" type="TextureRect" parent="VBoxContainer2/Control2"]
anchor_top = 0.15
-anchor_right = 0.4
+anchor_right = 0.5
anchor_bottom = 0.85
texture = ExtResource( 4 )
stretch_mode = 6
@@ -144,6 +221,8 @@ stretch_mode = 6
anchor_left = 0.4
anchor_right = 1.0
anchor_bottom = 1.0
+margin_right = 242.0
+theme = ExtResource( 8 )
text = "Use Left Click and drag the mouse backwards to power up the shot."
valign = 1
autowrap = true
@@ -156,7 +235,7 @@ rect_min_size = Vector2( 480, 80 )
[node name="TextureRect" type="TextureRect" parent="VBoxContainer2/Control3"]
anchor_top = 0.15
-anchor_right = 0.4
+anchor_right = 0.5
anchor_bottom = 0.85
texture = ExtResource( 4 )
stretch_mode = 6
@@ -165,6 +244,8 @@ stretch_mode = 6
anchor_left = 0.4
anchor_right = 1.0
anchor_bottom = 1.0
+margin_right = 261.0
+theme = ExtResource( 8 )
text = "Release the Mouse Button to shoot."
valign = 1
autowrap = true
@@ -183,9 +264,10 @@ rect_min_size = Vector2( 480, 80 )
[node name="TextureRect" type="TextureRect" parent="VBoxContainer2/Control5"]
anchor_top = 0.15
-anchor_right = 0.4
+anchor_right = 0.5
anchor_bottom = 0.85
-margin_bottom = 24.0
+margin_top = -13.0
+margin_bottom = 11.0
texture = ExtResource( 5 )
stretch_mode = 4
@@ -193,6 +275,8 @@ stretch_mode = 4
anchor_left = 0.4
anchor_right = 1.0
anchor_bottom = 1.0
+margin_right = 214.0
+theme = ExtResource( 8 )
text = "Press Escape to Pause the game"
valign = 1
autowrap = true
@@ -205,9 +289,12 @@ rect_min_size = Vector2( 480, 80 )
[node name="TextureRect" type="TextureRect" parent="VBoxContainer2/Control6"]
anchor_top = 0.15
-anchor_right = 0.4
+anchor_right = 0.5
anchor_bottom = 0.85
-margin_bottom = 24.0
+margin_left = 2.0
+margin_top = -14.0
+margin_right = 2.0
+margin_bottom = 10.0
texture = ExtResource( 6 )
stretch_mode = 4
@@ -215,6 +302,8 @@ stretch_mode = 4
anchor_left = 0.4
anchor_right = 1.0
anchor_bottom = 1.0
+margin_right = 293.0
+theme = ExtResource( 8 )
text = "Press Tab to see your current score"
valign = 1
autowrap = true