mirror of
https://github.com/HarmonyHoney/tiny_crate.git
synced 2026-01-23 02:34:53 +00:00
notes icon for each stage and white background on level select! <3 (:
This commit is contained in:
parent
5052e04064
commit
2a00af9111
3 changed files with 20 additions and 10 deletions
|
|
@ -58,9 +58,9 @@ func _ready():
|
|||
save_data = JSON.parse(l).result
|
||||
print("save_data: " + JSON.print(save_data, "\t"))
|
||||
if save_data.has("map"):
|
||||
map_save = save_data["map"]
|
||||
map_save = int(save_data["map"])
|
||||
if save_data.has("notes"):
|
||||
notes = save_data["notes"]
|
||||
notes = PoolIntArray(save_data["notes"])
|
||||
else:
|
||||
create_save()
|
||||
else:
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ func _ready():
|
|||
var sx = i % columns
|
||||
new.rect_position += Vector2(sx + (sy % 2) * 0.5, sy) * screen_dist
|
||||
new.get_node("Label").text = Shared.maps[i]
|
||||
new.get_node("Note").visible = Shared.notes.has(i)
|
||||
screens.add_child(new)
|
||||
view_scene(new.get_node("ViewportContainer/Viewport"), Shared.map_path + Shared.maps[i])
|
||||
|
||||
|
|
|
|||
|
|
@ -1,13 +1,19 @@
|
|||
[gd_scene load_steps=10 format=2]
|
||||
[gd_scene load_steps=12 format=2]
|
||||
|
||||
[ext_resource path="res://media/image/corner.png" type="Texture" id=1]
|
||||
[ext_resource path="res://media/font/m3x6.tres" type="DynamicFont" id=2]
|
||||
[ext_resource path="res://media/image/HarmonyHoneyLogo.png" type="Texture" id=3]
|
||||
[ext_resource path="res://media/audio/sfx/Randomize103.wav" type="AudioStream" 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/audio/sfx/Randomize104.wav" type="AudioStream" id=8]
|
||||
[ext_resource path="res://media/audio/sfx/portal7.wav" type="AudioStream" id=9]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id=3]
|
||||
shader = ExtResource( 6 )
|
||||
shader_param/line_color = Color( 0, 0, 0, 1 )
|
||||
shader_param/line_thickness = 1.0
|
||||
|
||||
[sub_resource type="Animation" id=1]
|
||||
length = 1.15
|
||||
loop = true
|
||||
|
|
@ -106,6 +112,7 @@ __meta__ = {
|
|||
}
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="Control/Screen"]
|
||||
visible = false
|
||||
margin_left = -2.00002
|
||||
margin_top = -2.0
|
||||
margin_right = 102.0
|
||||
|
|
@ -139,9 +146,6 @@ custom_fonts/font = ExtResource( 2 )
|
|||
text = "1-1"
|
||||
align = 1
|
||||
valign = 1
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="Control/Screen/Label"]
|
||||
show_behind_parent = true
|
||||
|
|
@ -154,6 +158,14 @@ __meta__ = {
|
|||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Note" type="Sprite" parent="Control/Screen"]
|
||||
modulate = Color( 1, 0.945098, 0.909804, 1 )
|
||||
material = SubResource( 3 )
|
||||
position = Vector2( 90, 10 )
|
||||
texture = ExtResource( 3 )
|
||||
region_enabled = true
|
||||
region_rect = Rect2( 4, 2, 14, 14 )
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
position = Vector2( 160, 90 )
|
||||
current = true
|
||||
|
|
@ -203,7 +215,4 @@ z_as_relative = false
|
|||
[node name="ColorRect" type="ColorRect" parent="BG/Background"]
|
||||
margin_right = 320.0
|
||||
margin_bottom = 180.0
|
||||
color = Color( 0.113725, 0.168627, 0.32549, 1 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
color = Color( 1, 0.945098, 0.909804, 1 )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue