mirror of
https://github.com/HarmonyHoney/tiny_crate.git
synced 2026-01-23 02:34:53 +00:00
level select scrolling up and down consistent with row widths! (-=
d-pad only movement right now, glitchy d-pad input when mapped to same action as joystick... TODO ! remove btny from player! Win hide_on_level_select (: pass along is_gamepad in KeyMenu allowing gamepad rebinds (; menu.open_clock = key_time when input!
This commit is contained in:
parent
6100f2633a
commit
984d80ef99
12 changed files with 54 additions and 50 deletions
|
|
@ -279,38 +279,30 @@ ui_del={
|
|||
]
|
||||
}
|
||||
up={
|
||||
"deadzone": 0.1,
|
||||
"deadzone": 0.5,
|
||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":87,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
||||
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":1,"axis_value":-1.0,"script":null)
|
||||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777232,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
||||
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":3,"axis_value":-1.0,"script":null)
|
||||
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":12,"pressure":0.0,"pressed":false,"script":null)
|
||||
]
|
||||
}
|
||||
down={
|
||||
"deadzone": 0.1,
|
||||
"deadzone": 0.5,
|
||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":83,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
||||
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":1,"axis_value":1.0,"script":null)
|
||||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777234,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
||||
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":3,"axis_value":1.0,"script":null)
|
||||
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":13,"pressure":0.0,"pressed":false,"script":null)
|
||||
]
|
||||
}
|
||||
left={
|
||||
"deadzone": 0.1,
|
||||
"deadzone": 0.5,
|
||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":65,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
||||
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":0,"axis_value":-1.0,"script":null)
|
||||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777231,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
||||
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":2,"axis_value":-1.0,"script":null)
|
||||
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":14,"pressure":0.0,"pressed":false,"script":null)
|
||||
]
|
||||
}
|
||||
right={
|
||||
"deadzone": 0.1,
|
||||
"deadzone": 0.5,
|
||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":68,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
||||
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":0,"axis_value":1.0,"script":null)
|
||||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777233,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
||||
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":2,"axis_value":1.0,"script":null)
|
||||
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":15,"pressure":0.0,"pressed":false,"script":null)
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,7 +41,6 @@ var scene_explosion = preload("res://src/fx/Explosion.tscn")
|
|||
var scene_explosion2 = preload("res://src/fx/Explosion2.tscn")
|
||||
|
||||
var btnx = 0
|
||||
var btny = 0
|
||||
var btnx_last = 0
|
||||
var btnx_array = []
|
||||
var btnp_jump = false
|
||||
|
|
@ -97,7 +96,6 @@ func _physics_process(delta):
|
|||
# input
|
||||
if !is_attract_mode:
|
||||
btnx = int(round(Input.get_axis("left", "right")))
|
||||
btny = int(round(Input.get_axis("down", "up")))
|
||||
btnp_jump = btn.p("jump")
|
||||
btnd_jump = btn.d("jump")
|
||||
btnp_pick = btn.p("action")
|
||||
|
|
@ -166,10 +164,7 @@ func _physics_process(delta):
|
|||
node_audio_drop.pitch_scale = 1 + rand_range(-0.1, 0.1)
|
||||
node_audio_drop.play()
|
||||
else:
|
||||
if btny:
|
||||
box_pickup(0, btny)
|
||||
else:
|
||||
box_pickup(dir * 4, 0)
|
||||
box_pickup(dir * 4, 0)
|
||||
|
||||
# push box
|
||||
if is_on_floor and move_get_dist().x:
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -56,7 +56,7 @@
|
|||
4/name = "bricks.png 4"
|
||||
4/texture = ExtResource( 14 )
|
||||
4/tex_offset = Vector2( 0, 0 )
|
||||
4/modulate = Color( 0.0823529, 0.239216, 0.0901961, 1 )
|
||||
4/modulate = Color( 0.0431373, 0.129412, 0.0470588, 1 )
|
||||
4/region = Rect2( 0, 0, 40, 8 )
|
||||
4/tile_mode = 2
|
||||
4/autotile/icon_coordinate = Vector2( 0, 0 )
|
||||
|
|
@ -151,7 +151,7 @@
|
|||
script = ExtResource( 10 )
|
||||
palette = 4
|
||||
color_solid = Color( 0.4, 0.741176, 0.415686, 1 )
|
||||
color_back = Color( 0.0823529, 0.239216, 0.0901961, 1 )
|
||||
color_back = Color( 0.0431373, 0.129412, 0.0470588, 1 )
|
||||
color_grass = Color( 0.0392157, 0.411765, 0.941176, 1 )
|
||||
color_wood = Color( 0.658824, 0.176471, 0.176471, 1 )
|
||||
|
||||
|
|
@ -167,7 +167,7 @@ tile_data = PoolIntArray( -131075, 0, 0, -131074, 0, 0, -131073, 0, 0, -196608,
|
|||
z_index = -11
|
||||
tile_set = SubResource( 2 )
|
||||
tile_data = PoolIntArray( -786438, 536870916, 3, -786437, 4, 0, -786436, 4, 1, -786435, 4, 1, -786434, 4, 1, -786433, 536870916, 0, -851968, 4, 1, -851967, 4, 3, -851965, 536870918, 0, -851959, 536870916, 3, -851958, 4, 1, -851957, 4, 0, -851956, 4, 1, -851955, 4, 0, -851954, 4, 3, -851950, 4, 1, -851949, 4, 1, -851948, 536870916, 0, -851947, 4, 1, -720902, 4, 2, -720901, 4, 1, -720900, 4, 1, -720899, 536870916, 0, -720898, 4, 1, -720897, 4, 1, -786432, 4, 0, -786431, 536870916, 2, -786429, 536870918, 0, -786425, 536870916, 3, -786424, 536870916, 0, -786423, 536870916, 1, -786422, 536870916, 0, -786421, 4, 1, -786420, 536870916, 0, -786419, 4, 1, -786418, 4, 0, -786417, 4, 3, -786414, 4, 2, -786413, 536870916, 0, -786412, 4, 1, -786411, 4, 0, -655365, 4, 2, -655364, 4, 0, -655363, 4, 1, -655362, 536870916, 0, -655361, 4, 1, -720896, 536870916, 2, -720893, 536870918, 0, -720887, 4, 2, -720886, 4, 1, -720885, 536870916, 2, -720884, 536870916, 3, -720883, 536870916, 0, -720882, 536870916, 2, -720877, 4, 2, -720876, 4, 0, -720875, 4, 1, -655353, 536870917, 2, -655351, 536870916, 3, -655350, 536870916, 0, -655349, 536870916, 2, -655343, 536870917, 2, -655340, 4, 2, -655339, 4, 1, -524292, 4, 2, -524291, 4, 1, -524290, 536870916, 0, -524289, 536870916, 2, -589817, 1610612742, 0, -458755, 4, 2, -458754, 536870916, 2, -458753, 5, 2, -524288, -1073741819, 0, -524287, -1073741819, 0, -524286, -1610612731, 2, -524274, 6, 0, -524271, 1073741829, 2, -524270, 5, 0, -393217, 1610612741, 0, -458752, 5, 0, -458751, 5, 0, -458750, 5, 0, -458742, 1610612742, 0, -458738, 6, 0, -458734, -1073741819, 2, -458732, -1610612731, 2, -327683, -1610612730, 0, -327682, -1610612730, 0, -327681, 1610612741, 0, -393216, -1610612731, 2, -393215, 5, 0, -393214, 5, 0, -393211, 536870916, 3, -393210, 4, 0, -393209, 4, 3, -393206, 1610612741, 0, -393204, 5, 2, -393203, 5, 0, -393202, 5, 0, -393201, 5, 0, -393200, -1610612731, 2, -393196, -1610612731, 0, -262145, -1073741819, 2, -327680, -1610612731, 0, -327679, -1610612731, 0, -327678, 1610612741, 2, -327676, 536870916, 3, -327675, 4, 1, -327674, 4, 3, -327668, -1073741819, 2, -327667, 5, 0, -327666, 5, 0, -327665, 5, 0, -327664, 1610612741, 2, -327660, -2147483643, 0, -196614, -1073741819, 2, -196613, -1610612730, 0, -262143, 6, 0, -262140, 536870916, 3, -262139, 536870916, 0, -262138, 4, 3, -262137, 5, 0, -262136, -1610612731, 0, -262135, -1610612731, 0, -262131, -1073741819, 2, -262130, 5, 0, -262129, 1610612741, 2, -262124, -1610612731, 0, -196607, 6, 0, -196605, 4, 2, -196604, 4, 1, -196603, 536870916, 2, -196601, 5, 0, -196600, -1073741819, 2, -196599, 1610612741, 0, -196591, 5, 2, -196590, 5, 0, -196588, 1610612741, 2, -65545, 536870916, 0, -65544, 4, 3, -131068, 4, 0, -131067, 4, 3, -131065, -1073741819, 0, -131064, -1073741819, 0, -131063, 1610612741, 0, -131055, -1073741819, 2, -131054, 5, 2, -9, 4, 1, -8, 536870916, 0, -7, 4, 3, -2, 6, 0, -65535, 536870916, 3, -65534, 4, 1, -65532, 4, 1, -65531, 536870916, 2, -65528, 6, 0, 65527, 536870916, 0, 65528, 4, 1, 65529, 4, 0, 65530, 4, 3, 65534, 6, 0, 1, 536870916, 3, 2, 4, 0, 4, 536870916, 0, 5, 536870916, 2, 8, 6, 0, 131063, 4, 1, 131064, 536870916, 0, 131065, 4, 1, 131066, 4, 3, 131069, 5, 2, 131070, 1073741829, 0, 131071, -1610612731, 2, 65537, 4, 2, 65538, 4, 1, 65553, 536870916, 3, 65554, 4, 1, 65555, 4, 0, 65556, 4, 1, 65557, 4, 1, 196599, 4, 0, 196600, 4, 1, 196601, 536870916, 2, 196604, 5, 2, 196605, 1073741829, 0, 196606, 1610612741, 0, 196607, 1073741829, 0, 131072, -1610612731, 2, 131073, 4, 2, 131074, 536870916, 0, 131075, 4, 1, 131076, 536870916, 0, 131077, 4, 3, 131083, 1610612742, 0, 131089, 4, 2, 131090, 536870916, 2, 131091, 536870916, 3, 131092, 536870916, 0, 131093, 4, 1, 262135, 4, 1, 262136, 536870916, 2, 262139, 5, 2, 262140, 1073741829, 0, 262141, 1610612741, 0, 262142, 1073741829, 0, 262143, 1610612741, 0, 196608, 1073741829, 0, 196609, -1610612731, 2, 196610, 4, 2, 196611, 4, 0, 196612, 4, 1, 196613, 536870916, 0, 196614, 536870916, 2, 196619, 1073741829, 2, 196625, 4, 2, 196626, 4, 0, 196627, 4, 0, 196628, 4, 1, 196629, 4, 1, 327675, 5, 0, 327676, 1610612741, 0, 327677, 1073741829, 0, 327678, 1610612741, 0, 327679, 1073741829, 0, 262144, 1610612741, 0, 262145, 5, 0, 262147, 4, 2, 262148, 4, 1, 262149, 4, 1, 262150, 4, 1, 262151, 536870916, 2, 262162, 4, 1, 262163, 4, 1, 262164, 4, 1, 262165, 4, 1 )
|
||||
brick_color = Color( 0.0823529, 0.239216, 0.0901961, 1 )
|
||||
brick_color = Color( 0.0431373, 0.129412, 0.0470588, 1 )
|
||||
grass_color = Color( 0.0392157, 0.411765, 0.941176, 1 )
|
||||
wood_color = Color( 0.658824, 0.176471, 0.176471, 1 )
|
||||
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@
|
|||
4/name = "bricks.png 4"
|
||||
4/texture = ExtResource( 14 )
|
||||
4/tex_offset = Vector2( 0, 0 )
|
||||
4/modulate = Color( 0.0431373, 0.129412, 0.0470588, 1 )
|
||||
4/modulate = Color( 0.12549, 0.188235, 0.129412, 1 )
|
||||
4/region = Rect2( 0, 0, 40, 8 )
|
||||
4/tile_mode = 2
|
||||
4/autotile/icon_coordinate = Vector2( 0, 0 )
|
||||
|
|
@ -151,7 +151,7 @@
|
|||
script = ExtResource( 10 )
|
||||
palette = 4
|
||||
color_solid = Color( 0.4, 0.741176, 0.415686, 1 )
|
||||
color_back = Color( 0.0431373, 0.129412, 0.0470588, 1 )
|
||||
color_back = Color( 0.12549, 0.188235, 0.129412, 1 )
|
||||
color_grass = Color( 0.0392157, 0.411765, 0.941176, 1 )
|
||||
color_wood = Color( 0.658824, 0.176471, 0.176471, 1 )
|
||||
|
||||
|
|
@ -170,7 +170,7 @@ tile_data = PoolIntArray( -917513, 5, 0, -917512, 5, 0, -917511, 5, 0, -917510,
|
|||
__meta__ = {
|
||||
"_editor_description_": ""
|
||||
}
|
||||
brick_color = Color( 0.0431373, 0.129412, 0.0470588, 1 )
|
||||
brick_color = Color( 0.12549, 0.188235, 0.129412, 1 )
|
||||
grass_color = Color( 0.0392157, 0.411765, 0.941176, 1 )
|
||||
wood_color = Color( 0.658824, 0.176471, 0.176471, 1 )
|
||||
|
||||
|
|
|
|||
|
|
@ -151,7 +151,7 @@
|
|||
script = ExtResource( 2 )
|
||||
palette = 4
|
||||
color_solid = Color( 0.4, 0.741176, 0.415686, 1 )
|
||||
color_back = Color( 0.0431373, 0.129412, 0.0470588, 1 )
|
||||
color_back = Color( 0.12549, 0.188235, 0.129412, 1 )
|
||||
color_grass = Color( 0.0392157, 0.411765, 0.941176, 1 )
|
||||
color_wood = Color( 0.658824, 0.176471, 0.176471, 1 )
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=12 format=2]
|
||||
[gd_scene load_steps=13 format=2]
|
||||
|
||||
[ext_resource path="res://media/font/m5x7.tres" type="DynamicFont" id=1]
|
||||
[ext_resource path="res://media/font/m6x11.tres" type="DynamicFont" id=2]
|
||||
|
|
@ -10,6 +10,7 @@
|
|||
[ext_resource path="res://media/image/crate_tiles.png" type="Texture" id=8]
|
||||
[ext_resource path="res://media/image/bricks.png" type="Texture" id=9]
|
||||
[ext_resource path="res://src/stage/win.gd" type="Script" id=10]
|
||||
[ext_resource path="res://src/menu/hide_on_level_select.gd" type="Script" id=11]
|
||||
|
||||
[sub_resource type="TileSet" id=1]
|
||||
4/name = "bricks.png 4"
|
||||
|
|
@ -71,19 +72,23 @@
|
|||
|
||||
[node name="Node2D" type="Node2D"]
|
||||
|
||||
[node name="YouWin" type="Label" parent="."]
|
||||
[node name="Letters" type="Control" parent="."]
|
||||
margin_left = 2.0
|
||||
margin_top = 10.0
|
||||
margin_right = 230.0
|
||||
margin_bottom = 128.0
|
||||
script = ExtResource( 11 )
|
||||
|
||||
[node name="YouWin" type="Label" parent="Letters"]
|
||||
margin_top = 10.0
|
||||
margin_right = 228.0
|
||||
margin_bottom = 23.0
|
||||
custom_fonts/font = ExtResource( 2 )
|
||||
text = "YOU WIN!"
|
||||
align = 1
|
||||
|
||||
[node name="ThanksForPlaying" type="Label" parent="."]
|
||||
margin_left = 2.0
|
||||
[node name="ThanksForPlaying" type="Label" parent="Letters"]
|
||||
margin_top = 36.0
|
||||
margin_right = 230.0
|
||||
margin_right = 228.0
|
||||
margin_bottom = 44.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "thanks for playing"
|
||||
|
|
@ -92,10 +97,9 @@ __meta__ = {
|
|||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="TinyCrate" type="Label" parent="."]
|
||||
margin_left = 2.0
|
||||
[node name="TinyCrate" type="Label" parent="Letters"]
|
||||
margin_top = 58.0
|
||||
margin_right = 230.0
|
||||
margin_right = 228.0
|
||||
margin_bottom = 71.0
|
||||
custom_fonts/font = ExtResource( 2 )
|
||||
text = "TINY CRATE"
|
||||
|
|
@ -104,10 +108,9 @@ __meta__ = {
|
|||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="AGameBy" type="Label" parent="."]
|
||||
margin_left = 2.0
|
||||
[node name="AGameBy" type="Label" parent="Letters"]
|
||||
margin_top = 84.0
|
||||
margin_right = 230.0
|
||||
margin_right = 228.0
|
||||
margin_bottom = 92.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "a game by"
|
||||
|
|
@ -116,10 +119,9 @@ __meta__ = {
|
|||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="HarmonyHoney" type="Label" parent="."]
|
||||
margin_left = 2.0
|
||||
[node name="HarmonyHoney" type="Label" parent="Letters"]
|
||||
margin_top = 103.0
|
||||
margin_right = 230.0
|
||||
margin_right = 228.0
|
||||
margin_bottom = 116.0
|
||||
custom_fonts/font = ExtResource( 2 )
|
||||
text = "Harmony Honey"
|
||||
|
|
|
|||
|
|
@ -26,7 +26,8 @@ onready var scroll_node : Control = get_node_or_null(scroll_path)
|
|||
var last_menu = null
|
||||
|
||||
var open_clock := 0.0
|
||||
export var open_time := 0.1
|
||||
var open_time := 0.1
|
||||
var key_time := 0.1
|
||||
|
||||
export var is_close_btn_no := false
|
||||
export var is_color := false
|
||||
|
|
@ -69,6 +70,9 @@ func menu_input(event):
|
|||
elif b_yes: btn_yes()
|
||||
elif b_y != 0: btn_y(b_y)
|
||||
elif b_x != 0: btn_x(b_x)
|
||||
|
||||
if b_del or b_no or b_yes or b_y or b_x:
|
||||
open_clock = key_time
|
||||
|
||||
func btn_del():
|
||||
pass
|
||||
|
|
|
|||
|
|
@ -142,7 +142,6 @@ func menu_select(tag : String = menu_items[cursor].to_lower()):
|
|||
|
||||
|
||||
func on_close_sub():
|
||||
open_clock = open_time
|
||||
Shared.cam.pos_target = Vector2(90, 76)
|
||||
UI.keys(false)
|
||||
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ func menu_input(event):
|
|||
is_rebind = false
|
||||
popup.visible = false
|
||||
ui_keys()
|
||||
elif event.is_pressed() and !event.is_echo() and Key.is_type(event) and !is_del:
|
||||
elif event.is_pressed() and !event.is_echo() and Key.is_type(event, is_gamepad) and !is_del:
|
||||
assign_key(actions[cursor], event)
|
||||
is_rebind = false
|
||||
ui_keys()
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ var map_list := []
|
|||
var map_rows := []
|
||||
var map_unlocked := []
|
||||
export(String, MULTILINE) var lock_string := ""
|
||||
|
||||
var map_vector = {}
|
||||
|
||||
func _ready():
|
||||
Leaderboard.connect("new_score", self, "new_score")
|
||||
|
|
@ -80,6 +80,9 @@ func _ready():
|
|||
screen_pos.append((Vector2(x + (y % 2) * 0.5, y) * (screen_size + screen_dist)))
|
||||
sum += 1
|
||||
screen_list.append(sum)
|
||||
var v = Vector2(x, y)
|
||||
map_vector[v] = sum
|
||||
map_vector[sum] = v
|
||||
screen_max = max(0, screen_pos.size() - 1)
|
||||
overlays.resize(screen_pos.size())
|
||||
|
||||
|
|
@ -115,12 +118,20 @@ func _input(event):
|
|||
show_score = posmod(show_score + 1, 3)
|
||||
print("show_score: ", show_score)
|
||||
show_scoreboard()
|
||||
Audio.play("menu_options", 0.8, 1.2)
|
||||
else:
|
||||
var btnx = btn.p("ui_right") - btn.p("ui_left")
|
||||
var btny = btn.p("ui_down") - btn.p("ui_up")
|
||||
if input_count == 0 and (btnx or btny):
|
||||
input_count = input_wait
|
||||
scroll(btnx + (btny * columns))
|
||||
if btnx:
|
||||
scroll(cursor + btnx)
|
||||
else:
|
||||
var v = map_vector[cursor]
|
||||
v.y = clamp(v.y + btny, 0, map_rows.size() - 1)
|
||||
v.x = clamp(v.x, 0, map_rows[v.y].size() - 1)
|
||||
scroll(map_vector[v])
|
||||
|
||||
Audio.play("menu_scroll3", 0.9, 1.5)
|
||||
|
||||
func _physics_process(delta):
|
||||
|
|
@ -200,10 +211,10 @@ func view_scene(port, path, arg):
|
|||
load_list.append([port_count, path, port])
|
||||
port_count += 1
|
||||
|
||||
func scroll(arg = 0):
|
||||
func scroll(arg := cursor):
|
||||
if overlays[cursor]: overlays[cursor].visible = true
|
||||
|
||||
cursor = clamp(cursor + arg, 0, screen_max)
|
||||
cursor = clamp(arg, 0, screen_max)
|
||||
current_map = map_list[cursor]
|
||||
|
||||
if overlays[cursor]: overlays[cursor].visible = !score_node.visible
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ extends Node2D
|
|||
onready var p = $Player
|
||||
|
||||
func _ready():
|
||||
if Shared.is_level_select: return
|
||||
Audio.play("menu_pick")
|
||||
|
||||
func _physics_process(delta):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue