diff --git a/src/autoload/Shared.gd b/src/autoload/Shared.gd index 4f6b346..5ae11c3 100644 --- a/src/autoload/Shared.gd +++ b/src/autoload/Shared.gd @@ -25,7 +25,8 @@ var creator_path := "res://src/menu/Creator.tscn" var scene_path := level_select_path var scene_last := scene_path -var save_data := {0: {}, 1: {}, 2: {}} +var save_limit = 6 +var save_data := {0: {}, 1: {}, 2: {}, 3: {}, 4: {}, 5: {}} var save_slot := 0 var last_slot = -1 var save_maps := {} @@ -34,7 +35,7 @@ var save_filename := "box.save" var keys_path := "keys.tres" var options_path := "options.tres" var scene_dict := {} -var replays := [{}, {}, {}] +var replays := [{}, {}, {}, {}, {}, {}, {}] var is_save := false var last_menu := "main" var last_cursor := 0 @@ -103,7 +104,7 @@ func _ready(): var dir = Directory.new() if !dir.open(save_path) == OK: dir.make_dir(save_path) - for i in 3: + for i in save_limit: var s = save_path + str(i) if !dir.open(s) == OK: dir.make_dir(s) @@ -275,10 +276,12 @@ func save(): data["player_colors"] = player_colors data["maps"] = save_maps + save_data[save_slot]["username"] = username + save_file(save_path + str(save_slot) + "/" + save_filename, JSON.print(data, "\t")) func load_slots(): - for i in 3: + for i in save_limit: load_save(i) load_replays(i) @@ -342,7 +345,7 @@ func save_replays(arg := replay_map, _slot := save_slot): save_file(save_path + str(_slot) + "/" + arg + ".save", JSON.print(replays[save_slot][arg], "\t")) func load_save(_slot = save_slot, is_reload := false): - save_slot = clamp(_slot, 0, 2) + save_slot = clamp(_slot, 0, save_limit - 1) var save_string = save_path + str(save_slot) + "/" + save_filename save_data[save_slot] = {} diff --git a/src/map/1-1.tscn b/src/map/1-1.tscn index bad33ab..2f4ec2d 100644 --- a/src/map/1-1.tscn +++ b/src/map/1-1.tscn @@ -163,7 +163,7 @@ palette = 0 [node name="SolidTileMap" parent="." instance=ExtResource( 1 )] tile_set = SubResource( 1 ) -tile_data = PoolIntArray( -524303, 1, 0, -524302, 1, 0, -524301, 1, 0, -524300, 1, 0, -524299, 1, 0, -524298, 1, 0, -524297, 1, 0, -524296, 1, 0, -524295, 1, 0, -524294, 1, 0, -524293, 1, 0, -524292, 1, 0, -524291, 1, 0, -524290, 1, 0, -524289, 1, 0, -589824, 1, 0, -589823, 1, 0, -589822, 1, 0, -589821, 1, 0, -589820, 1, 0, -589819, 1, 0, -589818, 1, 0, -589817, 1, 0, -589816, 1, 0, -589815, 1, 0, -589814, 1, 0, -589813, 1, 0, -589812, 1, 0, -589811, 1, 0, -589810, 1, 0, -458767, 1, 0, -524274, 1, 0, -393231, 1, 0, -458738, 1, 0, -327695, 1, 0, -393202, 1, 0, -262159, 1, 0, -327666, 1, 0, -196623, 1, 0, -262130, 1, 0, -131087, 1, 0, -196594, 1, 0, -65551, 1, 0, -65542, 536870912, 0, -65541, 536870912, 1, -65540, 536870912, 1, -65539, 0, 0, -65538, 536870912, 1, -65537, 536870912, 0, -131072, 536870912, 1, -131071, 536870912, 1, -131070, 536870912, 0, -131069, 536870912, 1, -131068, 0, 0, -131067, 536870912, 1, -131066, 0, 0, -131065, 536870912, 1, -131064, 536870912, 0, -131058, 1, 0, -15, 1, 0, -14, 1, 0, -13, 1, 0, -12, 1, 0, -11, 1, 0, -10, 1, 0, -9, 1, 0, -8, 0, 1, -65528, 536870912, 0, -65522, 1, 0, 65528, 536870912, 0, 8, 536870912, 1, 14, 1, 0, 131064, 536870912, 0, 65544, 536870912, 0, 65545, 1, 0, 65546, 1, 0, 65547, 1, 0, 65548, 1, 0, 65549, 1, 0, 65550, 1, 0, 196600, 536870912, 0, 196601, 536870912, 0, 196602, 536870912, 1, 196603, 0, 0, 196604, 536870912, 1, 196605, 536870912, 0, 196606, 0, 0, 196607, 536870912, 1, 131072, 536870912, 0, 131073, 536870912, 1, 131074, 536870912, 1, 131075, 536870912, 0, 131076, 536870912, 1, 131077, 0, 0, 131078, 536870912, 1, 131079, 536870912, 0, 131080, 536870912, 0 ) +tile_data = PoolIntArray( -524303, 1, 0, -524302, 1, 0, -524301, 1, 0, -524300, 1, 0, -524299, 1, 0, -524298, 1, 0, -524297, 1, 0, -524296, 1, 0, -524295, 1, 0, -524294, 1, 0, -524293, 1, 0, -524292, 1, 0, -524291, 1, 0, -524290, 1, 0, -524289, 1, 0, -589824, 1, 0, -589823, 1, 0, -589822, 1, 0, -589821, 1, 0, -589820, 1, 0, -589819, 1, 0, -589818, 1, 0, -589817, 1, 0, -589816, 1, 0, -589815, 1, 0, -589814, 1, 0, -589813, 1, 0, -589812, 1, 0, -589811, 1, 0, -589810, 1, 0, -458767, 1, 0, -524274, 1, 0, -393231, 1, 0, -458738, 1, 0, -327695, 1, 0, -393202, 1, 0, -262159, 1, 0, -327666, 1, 0, -196623, 1, 0, -262130, 1, 0, -131087, 1, 0, -196594, 1, 0, -65551, 1, 0, -65542, 536870912, 0, -65541, 536870912, 1, -65540, 536870912, 1, -65539, 0, 0, -65538, 536870912, 1, -65537, 536870912, 0, -131072, 536870912, 1, -131071, 536870912, 1, -131070, 536870912, 0, -131069, 536870912, 1, -131068, 0, 0, -131067, 536870912, 1, -131066, 0, 0, -131065, 536870912, 1, -131064, 536870912, 0, -131058, 1, 0, -15, 1, 0, -14, 1, 0, -13, 1, 0, -12, 1, 0, -11, 1, 0, -10, 1, 0, -9, 1, 0, -8, 0, 1, -65528, 0, 0, -65522, 1, 0, 65528, 536870912, 0, 14, 1, 0, 131064, 536870912, 0, 65544, 536870912, 0, 65545, 1, 0, 65546, 1, 0, 65547, 1, 0, 65548, 1, 0, 65549, 1, 0, 65550, 1, 0, 196600, 536870912, 0, 196601, 536870912, 0, 196602, 536870912, 1, 196603, 0, 0, 196604, 536870912, 1, 196605, 536870912, 0, 196606, 0, 0, 196607, 536870912, 1, 131072, 536870912, 0, 131073, 536870912, 1, 131074, 536870912, 1, 131075, 536870912, 0, 131076, 536870912, 1, 131077, 0, 0, 131078, 536870912, 1, 131079, 536870912, 0, 131080, 536870912, 0 ) [node name="SpikeTileMap" parent="." instance=ExtResource( 5 )] @@ -174,7 +174,7 @@ tile_data = PoolIntArray( -393212, 5, 2, -393211, 536870917, 0, -393210, -161061 [node name="ObscureMap" parent="." instance=ExtResource( 11 )] tile_set = SubResource( 6 ) -tile_data = PoolIntArray( -458766, 536870912, 0, -458765, 536870912, 0, -458764, 536870912, 0, -458763, 536870912, 0, -458762, 536870912, 0, -458761, 536870912, 0, -458760, 536870912, 0, -458759, 536870912, 0, -458758, 536870912, 0, -458757, 536870912, 0, -458756, 536870912, 0, -458755, 536870912, 0, -458754, 536870912, 0, -458753, 536870912, 0, -524288, 536870912, 0, -524287, 536870912, 0, -524286, 536870912, 0, -524285, 536870912, 0, -524284, 536870912, 0, -524283, 536870912, 0, -524282, 536870912, 0, -524281, 536870912, 0, -524280, 536870912, 0, -524279, 536870912, 0, -524278, 536870912, 0, -524277, 536870912, 0, -524276, 536870912, 0, -524275, 536870912, 0, -393230, 536870912, 0, -393229, 536870912, 0, -393228, 536870912, 0, -393227, 536870912, 0, -393226, 536870912, 0, -393225, 536870912, 0, -393224, 536870912, 0, -393223, 536870912, 0, -393222, 536870912, 0, -393221, 536870912, 0, -393220, 536870912, 0, -393219, 536870912, 0, -393218, 536870912, 0, -393217, 536870912, 0, -458752, 536870912, 0, -458751, 536870912, 0, -458750, 536870912, 0, -458749, 536870912, 0, -458748, 536870912, 0, -458747, 536870912, 0, -458746, 536870912, 0, -458745, 536870912, 0, -458744, 536870912, 0, -458743, 536870912, 0, -458742, 536870912, 0, -458741, 536870912, 0, -458740, 536870912, 0, -458739, 536870912, 0, -327694, 536870912, 0, -327693, 536870912, 0, -327692, 536870912, 0, -327691, 536870912, 0, -327690, 536870912, 0, -327689, 536870912, 0, -327688, 536870912, 0, -327687, 536870912, 0, -327686, 536870912, 0, -327685, 536870912, 0, -327684, 536870912, 0, -327683, 536870912, 0, -327682, 536870912, 0, -327681, 536870912, 0, -393216, 536870912, 0, -393215, 536870912, 0, -393214, 536870912, 0, -393213, 536870912, 0, -393212, 536870912, 0, -393211, 536870912, 0, -393210, 536870912, 0, -393209, 536870912, 0, -393208, 536870912, 0, -393207, 536870912, 0, -393206, 536870912, 0, -393205, 536870912, 0, -393204, 536870912, 0, -393203, 536870912, 0, -262158, 536870912, 0, -262157, 536870912, 0, -262156, 536870912, 0, -262155, 536870912, 0, -262154, 536870912, 0, -262153, 536870912, 0, -262152, 536870912, 0, -262151, 536870912, 0, -262150, 536870912, 0, -262149, 536870912, 0, -262148, 536870912, 0, -262147, 536870912, 0, -262146, 536870912, 0, -262145, 0, 0, -327680, 0, 0, -327679, 536870912, 0, -327678, 536870912, 0, -327677, 536870912, 0, -327676, 536870912, 0, -327675, 536870912, 0, -327674, 536870912, 0, -327673, 536870912, 0, -327672, 536870912, 0, -327671, 536870912, 0, -327670, 536870912, 0, -327669, 536870912, 0, -327668, 536870912, 0, -327667, 536870912, 0, -196622, 536870912, 0, -196621, 536870912, 0, -196620, 536870912, 0, -196619, 536870912, 0, -196618, 536870912, 0, -196617, 536870912, 0, -196616, 536870912, 0, -196615, 536870912, 0, -196614, 536870912, 0, -196613, 536870912, 0, -196612, 536870912, 0, -196611, 536870912, 0, -196610, 536870912, 0, -196609, 0, 0, -262144, 0, 0, -262143, 536870912, 0, -262142, 536870912, 0, -262141, 536870912, 0, -262140, 536870912, 0, -262139, 536870912, 0, -262138, 536870912, 0, -262137, 536870912, 0, -262136, 536870912, 0, -262135, 536870912, 0, -262134, 536870912, 0, -262133, 536870912, 0, -262132, 536870912, 0, -262131, 536870912, 0, -131086, 536870912, 0, -131085, 536870912, 0, -131084, 536870912, 0, -131083, 536870912, 0, -131082, 536870912, 0, -131081, 536870912, 0, -131080, 536870912, 0, -131079, 536870912, 0, -131078, 536870912, 0, -131077, 536870912, 0, -131076, 536870912, 0, -131075, 536870912, 0, -131074, 536870912, 0, -131073, 536870912, 0, -196608, 536870912, 0, -196607, 536870912, 0, -196606, 536870912, 0, -196605, 536870912, 0, -196604, 536870912, 0, -196603, 536870912, 0, -196602, 536870912, 0, -196601, 536870912, 0, -196600, 536870912, 0, -196599, 536870912, 0, -196598, 536870912, 0, -196597, 536870912, 0, -196596, 536870912, 0, -196595, 536870912, 0, -65550, 536870912, 0, -65549, 536870912, 0, -65548, 536870912, 0, -65547, 536870912, 0, -65546, 536870912, 0, -65545, 536870912, 0, -65544, 536870914, 2, -65543, 2, 3, -131063, 536870912, 0, -131062, 536870912, 0, -131061, 536870912, 0, -131060, 536870912, 0, -131059, 536870912, 0, -65527, 536870912, 0, -65526, 536870912, 0, -65525, 536870912, 0, -65524, 536870912, 0, -65523, 536870912, 0, 9, 536870912, 0, 10, 536870912, 0, 11, 536870912, 0, 12, 536870912, 0, 13, 536870912, 0 ) +tile_data = PoolIntArray( -458766, 536870912, 0, -458765, 536870912, 0, -458764, 536870912, 0, -458763, 536870912, 0, -458762, 536870912, 0, -458761, 536870912, 0, -458760, 536870912, 0, -458759, 536870912, 0, -458758, 536870912, 0, -458757, 536870912, 0, -458756, 536870912, 0, -458755, 536870912, 0, -458754, 536870912, 0, -458753, 536870912, 0, -524288, 536870912, 0, -524287, 536870912, 0, -524286, 536870912, 0, -524285, 536870912, 0, -524284, 536870912, 0, -524283, 536870912, 0, -524282, 536870912, 0, -524281, 536870912, 0, -524280, 536870912, 0, -524279, 536870912, 0, -524278, 536870912, 0, -524277, 536870912, 0, -524276, 536870912, 0, -524275, 536870912, 0, -393230, 536870912, 0, -393229, 536870912, 0, -393228, 536870912, 0, -393227, 536870912, 0, -393226, 536870912, 0, -393225, 536870912, 0, -393224, 536870912, 0, -393223, 536870912, 0, -393222, 536870912, 0, -393221, 536870912, 0, -393220, 536870912, 0, -393219, 536870912, 0, -393218, 536870912, 0, -393217, 536870912, 0, -458752, 536870912, 0, -458751, 536870912, 0, -458750, 536870912, 0, -458749, 536870912, 0, -458748, 536870912, 0, -458747, 536870912, 0, -458746, 536870912, 0, -458745, 536870912, 0, -458744, 536870912, 0, -458743, 536870912, 0, -458742, 536870912, 0, -458741, 536870912, 0, -458740, 536870912, 0, -458739, 536870912, 0, -327694, 536870912, 0, -327693, 536870912, 0, -327692, 536870912, 0, -327691, 536870912, 0, -327690, 536870912, 0, -327689, 536870912, 0, -327688, 536870912, 0, -327687, 536870912, 0, -327686, 536870912, 0, -327685, 536870912, 0, -327684, 536870912, 0, -327683, 536870912, 0, -327682, 536870912, 0, -327681, 536870912, 0, -393216, 536870912, 0, -393215, 536870912, 0, -393214, 536870912, 0, -393213, 536870912, 0, -393212, 536870912, 0, -393211, 536870912, 0, -393210, 536870912, 0, -393209, 536870912, 0, -393208, 536870912, 0, -393207, 536870912, 0, -393206, 536870912, 0, -393205, 536870912, 0, -393204, 536870912, 0, -393203, 536870912, 0, -262158, 536870912, 0, -262157, 536870912, 0, -262156, 536870912, 0, -262155, 536870912, 0, -262154, 536870912, 0, -262153, 536870912, 0, -262152, 536870912, 0, -262151, 536870912, 0, -262150, 536870912, 0, -262149, 536870912, 0, -262148, 536870912, 0, -262147, 536870912, 0, -262146, 536870912, 0, -262145, 0, 0, -327680, 0, 0, -327679, 536870912, 0, -327678, 536870912, 0, -327677, 536870912, 0, -327676, 536870912, 0, -327675, 536870912, 0, -327674, 536870912, 0, -327673, 536870912, 0, -327672, 536870912, 0, -327671, 536870912, 0, -327670, 536870912, 0, -327669, 536870912, 0, -327668, 536870912, 0, -327667, 536870912, 0, -196622, 536870912, 0, -196621, 536870912, 0, -196620, 536870912, 0, -196619, 536870912, 0, -196618, 536870912, 0, -196617, 536870912, 0, -196616, 536870912, 0, -196615, 536870912, 0, -196614, 536870912, 0, -196613, 536870912, 0, -196612, 536870912, 0, -196611, 536870912, 0, -196610, 536870912, 0, -196609, 0, 0, -262144, 0, 0, -262143, 536870912, 0, -262142, 536870912, 0, -262141, 536870912, 0, -262140, 536870912, 0, -262139, 536870912, 0, -262138, 536870912, 0, -262137, 536870912, 0, -262136, 536870912, 0, -262135, 536870912, 0, -262134, 536870912, 0, -262133, 536870912, 0, -262132, 536870912, 0, -262131, 536870912, 0, -131086, 536870912, 0, -131085, 536870912, 0, -131084, 536870912, 0, -131083, 536870912, 0, -131082, 536870912, 0, -131081, 536870912, 0, -131080, 536870912, 0, -131079, 536870912, 0, -131078, 536870912, 0, -131077, 536870912, 0, -131076, 536870912, 0, -131075, 536870912, 0, -131074, 536870912, 0, -131073, 536870912, 0, -196608, 536870912, 0, -196607, 536870912, 0, -196606, 536870912, 0, -196605, 536870912, 0, -196604, 536870912, 0, -196603, 536870912, 0, -196602, 536870912, 0, -196601, 536870912, 0, -196600, 536870912, 0, -196599, 536870912, 0, -196598, 536870912, 0, -196597, 536870912, 0, -196596, 536870912, 0, -196595, 536870912, 0, -65550, 536870912, 0, -65549, 536870912, 0, -65548, 536870912, 0, -65547, 536870912, 0, -65546, 536870912, 0, -65545, 536870912, 0, -65544, 536870914, 2, -65543, 2, 3, -131063, 536870912, 0, -131062, 536870912, 0, -131061, 536870912, 0, -131060, 536870912, 0, -131059, 536870912, 0, -65527, 536870912, 0, -65526, 536870912, 0, -65525, 536870912, 0, -65524, 536870912, 0, -65523, 536870912, 0, 8, 2, 3, 9, 536870912, 0, 10, 536870912, 0, 11, 536870912, 0, 12, 536870912, 0, 13, 536870912, 0 ) [node name="GameCamera" parent="." instance=ExtResource( 3 )] diff --git a/src/menu/StartMenu.gd b/src/menu/StartMenu.gd index 7f1d860..2435bfd 100644 --- a/src/menu/StartMenu.gd +++ b/src/menu/StartMenu.gd @@ -67,7 +67,7 @@ func btn_y(arg := 1): func setup_slots(): var slot_items := slot_menu.get_children() - for i in 3: + for i in Shared.save_limit: var si = slot_items[i] var sd = Shared.save_data[i] var gem_label = si.get_node("Label0") @@ -93,7 +93,7 @@ func setup_slots(): if sd.has("player_colors"): Player.set_palette(player_mat, sd["player_colors"]) -func menu_select(tag : String = menu_items[cursor].to_lower()): +func menu_select(tag : String = menu_items[clamp(cursor, 0, menu_items.size() - 1)].to_lower()): Shared.last_cursor = cursor match tag: "play": diff --git a/src/menu/StartMenu.tscn b/src/menu/StartMenu.tscn index 936af1d..07986a7 100644 --- a/src/menu/StartMenu.tscn +++ b/src/menu/StartMenu.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=40 format=2] +[gd_scene load_steps=43 format=2] [ext_resource path="res://media/image/creator.png" type="Texture" id=1] [ext_resource path="res://media/image/crate_tiles.png" type="Texture" id=2] @@ -109,6 +109,45 @@ shader_param/skin_swap = Color( 1, 0.8, 0.666667, 1 ) shader_param/suit_swap = Color( 0.87451, 0.14902, 0.14902, 1 ) shader_param/shoe_swap = Color( 0.0901961, 0.482353, 0.788235, 1 ) +[sub_resource type="ShaderMaterial" id=25] +shader = SubResource( 8 ) +shader_param/hat = Color( 1, 0, 0, 1 ) +shader_param/eye = Color( 0, 1, 0, 1 ) +shader_param/skin = Color( 0, 0, 1, 1 ) +shader_param/suit = Color( 1, 1, 0, 1 ) +shader_param/shoe = Color( 1, 0, 1, 1 ) +shader_param/hat_swap = Color( 0.85098, 0, 0.662745, 1 ) +shader_param/eye_swap = Color( 0.0901961, 0.482353, 0.788235, 1 ) +shader_param/skin_swap = Color( 1, 0.8, 0.666667, 1 ) +shader_param/suit_swap = Color( 0.87451, 0.14902, 0.14902, 1 ) +shader_param/shoe_swap = Color( 0.0901961, 0.482353, 0.788235, 1 ) + +[sub_resource type="ShaderMaterial" id=26] +shader = SubResource( 8 ) +shader_param/hat = Color( 1, 0, 0, 1 ) +shader_param/eye = Color( 0, 1, 0, 1 ) +shader_param/skin = Color( 0, 0, 1, 1 ) +shader_param/suit = Color( 1, 1, 0, 1 ) +shader_param/shoe = Color( 1, 0, 1, 1 ) +shader_param/hat_swap = Color( 0.85098, 0, 0.662745, 1 ) +shader_param/eye_swap = Color( 0.0901961, 0.482353, 0.788235, 1 ) +shader_param/skin_swap = Color( 1, 0.8, 0.666667, 1 ) +shader_param/suit_swap = Color( 0.87451, 0.14902, 0.14902, 1 ) +shader_param/shoe_swap = Color( 0.0901961, 0.482353, 0.788235, 1 ) + +[sub_resource type="ShaderMaterial" id=27] +shader = SubResource( 8 ) +shader_param/hat = Color( 1, 0, 0, 1 ) +shader_param/eye = Color( 0, 1, 0, 1 ) +shader_param/skin = Color( 0, 0, 1, 1 ) +shader_param/suit = Color( 1, 1, 0, 1 ) +shader_param/shoe = Color( 1, 0, 1, 1 ) +shader_param/hat_swap = Color( 0.85098, 0, 0.662745, 1 ) +shader_param/eye_swap = Color( 0.0901961, 0.482353, 0.788235, 1 ) +shader_param/skin_swap = Color( 1, 0.8, 0.666667, 1 ) +shader_param/suit_swap = Color( 0.87451, 0.14902, 0.14902, 1 ) +shader_param/shoe_swap = Color( 0.0901961, 0.482353, 0.788235, 1 ) + [sub_resource type="Shader" id=16] code = "shader_type canvas_item; @@ -439,18 +478,15 @@ valign = 1 uppercase = true [node name="Slot" type="VBoxContainer" parent="Control"] -visible = false margin_left = 4.0 -margin_top = 32.0 +margin_top = 29.0 margin_right = 64.0 -margin_bottom = 104.0 -custom_constants/separation = 5 -alignment = 1 +margin_bottom = 101.0 +custom_constants/separation = 0 [node name="0" type="HBoxContainer" parent="Control/Slot"] -margin_top = 13.0 margin_right = 60.0 -margin_bottom = 25.0 +margin_bottom = 12.0 rect_min_size = Vector2( 0, 12 ) size_flags_horizontal = 4 custom_constants/separation = 2 @@ -513,9 +549,9 @@ text = "22" uppercase = true [node name="1" type="HBoxContainer" parent="Control/Slot"] -margin_top = 30.0 +margin_top = 12.0 margin_right = 60.0 -margin_bottom = 42.0 +margin_bottom = 24.0 rect_min_size = Vector2( 0, 12 ) size_flags_horizontal = 4 custom_constants/separation = 2 @@ -587,9 +623,9 @@ text = "73" uppercase = true [node name="2" type="HBoxContainer" parent="Control/Slot"] -margin_top = 47.0 +margin_top = 24.0 margin_right = 60.0 -margin_bottom = 59.0 +margin_bottom = 36.0 rect_min_size = Vector2( 0, 12 ) size_flags_horizontal = 4 custom_constants/separation = 2 @@ -651,7 +687,203 @@ custom_fonts/font = SubResource( 3 ) text = "96" uppercase = true +[node name="3" type="HBoxContainer" parent="Control/Slot"] +margin_top = 36.0 +margin_right = 60.0 +margin_bottom = 48.0 +rect_min_size = Vector2( 0, 12 ) +size_flags_horizontal = 4 +custom_constants/separation = 2 + +[node name="Player" type="Control" parent="Control/Slot/3"] +margin_right = 8.0 +margin_bottom = 12.0 +rect_min_size = Vector2( 8, 12 ) + +[node name="Sprite" type="Sprite" parent="Control/Slot/3/Player"] +material = SubResource( 25 ) +position = Vector2( 4, 2 ) +texture = ExtResource( 19 ) +hframes = 7 +vframes = 2 +region_rect = Rect2( 40, 0, 8, 24 ) + +[node name="Image0" type="Control" parent="Control/Slot/3"] +margin_left = 10.0 +margin_right = 18.0 +margin_bottom = 12.0 +rect_min_size = Vector2( 8, 8 ) + +[node name="Sprite" type="Sprite" parent="Control/Slot/3/Image0"] +modulate = Color( 1, 0.92549, 0.152941, 1 ) +position = Vector2( 4, 6 ) +texture = ExtResource( 20 ) + +[node name="Label0" type="Label" parent="Control/Slot/3"] +margin_left = 20.0 +margin_top = 2.0 +margin_right = 34.0 +margin_bottom = 10.0 +custom_fonts/font = SubResource( 3 ) +text = "48" +uppercase = true + +[node name="Image1" type="Control" parent="Control/Slot/3"] +margin_left = 36.0 +margin_right = 44.0 +margin_bottom = 12.0 +rect_min_size = Vector2( 8, 8 ) + +[node name="Sprite" type="Sprite" parent="Control/Slot/3/Image1"] +modulate = Color( 0.160784, 0.678431, 1, 1 ) +position = Vector2( 0, 2 ) +texture = ExtResource( 16 ) +centered = false +hframes = 4 +vframes = 4 +frame = 5 + +[node name="Label1" type="Label" parent="Control/Slot/3"] +margin_left = 46.0 +margin_top = 2.0 +margin_right = 60.0 +margin_bottom = 10.0 +custom_fonts/font = SubResource( 3 ) +text = "96" +uppercase = true + +[node name="4" type="HBoxContainer" parent="Control/Slot"] +margin_top = 48.0 +margin_right = 60.0 +margin_bottom = 60.0 +rect_min_size = Vector2( 0, 12 ) +size_flags_horizontal = 4 +custom_constants/separation = 2 + +[node name="Player" type="Control" parent="Control/Slot/4"] +margin_right = 8.0 +margin_bottom = 12.0 +rect_min_size = Vector2( 8, 12 ) + +[node name="Sprite" type="Sprite" parent="Control/Slot/4/Player"] +material = SubResource( 26 ) +position = Vector2( 4, 2 ) +texture = ExtResource( 19 ) +hframes = 7 +vframes = 2 +region_rect = Rect2( 40, 0, 8, 24 ) + +[node name="Image0" type="Control" parent="Control/Slot/4"] +margin_left = 10.0 +margin_right = 18.0 +margin_bottom = 12.0 +rect_min_size = Vector2( 8, 8 ) + +[node name="Sprite" type="Sprite" parent="Control/Slot/4/Image0"] +modulate = Color( 1, 0.92549, 0.152941, 1 ) +position = Vector2( 4, 6 ) +texture = ExtResource( 20 ) + +[node name="Label0" type="Label" parent="Control/Slot/4"] +margin_left = 20.0 +margin_top = 2.0 +margin_right = 34.0 +margin_bottom = 10.0 +custom_fonts/font = SubResource( 3 ) +text = "48" +uppercase = true + +[node name="Image1" type="Control" parent="Control/Slot/4"] +margin_left = 36.0 +margin_right = 44.0 +margin_bottom = 12.0 +rect_min_size = Vector2( 8, 8 ) + +[node name="Sprite" type="Sprite" parent="Control/Slot/4/Image1"] +modulate = Color( 0.160784, 0.678431, 1, 1 ) +position = Vector2( 0, 2 ) +texture = ExtResource( 16 ) +centered = false +hframes = 4 +vframes = 4 +frame = 5 + +[node name="Label1" type="Label" parent="Control/Slot/4"] +margin_left = 46.0 +margin_top = 2.0 +margin_right = 60.0 +margin_bottom = 10.0 +custom_fonts/font = SubResource( 3 ) +text = "96" +uppercase = true + +[node name="5" type="HBoxContainer" parent="Control/Slot"] +margin_top = 60.0 +margin_right = 60.0 +margin_bottom = 72.0 +rect_min_size = Vector2( 0, 12 ) +size_flags_horizontal = 4 +custom_constants/separation = 2 + +[node name="Player" type="Control" parent="Control/Slot/5"] +margin_right = 8.0 +margin_bottom = 12.0 +rect_min_size = Vector2( 8, 12 ) + +[node name="Sprite" type="Sprite" parent="Control/Slot/5/Player"] +material = SubResource( 27 ) +position = Vector2( 4, 2 ) +texture = ExtResource( 19 ) +hframes = 7 +vframes = 2 +region_rect = Rect2( 40, 0, 8, 24 ) + +[node name="Image0" type="Control" parent="Control/Slot/5"] +margin_left = 10.0 +margin_right = 18.0 +margin_bottom = 12.0 +rect_min_size = Vector2( 8, 8 ) + +[node name="Sprite" type="Sprite" parent="Control/Slot/5/Image0"] +modulate = Color( 1, 0.92549, 0.152941, 1 ) +position = Vector2( 4, 6 ) +texture = ExtResource( 20 ) + +[node name="Label0" type="Label" parent="Control/Slot/5"] +margin_left = 20.0 +margin_top = 2.0 +margin_right = 34.0 +margin_bottom = 10.0 +custom_fonts/font = SubResource( 3 ) +text = "48" +uppercase = true + +[node name="Image1" type="Control" parent="Control/Slot/5"] +margin_left = 36.0 +margin_right = 44.0 +margin_bottom = 12.0 +rect_min_size = Vector2( 8, 8 ) + +[node name="Sprite" type="Sprite" parent="Control/Slot/5/Image1"] +modulate = Color( 0.160784, 0.678431, 1, 1 ) +position = Vector2( 0, 2 ) +texture = ExtResource( 16 ) +centered = false +hframes = 4 +vframes = 4 +frame = 5 + +[node name="Label1" type="Label" parent="Control/Slot/5"] +margin_left = 46.0 +margin_top = 2.0 +margin_right = 60.0 +margin_bottom = 10.0 +custom_fonts/font = SubResource( 3 ) +text = "96" +uppercase = true + [node name="Open" type="VBoxContainer" parent="Control"] +visible = false margin_left = 4.0 margin_top = 32.0 margin_right = 68.0 diff --git a/src/menu/select.gd b/src/menu/select.gd index b250dbb..df4e2b5 100644 --- a/src/menu/select.gd +++ b/src/menu/select.gd @@ -284,7 +284,7 @@ func refresh_score(var map_name : String = current_map): if !last_refresh.has(map_name) or last_refresh[map_name] == 0: #Leaderboard.refresh_score(map_name) - print(map_name, " FRESH FRESH FRESH FRESH FRESH FRESH FRESH FRESH FRESH FRESH FRESH FRESH FRESH FRESH FRESH ") + print(" - ", map_name, " REFRESH SCORE ") last_refresh[map_name] = refresh_wait func new_score(arg1 = null, arg2 = null, arg3 = null):