Skip to content

Commit

Permalink
incredible
Browse files Browse the repository at this point in the history
  • Loading branch information
Frostwithasideofsalt committed Feb 4, 2024
1 parent d42b24c commit 408fc9f
Show file tree
Hide file tree
Showing 7 changed files with 102 additions and 24 deletions.
67 changes: 67 additions & 0 deletions fonts/massive-theme.tres
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
[gd_resource type="Theme" load_steps=11 format=2]

[ext_resource path="res://fonts/massive.tres" type="DynamicFont" id=1]
[ext_resource path="res://fonts/lightpurple.tres" type="StyleBox" id=2]
[ext_resource path="res://fonts/pressed-purple.tres" type="StyleBox" id=3]
[ext_resource path="res://fonts/purplebox.tres" type="StyleBox" id=4]
[ext_resource path="res://gfx/gui/dev/veiw.png" type="Texture" id=5]
[ext_resource path="res://gfx/gui/dev/file.png" type="Texture" id=6]
[ext_resource path="res://gfx/gui/dev/parent.png" type="Texture" id=7]
[ext_resource path="res://gfx/gui/dev/reload.png" type="Texture" id=8]
[ext_resource path="res://gfx/gui/dev/folder.png" type="Texture" id=9]
[ext_resource path="res://fonts/textonly.tres" type="StyleBox" id=10]

[resource]
default_font = ExtResource( 1 )
Button/colors/font_color = Color( 0.88, 0.88, 0.88, 1 )
Button/colors/font_color_disabled = Color( 0.328125, 0.133301, 0.174316, 1 )
Button/colors/font_color_focus = Color( 0.745098, 1, 0.372549, 1 )
Button/colors/font_color_hover = Color( 0.435294, 0.992157, 0.12549, 1 )
Button/colors/font_color_pressed = Color( 0.117647, 0.568627, 0.32549, 1 )
Button/styles/disabled = ExtResource( 10 )
Button/styles/focus = ExtResource( 10 )
Button/styles/hover = ExtResource( 10 )
Button/styles/normal = ExtResource( 10 )
Button/styles/pressed = ExtResource( 10 )
CheckButton/icons/off = null
CheckButton/styles/disabled = null
FileDialog/colors/file_icon_modulate = Color( 1, 1, 1, 1 )
FileDialog/colors/files_disabled = Color( 1, 1, 1, 0.25 )
FileDialog/colors/folder_icon_modulate = Color( 1, 1, 1, 1 )
FileDialog/icons/file = ExtResource( 6 )
FileDialog/icons/folder = ExtResource( 9 )
FileDialog/icons/parent_folder = ExtResource( 7 )
FileDialog/icons/reload = ExtResource( 8 )
FileDialog/icons/toggle_hidden = ExtResource( 5 )
HSlider/styles/grabber_area = null
MenuButton/colors/font_color = Color( 0.878431, 0.878431, 0.878431, 1 )
MenuButton/colors/font_color_disabled = Color( 1, 1, 1, 0.3 )
MenuButton/colors/font_color_focus = Color( 0.94, 0.94, 0.94, 1 )
MenuButton/colors/font_color_hover = Color( 0.94, 0.94, 0.94, 1 )
MenuButton/colors/font_color_pressed = Color( 1, 1, 1, 1 )
MenuButton/constants/hseparation = 3
MenuButton/styles/disabled = ExtResource( 3 )
MenuButton/styles/focus = ExtResource( 4 )
MenuButton/styles/hover = ExtResource( 2 )
MenuButton/styles/normal = ExtResource( 4 )
MenuButton/styles/pressed = ExtResource( 3 )
PopupDialog/styles/panel = ExtResource( 4 )
Tabs/colors/font_color_bg = Color( 0.69, 0.69, 0.69, 1 )
Tabs/colors/font_color_disabled = Color( 0.32549, 0.129412, 0.172549, 1 )
Tabs/colors/font_color_fg = Color( 0.890196, 1, 0.815686, 1 )
Tabs/constants/hseparation = 4
Tabs/constants/label_valign_bg = 2
Tabs/constants/label_valign_fg = 0
Tabs/constants/top_margin = 24
Tabs/icons/close = null
Tabs/icons/decrement = null
Tabs/icons/decrement_highlight = null
Tabs/icons/increment = null
Tabs/icons/increment_highlight = null
Tabs/styles/button = ExtResource( 4 )
Tabs/styles/button_pressed = ExtResource( 3 )
Tabs/styles/tab_bg = ExtResource( 4 )
Tabs/styles/tab_disabled = ExtResource( 3 )
Tabs/styles/tab_fg = ExtResource( 4 )
VBoxContainer/constants/separation = 20
VBoxContainer/styles/flatstylebox = ExtResource( 4 )
10 changes: 10 additions & 0 deletions fonts/massive.tres
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[gd_resource type="DynamicFont" load_steps=2 format=2]

[ext_resource path="res://fonts/SuperTux-Medium.ttf" type="DynamicFontData" id=1]

[resource]
size = 116
outline_size = 9
outline_color = Color( 0, 0, 0, 1 )
font_data = ExtResource( 1 )
fallback/0 = ExtResource( 1 )
2 changes: 1 addition & 1 deletion fonts/title.tres
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[ext_resource path="res://fonts/SuperTux-Medium.ttf" type="DynamicFontData" id=1]

[resource]
size = 25
size = 24
outline_size = 5
outline_color = Color( 0, 0, 0, 1 )
font_data = ExtResource( 1 )
Expand Down
10 changes: 5 additions & 5 deletions scenes/ui/End-screen.gd
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ func _ready():
$time.text = " time: " + "%02d" % minutes + ":" + "%02d" % seconds + ":" + "%03d" % msec

if globallevel.score >= 200:
$rank.text = "rank: C"
$rank.text = "C"
if globallevel.score >= 750:
$rank.text = "rank: B"
$rank.text = "B"
if globallevel.score >= 1350:
$rank.text = "rank: A"
$rank.text = "A"
if globallevel.score >= 2200:
$rank.text = "rank: S"
$rank.text = "S"
else:
$rank.text = "rank: D"
$rank.text = "D"

func _on_retry_pressed():
get_tree().change_scene("res://scenes/levels/Test/forest-challenge.tscn")
Expand Down
27 changes: 14 additions & 13 deletions scenes/ui/End-screen.tscn
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
[gd_scene load_steps=6 format=2]
[gd_scene load_steps=7 format=2]

[ext_resource path="res://scenes/ui/End-screen.gd" type="Script" id=1]
[ext_resource path="res://fonts/flat-theme.tres" type="Theme" id=2]
[ext_resource path="res://scripts/menu-grab-focus.gd" type="Script" id=3]
[ext_resource path="res://sounds/music/menu/levelclear.ogg" type="AudioStream" id=4]
[ext_resource path="res://gfx/gui/tiles.png" type="Texture" id=5]
[ext_resource path="res://fonts/massive-theme.tres" type="Theme" id=6]

[node name="pause-menu" type="CanvasLayer"]
script = ExtResource( 1 )
Expand Down Expand Up @@ -32,10 +33,10 @@ autoplay = true
bus = "Music"

[node name="point" type="Label" parent="."]
margin_left = 131.0
margin_top = 121.0
margin_right = 187.0
margin_bottom = 141.0
margin_left = 247.0
margin_top = 119.0
margin_right = 303.0
margin_bottom = 139.0
theme = ExtResource( 2 )
text = "points"

Expand All @@ -51,20 +52,20 @@ text = "(this is a placeholder
that will be changed in 0.1.0!!"

[node name="time" type="Label" parent="."]
margin_left = 130.0
margin_left = 241.0
margin_top = 83.0
margin_right = 170.0
margin_right = 281.0
margin_bottom = 103.0
theme = ExtResource( 2 )
text = "time"

[node name="rank" type="Label" parent="."]
margin_left = 129.0
margin_top = 36.0
margin_right = 309.0
margin_bottom = 56.0
theme = ExtResource( 2 )
text = "Rank: good question"
margin_left = 87.0
margin_top = 54.0
margin_right = 159.0
margin_bottom = 171.0
theme = ExtResource( 6 )
text = "A"

[node name="VBoxContainer" type="VBoxContainer" parent="."]
anchor_left = 0.5
Expand Down
9 changes: 4 additions & 5 deletions scenes/ui/Gui.gd
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,10 @@ func _physics_process(delta):
if Input.is_action_just_pressed("F9"):
if globallevel.debug_mode == true:
if Input.is_action_pressed("action-2"):
globalfunc.Combo_up()
globalfunc.Combo_up()
globalfunc.Combo_up()
globalfunc.Combo_up()
globalfunc.Combo_up()

for i in range(5):
globalfunc.Combo_up()

print("Combo up by five")

else:
Expand Down
1 change: 1 addition & 0 deletions scenes/ui/Gui.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ custom_fonts/font = SubResource( 3 )
text = "Score: 0"

[node name="Timer" type="Label" parent="."]
visible = false
margin_left = 3.0
margin_top = 45.0
margin_right = 63.0
Expand Down

0 comments on commit 408fc9f

Please sign in to comment.