mirror of
https://github.com/HarmonyHoney/tiny_crate.git
synced 2026-07-17 16:38:29 +00:00
display a gold gem on level select to show a finished level!
now showing gem counter next to notes (-;
This commit is contained in:
parent
bd02abaed0
commit
59ad934394
8 changed files with 73 additions and 21 deletions
BIN
media/image/diamond12.png
Normal file
BIN
media/image/diamond12.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 161 B |
BIN
media/image/diamond16.png
Normal file
BIN
media/image/diamond16.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 184 B |
BIN
media/image/diamond8.png
Normal file
BIN
media/image/diamond8.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 132 B |
|
|
@ -181,6 +181,8 @@ func change_map():
|
|||
is_note = false
|
||||
UI.notes.visible = is_level_select
|
||||
UI.notes_label.text = str(notes.size())
|
||||
UI.gems.visible = is_level_select
|
||||
UI.gems_label.text = str(map_save)
|
||||
UI.keys(false, false)
|
||||
UI.labels("pick", "erase" if scene_path == creator_path else "back", "score" if is_level_select else "menu")
|
||||
|
||||
|
|
|
|||
|
|
@ -9,6 +9,9 @@ onready var pause_label := $Center/Control/Top/P/Desc
|
|||
|
||||
onready var notes := $Center/Control/Notes
|
||||
onready var notes_label := $Center/Control/Notes/Label
|
||||
onready var gems := $Center/Control/Gems
|
||||
onready var gems_label := $Center/Control/Gems/Label
|
||||
|
||||
onready var spacer := $Center/Control/List/Spacer
|
||||
|
||||
func _ready():
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
[gd_scene load_steps=11 format=2]
|
||||
[gd_scene load_steps=12 format=2]
|
||||
|
||||
[ext_resource path="res://media/font/QuinqueFive.ttf" type="DynamicFontData" id=1]
|
||||
[ext_resource path="res://media/image/diamond12.png" type="Texture" id=2]
|
||||
[ext_resource path="res://src/autoload/UI.gd" type="Script" id=3]
|
||||
[ext_resource path="res://media/image/note.png" type="Texture" id=4]
|
||||
[ext_resource path="res://media/font/m6x11.ttf" type="DynamicFontData" id=5]
|
||||
|
|
@ -20,17 +21,18 @@ outline_color = Color( 0, 0, 0, 1 )
|
|||
extra_spacing_bottom = -1
|
||||
font_data = ExtResource( 1 )
|
||||
|
||||
[sub_resource type="DynamicFont" id=5]
|
||||
outline_size = 1
|
||||
outline_color = Color( 0, 0, 0, 1 )
|
||||
extra_spacing_bottom = -1
|
||||
font_data = ExtResource( 5 )
|
||||
|
||||
[sub_resource type="ShaderMaterial" id=6]
|
||||
shader = ExtResource( 6 )
|
||||
shader_param/line_color = Color( 0, 0, 0, 1 )
|
||||
shader_param/line_thickness = 1.0
|
||||
|
||||
[sub_resource type="DynamicFont" id=8]
|
||||
outline_size = 1
|
||||
outline_color = Color( 0, 0, 0, 1 )
|
||||
extra_spacing_bottom = -3
|
||||
extra_spacing_char = 1
|
||||
font_data = ExtResource( 5 )
|
||||
|
||||
[node name="UI" type="CanvasLayer"]
|
||||
layer = 5
|
||||
script = ExtResource( 3 )
|
||||
|
|
@ -102,28 +104,54 @@ custom_fonts/font = SubResource( 3 )
|
|||
text = "erase"
|
||||
|
||||
[node name="Notes" type="Control" parent="Center/Control"]
|
||||
margin_left = 3.0
|
||||
margin_top = 5.0
|
||||
margin_right = 3.0
|
||||
margin_bottom = 5.0
|
||||
|
||||
[node name="Label" type="Label" parent="Center/Control/Notes"]
|
||||
margin_left = 17.0
|
||||
margin_right = 78.0
|
||||
margin_bottom = 13.0
|
||||
custom_fonts/font = SubResource( 5 )
|
||||
text = "13"
|
||||
margin_left = 1.0
|
||||
margin_top = 19.0
|
||||
margin_right = 1.0
|
||||
margin_bottom = 19.0
|
||||
|
||||
[node name="Control" type="Control" parent="Center/Control/Notes"]
|
||||
margin_top = -2.0
|
||||
margin_right = 16.0
|
||||
margin_bottom = 14.0
|
||||
|
||||
[node name="Note" type="Sprite" parent="Center/Control/Notes/Control"]
|
||||
[node name="Sprite" type="Sprite" parent="Center/Control/Notes/Control"]
|
||||
material = SubResource( 6 )
|
||||
position = Vector2( 8, 8 )
|
||||
texture = ExtResource( 4 )
|
||||
|
||||
[node name="Label" type="Label" parent="Center/Control/Notes"]
|
||||
margin_left = 17.0
|
||||
margin_right = 78.0
|
||||
margin_bottom = 11.0
|
||||
custom_fonts/font = SubResource( 8 )
|
||||
text = "13"
|
||||
valign = 1
|
||||
|
||||
[node name="Gems" type="Control" parent="Center/Control"]
|
||||
margin_left = 1.0
|
||||
margin_top = 1.0
|
||||
margin_right = 1.0
|
||||
margin_bottom = 1.0
|
||||
|
||||
[node name="Control" type="Control" parent="Center/Control/Gems"]
|
||||
margin_right = 16.0
|
||||
margin_bottom = 16.0
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="Center/Control/Gems/Control"]
|
||||
modulate = Color( 1, 0.92549, 0.152941, 1 )
|
||||
material = SubResource( 6 )
|
||||
position = Vector2( 8, 8 )
|
||||
texture = ExtResource( 2 )
|
||||
|
||||
[node name="Label" type="Label" parent="Center/Control/Gems"]
|
||||
margin_left = 17.0
|
||||
margin_top = 3.0
|
||||
margin_right = 78.0
|
||||
margin_bottom = 14.0
|
||||
custom_fonts/font = SubResource( 8 )
|
||||
text = "37"
|
||||
valign = 1
|
||||
|
||||
[node name="Top" type="HBoxContainer" parent="Center/Control"]
|
||||
margin_left = 5.0
|
||||
margin_top = 5.0
|
||||
|
|
|
|||
|
|
@ -161,6 +161,7 @@ func make_screen(i := 0):
|
|||
|
||||
var is_time := Shared.map_times.has(map_name)
|
||||
new.get_node("Overlay/Time").visible = is_time
|
||||
new.get_node("Overlay/Gem").visible = is_time
|
||||
if is_time:
|
||||
new.get_node("Overlay/Time/Label").text = time_to_string(Shared.map_times[map_name])
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=16 format=2]
|
||||
[gd_scene load_steps=18 format=2]
|
||||
|
||||
[ext_resource path="res://media/image/corner.png" type="Texture" id=1]
|
||||
[ext_resource path="res://media/font/QuinqueFive.ttf" type="DynamicFontData" id=2]
|
||||
|
|
@ -7,6 +7,7 @@
|
|||
[ext_resource path="res://src/shader/tv_static.gdshader" type="Shader" id=5]
|
||||
[ext_resource path="res://src/shader/outline2D_outer.shader" type="Shader" id=6]
|
||||
[ext_resource path="res://src/menu/select.gd" type="Script" id=7]
|
||||
[ext_resource path="res://media/image/diamond16.png" type="Texture" id=8]
|
||||
[ext_resource path="res://media/image/menu.png" type="Texture" id=10]
|
||||
[ext_resource path="res://media/image/skull.png" type="Texture" id=11]
|
||||
[ext_resource path="res://src/menu/cursor_anim.gd" type="Script" id=13]
|
||||
|
|
@ -30,6 +31,11 @@ shader = ExtResource( 6 )
|
|||
shader_param/line_color = Color( 0, 0, 0, 1 )
|
||||
shader_param/line_thickness = 1.0
|
||||
|
||||
[sub_resource type="ShaderMaterial" id=9]
|
||||
shader = ExtResource( 6 )
|
||||
shader_param/line_color = Color( 0, 0, 0, 1 )
|
||||
shader_param/line_thickness = 1.0
|
||||
|
||||
[sub_resource type="DynamicFont" id=6]
|
||||
size = 5
|
||||
outline_size = 1
|
||||
|
|
@ -159,6 +165,18 @@ custom_fonts/font = SubResource( 4 )
|
|||
text = "12:34"
|
||||
align = 2
|
||||
|
||||
[node name="Gem" type="Control" parent="Control/Screen/Overlay"]
|
||||
margin_left = 136.0
|
||||
margin_top = 96.0
|
||||
margin_right = 136.0
|
||||
margin_bottom = 96.0
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="Control/Screen/Overlay/Gem"]
|
||||
modulate = Color( 1, 0.92549, 0.152941, 1 )
|
||||
material = SubResource( 9 )
|
||||
position = Vector2( -12, -12 )
|
||||
texture = ExtResource( 8 )
|
||||
|
||||
[node name="Scores" type="Control" parent="Control"]
|
||||
margin_left = 111.0
|
||||
margin_top = 41.0
|
||||
|
|
@ -249,7 +267,7 @@ margin_right = 246.0
|
|||
margin_bottom = 144.0
|
||||
script = ExtResource( 13 )
|
||||
time = 0.5
|
||||
distance = 9.0
|
||||
distance = 12.0
|
||||
offset = -6.0
|
||||
size = Vector2( 136, 96 )
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue