diff --git a/src/autoload/Shared.gd b/src/autoload/Shared.gd index 94052f6..00bebc2 100644 --- a/src/autoload/Shared.gd +++ b/src/autoload/Shared.gd @@ -23,6 +23,7 @@ var level_select_path := "res://src/menu/select.tscn" var win_screen_path := "res://src/menu/WinScreen.tscn" var credits_path := "res://src/menu/credits.tscn" var splash_path := "res://src/menu/splash.tscn" +var creator_path := "res://src/menu/Creator.tscn" var save_data := {} var save_filename := "box.save" @@ -202,6 +203,10 @@ func change_map(): elif scene_path == credits_path: UI.keys(false, true) TouchScreen.show_keys(false, true, false) + elif scene_path == creator_path: + UI.keys(true, true, true) + TouchScreen.turn_arrows(false) + TouchScreen.show_keys(true, true, true, true) ### Saving and Loading diff --git a/src/menu/Creator.gd b/src/menu/Creator.gd new file mode 100644 index 0000000..9d3c8c5 --- /dev/null +++ b/src/menu/Creator.gd @@ -0,0 +1,91 @@ +extends Node2D + +onready var keyboard := $Keyboard +var rows : Array = []#keyboard.get_children() + +onready var cursor_node := $Cursor +var cursor_x := 0 +var cursor_y := 0 + +onready var name_label := $Name +onready var done_node := $Done + +export (Array, Color) var palette := [] +var colors = [7, 0, 10, 13] +var swatches = [] + +onready var player_mat : ShaderMaterial = $Player/Sprite.material + + +func _ready(): + # setup rows & columns + rows = [] + for i in $ColorPick.get_children(): + rows.append([i]) + + for i in keyboard.get_children(): + rows.append(i.get_children()) + rows.append([done_node]) + + move_cursor() + + # setup swatches + swatches = [] + for i in $Colors.get_children(): + swatches.append(i.get_children()) + + for i in 4: + fill_swatches(i) + +func _input(event): + if event.is_action_pressed("jump"): + # write letter + if cursor_y > 3 and cursor_y < 8: + var s = rows[cursor_y][cursor_x].get_child(0).text + var l = name_label.text + name_label.text = (l + s).substr(0, 16) + elif event.is_action_pressed("action"): + # erase letter + if cursor_y > 3 and cursor_y < 8: + var s = name_label.text + s.erase(s.length() - 1, 1) + name_label.text = s + else: + var btnx = btn.p("right") - btn.p("left") + var btny = btn.p("down") - btn.p("up") + + if btnx != 0: + move_cursor(cursor_x + btnx) + + if cursor_y < 4: + set_color(cursor_y, colors[cursor_y] + btnx) + fill_swatches() + elif btny != 0: + if cursor_y == 4 and btny == -1: cursor_x = 4 + move_cursor(cursor_x, cursor_y + btny) + + +func move_cursor(_x := cursor_x, _y = cursor_y): + cursor_y = clamp(_y, 0, rows.size() - 1) + cursor_x = wrapi(_x, 0, rows[cursor_y].size() - 1) + + cursor_node.rect_global_position = rows[cursor_y][cursor_x].rect_global_position + cursor_node.rect_size = rows[cursor_y][cursor_x].rect_size + + +func set_color(_row := cursor_y, _col = colors[cursor_y]): + colors[_row] = wrapi(_col, 0, palette.size()) + + var params = [["hat"], ["skin"], ["suit"], ["eye", "shoe"]] + for i in params[_row]: + player_mat.set_shader_param(i + "_swap", palette[colors[_row]]) + +func fill_swatches(_row := cursor_y): + var offset = [-2, -1, 0, 1, 2] + for i in 5: + swatches[_row][i].color = palette[wrapi(colors[_row] + offset[i], 0, palette.size())] + + + +func _physics_process(delta): + pass diff --git a/src/menu/Creator.tscn b/src/menu/Creator.tscn new file mode 100644 index 0000000..dfbbebe --- /dev/null +++ b/src/menu/Creator.tscn @@ -0,0 +1,1163 @@ +[gd_scene load_steps=18 format=2] + +[ext_resource path="res://media/audio/sfx/sfx10.wav" type="AudioStream" id=1] +[ext_resource path="res://media/image/player_swap.png" type="Texture" id=2] +[ext_resource path="res://media/audio/sfx/btn3.wav" type="AudioStream" id=3] +[ext_resource path="res://media/audio/sfx/player_jump.wav" type="AudioStream" id=4] +[ext_resource path="res://media/audio/sfx/box_drop.wav" type="AudioStream" id=5] +[ext_resource path="res://media/audio/sfx/push.wav" type="AudioStream" id=6] +[ext_resource path="res://media/font/QuinqueFive.ttf" type="DynamicFontData" id=7] +[ext_resource path="res://src/menu/Creator.gd" type="Script" id=8] +[ext_resource path="res://media/font/ThaleahFat.ttf" type="DynamicFontData" id=9] + +[sub_resource type="DynamicFont" id=16] +size = 32 +extra_spacing_top = -6 +extra_spacing_bottom = -12 +font_data = ExtResource( 9 ) + +[sub_resource type="Shader" id=8] +code = "shader_type canvas_item; + +uniform vec4 hat : hint_color = vec4(0.0); +uniform vec4 eye : hint_color = vec4(0.0); +uniform vec4 skin : hint_color = vec4(0.0); +uniform vec4 suit : hint_color = vec4(0.0); +uniform vec4 shoe : hint_color = vec4(0.0); + +uniform vec4 hat_swap : hint_color = vec4(0.0); +uniform vec4 eye_swap : hint_color = vec4(0.0); +uniform vec4 skin_swap : hint_color = vec4(0.0); +uniform vec4 suit_swap : hint_color = vec4(0.0); +uniform vec4 shoe_swap : hint_color = vec4(0.0); + + +void fragment(){ + vec4 col = texture(TEXTURE, UV); + + if (col == hat){ + col = hat_swap; + } + else if (col == eye){ + col = eye_swap; + } + else if (col == skin){ + col = skin_swap; + } + else if (col == suit){ + col = suit_swap; + } + else if (col == shoe){ + col = shoe_swap; + } + + COLOR = col; +}" + +[sub_resource type="ShaderMaterial" id=15] +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( 1, 0.92549, 0.152941, 1 ) +shader_param/eye_swap = Color( 1, 0.8, 0.666667, 1 ) +shader_param/skin_swap = Color( 0.670588, 0.321569, 0.211765, 1 ) +shader_param/suit_swap = Color( 0.160784, 0.678431, 1, 1 ) +shader_param/shoe_swap = Color( 1, 0.8, 0.666667, 1 ) + +[sub_resource type="Animation" id=10] +length = 0.001 +tracks/0/type = "value" +tracks/0/path = NodePath("Sprite:frame") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/keys = { +"times": PoolRealArray( 0 ), +"transitions": PoolRealArray( 1 ), +"update": 0, +"values": [ 0 ] +} + +[sub_resource type="Animation" id=11] +length = 0.6 +loop = true +tracks/0/type = "value" +tracks/0/path = NodePath("Sprite:frame") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/keys = { +"times": PoolRealArray( 0, 0.4 ), +"transitions": PoolRealArray( 1, 1 ), +"update": 1, +"values": [ 0, 1 ] +} + +[sub_resource type="Animation" id=12] +length = 0.1 +tracks/0/type = "value" +tracks/0/path = NodePath("Sprite:frame") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/keys = { +"times": PoolRealArray( 0 ), +"transitions": PoolRealArray( 1 ), +"update": 1, +"values": [ 6 ] +} + +[sub_resource type="Animation" id=13] +length = 0.6 +loop = true +tracks/0/type = "value" +tracks/0/path = NodePath("Sprite:frame") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/keys = { +"times": PoolRealArray( 0, 0.2, 0.3, 0.5 ), +"transitions": PoolRealArray( 1, 1, 1, 1 ), +"update": 1, +"values": [ 2, 0, 4, 0 ] +} + +[sub_resource type="DynamicFont" id=14] +size = 5 +font_data = ExtResource( 7 ) + +[node name="Creator" type="Node2D"] +script = ExtResource( 8 ) +palette = [ Color( 0.670588, 0.321569, 0.211765, 1 ), Color( 0.494118, 0.145098, 0.32549, 1 ), Color( 0.372549, 0.341176, 0.309804, 1 ), Color( 0.760784, 0.764706, 0.780392, 1 ), Color( 1, 1, 1, 1 ), Color( 1, 0, 0.301961, 1 ), Color( 1, 0.639216, 0, 1 ), Color( 1, 0.92549, 0.152941, 1 ), Color( 0, 0.894118, 0.211765, 1 ), Color( 0, 0.529412, 0.317647, 1 ), Color( 0.160784, 0.678431, 1, 1 ), Color( 0.513726, 0.462745, 0.611765, 1 ), Color( 1, 0.466667, 0.658824, 1 ), Color( 1, 0.8, 0.666667, 1 ) ] + +[node name="Header" type="Label" parent="."] +margin_left = 4.0 +margin_top = 2.0 +margin_right = 98.0 +margin_bottom = 44.0 +custom_fonts/font = SubResource( 16 ) +text = "create" + +[node name="Player" type="Node2D" parent="."] +position = Vector2( 84, 31 ) +z_index = 15 +z_as_relative = false + +[node name="Sprite" type="Sprite" parent="Player"] +material = SubResource( 15 ) +position = Vector2( 12, 0 ) +scale = Vector2( 3, 3 ) +texture = ExtResource( 2 ) +hframes = 7 +region_rect = Rect2( 40, 0, 8, 24 ) + +[node name="AnimationPlayer" type="AnimationPlayer" parent="Player"] +autoplay = "idle" +anims/RESET = SubResource( 10 ) +anims/idle = SubResource( 11 ) +anims/jump = SubResource( 12 ) +anims/run = SubResource( 13 ) + +[node name="AudioJump" type="AudioStreamPlayer2D" parent="Player"] +stream = ExtResource( 4 ) +attenuation = 0.101532 +bus = "SFX" + +[node name="AudioPickup" type="AudioStreamPlayer2D" parent="Player"] +stream = ExtResource( 3 ) +bus = "SFX" + +[node name="AudioDrop" type="AudioStreamPlayer2D" parent="Player"] +stream = ExtResource( 5 ) +bus = "SFX" + +[node name="AudioThrow" type="AudioStreamPlayer2D" parent="Player"] +stream = ExtResource( 1 ) +bus = "SFX" + +[node name="AudioPush" type="AudioStreamPlayer2D" parent="Player"] +stream = ExtResource( 6 ) +bus = "SFX" + +[node name="NameBack" type="ColorRect" parent="."] +modulate = Color( 1, 1, 1, 0.2 ) +margin_left = 65.0 +margin_top = 66.0 +margin_right = 166.0 +margin_bottom = 75.0 + +[node name="KeyboardBack" type="ColorRect" parent="."] +modulate = Color( 1, 1, 1, 0.2 ) +margin_left = 60.0 +margin_top = 79.0 +margin_right = 170.0 +margin_bottom = 111.0 + +[node name="DoneBack" type="ColorRect" parent="."] +modulate = Color( 1, 1, 1, 0.2 ) +margin_left = 95.0 +margin_top = 115.0 +margin_right = 134.0 +margin_bottom = 124.0 + +[node name="ColorPick" type="VBoxContainer" parent="."] +modulate = Color( 1, 1, 1, 0.2 ) +margin_left = 132.0 +margin_top = 12.0 +margin_right = 205.0 +margin_bottom = 64.0 +custom_constants/separation = 12 + +[node name="ColorRect2" type="ColorRect" parent="ColorPick"] +margin_right = 73.0 +margin_bottom = 2.0 +rect_min_size = Vector2( 0, 2 ) +size_flags_vertical = 4 + +[node name="ColorRect3" type="ColorRect" parent="ColorPick"] +margin_top = 14.0 +margin_right = 73.0 +margin_bottom = 16.0 +rect_min_size = Vector2( 0, 2 ) +size_flags_vertical = 4 + +[node name="ColorRect4" type="ColorRect" parent="ColorPick"] +margin_top = 28.0 +margin_right = 73.0 +margin_bottom = 30.0 +rect_min_size = Vector2( 0, 2 ) +size_flags_vertical = 4 + +[node name="ColorRect5" type="ColorRect" parent="ColorPick"] +margin_top = 42.0 +margin_right = 73.0 +margin_bottom = 44.0 +rect_min_size = Vector2( 0, 2 ) +size_flags_vertical = 4 + +[node name="Cursor" type="ColorRect" parent="."] +margin_left = 43.0 +margin_top = 86.0 +margin_right = 50.0 +margin_bottom = 93.0 +color = Color( 1, 0, 0.301961, 1 ) + +[node name="Colors" type="VBoxContainer" parent="."] +margin_left = 132.0 +margin_top = 8.0 +margin_right = 205.0 +margin_bottom = 60.0 +custom_constants/separation = 4 + +[node name="Hat" type="HBoxContainer" parent="Colors"] +margin_right = 73.0 +margin_bottom = 10.0 +alignment = 1 + +[node name="ColorRect2" type="ColorRect" parent="Colors/Hat"] +margin_left = 7.0 +margin_top = 1.0 +margin_right = 15.0 +margin_bottom = 9.0 +rect_min_size = Vector2( 8, 8 ) +size_flags_horizontal = 4 +size_flags_vertical = 4 +color = Color( 1, 0, 0.301961, 1 ) + +[node name="ColorRect3" type="ColorRect" parent="Colors/Hat"] +margin_left = 19.0 +margin_top = 1.0 +margin_right = 27.0 +margin_bottom = 9.0 +rect_min_size = Vector2( 8, 8 ) +size_flags_horizontal = 4 +size_flags_vertical = 4 +color = Color( 1, 0.639216, 0, 1 ) + +[node name="ColorRect4" type="ColorRect" parent="Colors/Hat"] +margin_left = 31.0 +margin_right = 41.0 +margin_bottom = 10.0 +rect_min_size = Vector2( 10, 10 ) +size_flags_horizontal = 4 +size_flags_vertical = 4 +color = Color( 1, 0.92549, 0.152941, 1 ) + +[node name="ColorRect5" type="ColorRect" parent="Colors/Hat"] +margin_left = 45.0 +margin_top = 1.0 +margin_right = 53.0 +margin_bottom = 9.0 +rect_min_size = Vector2( 8, 8 ) +size_flags_horizontal = 4 +size_flags_vertical = 4 +color = Color( 0, 0.894118, 0.211765, 1 ) + +[node name="ColorRect" type="ColorRect" parent="Colors/Hat"] +margin_left = 57.0 +margin_top = 1.0 +margin_right = 65.0 +margin_bottom = 9.0 +rect_min_size = Vector2( 8, 8 ) +size_flags_horizontal = 4 +size_flags_vertical = 4 +color = Color( 0.160784, 0.678431, 1, 1 ) + +[node name="Skin" type="HBoxContainer" parent="Colors"] +margin_top = 14.0 +margin_right = 73.0 +margin_bottom = 24.0 +rect_min_size = Vector2( 8, 8 ) +alignment = 1 + +[node name="ColorRect4" type="ColorRect" parent="Colors/Skin"] +margin_left = 7.0 +margin_top = 1.0 +margin_right = 15.0 +margin_bottom = 9.0 +rect_min_size = Vector2( 8, 8 ) +size_flags_horizontal = 4 +size_flags_vertical = 4 +color = Color( 0.494118, 0.145098, 0.32549, 1 ) + +[node name="ColorRect5" type="ColorRect" parent="Colors/Skin"] +margin_left = 19.0 +margin_top = 1.0 +margin_right = 27.0 +margin_bottom = 9.0 +rect_min_size = Vector2( 8, 8 ) +size_flags_horizontal = 4 +size_flags_vertical = 4 +color = Color( 0, 0.529412, 0.317647, 1 ) + +[node name="ColorRect" type="ColorRect" parent="Colors/Skin"] +margin_left = 31.0 +margin_right = 41.0 +margin_bottom = 10.0 +rect_min_size = Vector2( 10, 10 ) +size_flags_horizontal = 4 +size_flags_vertical = 4 +color = Color( 0.670588, 0.321569, 0.211765, 1 ) + +[node name="ColorRect2" type="ColorRect" parent="Colors/Skin"] +margin_left = 45.0 +margin_top = 1.0 +margin_right = 53.0 +margin_bottom = 9.0 +rect_min_size = Vector2( 8, 8 ) +size_flags_horizontal = 4 +size_flags_vertical = 4 +color = Color( 0.372549, 0.341176, 0.309804, 1 ) + +[node name="ColorRect3" type="ColorRect" parent="Colors/Skin"] +margin_left = 57.0 +margin_top = 1.0 +margin_right = 65.0 +margin_bottom = 9.0 +rect_min_size = Vector2( 8, 8 ) +size_flags_horizontal = 4 +size_flags_vertical = 4 +color = Color( 0.760784, 0.764706, 0.780392, 1 ) + +[node name="Suit" type="HBoxContainer" parent="Colors"] +margin_top = 28.0 +margin_right = 73.0 +margin_bottom = 38.0 +rect_min_size = Vector2( 8, 8 ) +alignment = 1 + +[node name="ColorRect4" type="ColorRect" parent="Colors/Suit"] +margin_left = 7.0 +margin_top = 1.0 +margin_right = 15.0 +margin_bottom = 9.0 +rect_min_size = Vector2( 8, 8 ) +size_flags_horizontal = 4 +size_flags_vertical = 4 +color = Color( 1, 0.92549, 0.152941, 1 ) + +[node name="ColorRect5" type="ColorRect" parent="Colors/Suit"] +margin_left = 19.0 +margin_top = 1.0 +margin_right = 27.0 +margin_bottom = 9.0 +rect_min_size = Vector2( 8, 8 ) +size_flags_horizontal = 4 +size_flags_vertical = 4 +color = Color( 0, 0.894118, 0.211765, 1 ) + +[node name="ColorRect" type="ColorRect" parent="Colors/Suit"] +margin_left = 31.0 +margin_right = 41.0 +margin_bottom = 10.0 +rect_min_size = Vector2( 10, 10 ) +size_flags_horizontal = 4 +size_flags_vertical = 4 +color = Color( 0.160784, 0.678431, 1, 1 ) + +[node name="ColorRect2" type="ColorRect" parent="Colors/Suit"] +margin_left = 45.0 +margin_top = 1.0 +margin_right = 53.0 +margin_bottom = 9.0 +rect_min_size = Vector2( 8, 8 ) +size_flags_horizontal = 4 +size_flags_vertical = 4 +color = Color( 0.513726, 0.462745, 0.611765, 1 ) + +[node name="ColorRect3" type="ColorRect" parent="Colors/Suit"] +margin_left = 57.0 +margin_top = 1.0 +margin_right = 65.0 +margin_bottom = 9.0 +rect_min_size = Vector2( 8, 8 ) +size_flags_horizontal = 4 +size_flags_vertical = 4 +color = Color( 1, 0.466667, 0.658824, 1 ) + +[node name="Eye" type="HBoxContainer" parent="Colors"] +margin_top = 42.0 +margin_right = 73.0 +margin_bottom = 52.0 +rect_min_size = Vector2( 8, 8 ) +alignment = 1 + +[node name="ColorRect3" type="ColorRect" parent="Colors/Eye"] +margin_left = 7.0 +margin_top = 1.0 +margin_right = 15.0 +margin_bottom = 9.0 +rect_min_size = Vector2( 8, 8 ) +size_flags_horizontal = 4 +size_flags_vertical = 4 +color = Color( 0.760784, 0.764706, 0.780392, 1 ) + +[node name="ColorRect4" type="ColorRect" parent="Colors/Eye"] +margin_left = 19.0 +margin_top = 1.0 +margin_right = 27.0 +margin_bottom = 9.0 +rect_min_size = Vector2( 8, 8 ) +size_flags_horizontal = 4 +size_flags_vertical = 4 +color = Color( 1, 0.466667, 0.658824, 1 ) + +[node name="ColorRect5" type="ColorRect" parent="Colors/Eye"] +margin_left = 31.0 +margin_right = 41.0 +margin_bottom = 10.0 +rect_min_size = Vector2( 10, 10 ) +size_flags_horizontal = 4 +size_flags_vertical = 4 +color = Color( 1, 0.8, 0.666667, 1 ) + +[node name="ColorRect" type="ColorRect" parent="Colors/Eye"] +margin_left = 45.0 +margin_top = 1.0 +margin_right = 53.0 +margin_bottom = 9.0 +rect_min_size = Vector2( 8, 8 ) +size_flags_horizontal = 4 +size_flags_vertical = 4 +color = Color( 0.494118, 0.145098, 0.32549, 1 ) + +[node name="ColorRect2" type="ColorRect" parent="Colors/Eye"] +margin_left = 57.0 +margin_top = 1.0 +margin_right = 65.0 +margin_bottom = 9.0 +rect_min_size = Vector2( 8, 8 ) +size_flags_horizontal = 4 +size_flags_vertical = 4 +color = Color( 0, 0.529412, 0.317647, 1 ) + +[node name="Name" type="Label" parent="."] +margin_left = 66.0 +margin_top = 67.0 +margin_right = 165.0 +margin_bottom = 74.0 +custom_fonts/font = SubResource( 14 ) +text = "crate_kid" +align = 1 + +[node name="Keyboard" type="VBoxContainer" parent="."] +margin_left = 62.0 +margin_top = 81.0 +margin_right = 168.0 +margin_bottom = 109.0 +custom_constants/separation = 0 + +[node name="Row1" type="HBoxContainer" parent="Keyboard"] +margin_right = 106.0 +margin_bottom = 7.0 + +[node name="Key" type="Control" parent="Keyboard/Row1"] +margin_right = 7.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row1/Key"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = "1" +align = 1 +valign = 1 + +[node name="Key2" type="Control" parent="Keyboard/Row1"] +margin_left = 11.0 +margin_right = 18.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row1/Key2"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = "2" +align = 1 +valign = 1 + +[node name="Key3" type="Control" parent="Keyboard/Row1"] +margin_left = 22.0 +margin_right = 29.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row1/Key3"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = "3" +align = 1 +valign = 1 + +[node name="Key4" type="Control" parent="Keyboard/Row1"] +margin_left = 33.0 +margin_right = 40.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row1/Key4"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = "4" +align = 1 +valign = 1 + +[node name="Key5" type="Control" parent="Keyboard/Row1"] +margin_left = 44.0 +margin_right = 51.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row1/Key5"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = "5" +align = 1 +valign = 1 + +[node name="Key6" type="Control" parent="Keyboard/Row1"] +margin_left = 55.0 +margin_right = 62.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row1/Key6"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = "6" +align = 1 +valign = 1 + +[node name="Key7" type="Control" parent="Keyboard/Row1"] +margin_left = 66.0 +margin_right = 73.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row1/Key7"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = "7" +align = 1 +valign = 1 + +[node name="Key8" type="Control" parent="Keyboard/Row1"] +margin_left = 77.0 +margin_right = 84.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row1/Key8"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = "8" +align = 1 +valign = 1 + +[node name="Key9" type="Control" parent="Keyboard/Row1"] +margin_left = 88.0 +margin_right = 95.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row1/Key9"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = "9" +align = 1 +valign = 1 + +[node name="Key10" type="Control" parent="Keyboard/Row1"] +margin_left = 99.0 +margin_right = 106.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row1/Key10"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = "0" +align = 1 +valign = 1 + +[node name="Row2" type="HBoxContainer" parent="Keyboard"] +margin_top = 7.0 +margin_right = 106.0 +margin_bottom = 14.0 + +[node name="Key" type="Control" parent="Keyboard/Row2"] +margin_right = 7.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row2/Key"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = "q" +align = 1 +valign = 1 + +[node name="Key2" type="Control" parent="Keyboard/Row2"] +margin_left = 11.0 +margin_right = 18.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row2/Key2"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = "w" +align = 1 +valign = 1 + +[node name="Key3" type="Control" parent="Keyboard/Row2"] +margin_left = 22.0 +margin_right = 29.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row2/Key3"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = "e" +align = 1 +valign = 1 + +[node name="Key4" type="Control" parent="Keyboard/Row2"] +margin_left = 33.0 +margin_right = 40.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row2/Key4"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = "r" +align = 1 +valign = 1 + +[node name="Key5" type="Control" parent="Keyboard/Row2"] +margin_left = 44.0 +margin_right = 51.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row2/Key5"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = "t" +align = 1 +valign = 1 + +[node name="Key6" type="Control" parent="Keyboard/Row2"] +margin_left = 55.0 +margin_right = 62.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row2/Key6"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = "y" +align = 1 +valign = 1 + +[node name="Key7" type="Control" parent="Keyboard/Row2"] +margin_left = 66.0 +margin_right = 73.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row2/Key7"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = "u" +align = 1 +valign = 1 + +[node name="Key8" type="Control" parent="Keyboard/Row2"] +margin_left = 77.0 +margin_right = 84.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row2/Key8"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = "i" +align = 1 +valign = 1 + +[node name="Key9" type="Control" parent="Keyboard/Row2"] +margin_left = 88.0 +margin_right = 95.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row2/Key9"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = "o" +align = 1 +valign = 1 + +[node name="Key10" type="Control" parent="Keyboard/Row2"] +margin_left = 99.0 +margin_right = 106.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row2/Key10"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = "p" +align = 1 +valign = 1 + +[node name="Row3" type="HBoxContainer" parent="Keyboard"] +margin_top = 14.0 +margin_right = 106.0 +margin_bottom = 21.0 + +[node name="Key" type="Control" parent="Keyboard/Row3"] +margin_right = 7.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row3/Key"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = "a" +align = 1 +valign = 1 + +[node name="Key2" type="Control" parent="Keyboard/Row3"] +margin_left = 11.0 +margin_right = 18.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row3/Key2"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = "s" +align = 1 +valign = 1 + +[node name="Key3" type="Control" parent="Keyboard/Row3"] +margin_left = 22.0 +margin_right = 29.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row3/Key3"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = "d" +align = 1 +valign = 1 + +[node name="Key4" type="Control" parent="Keyboard/Row3"] +margin_left = 33.0 +margin_right = 40.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row3/Key4"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = "f" +align = 1 +valign = 1 + +[node name="Key5" type="Control" parent="Keyboard/Row3"] +margin_left = 44.0 +margin_right = 51.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row3/Key5"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = "g" +align = 1 +valign = 1 + +[node name="Key6" type="Control" parent="Keyboard/Row3"] +margin_left = 55.0 +margin_right = 62.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row3/Key6"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = "h" +align = 1 +valign = 1 + +[node name="Key7" type="Control" parent="Keyboard/Row3"] +margin_left = 66.0 +margin_right = 73.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row3/Key7"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = "j" +align = 1 +valign = 1 + +[node name="Key8" type="Control" parent="Keyboard/Row3"] +margin_left = 77.0 +margin_right = 84.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row3/Key8"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = "k" +align = 1 +valign = 1 + +[node name="Key9" type="Control" parent="Keyboard/Row3"] +margin_left = 88.0 +margin_right = 95.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row3/Key9"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = "l" +align = 1 +valign = 1 + +[node name="Key10" type="Control" parent="Keyboard/Row3"] +margin_left = 99.0 +margin_right = 106.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row3/Key10"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = "." +align = 1 +valign = 1 + +[node name="Row4" type="HBoxContainer" parent="Keyboard"] +margin_top = 21.0 +margin_right = 106.0 +margin_bottom = 28.0 + +[node name="Key" type="Control" parent="Keyboard/Row4"] +margin_right = 7.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row4/Key"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = "z" +align = 1 +valign = 1 + +[node name="Key2" type="Control" parent="Keyboard/Row4"] +margin_left = 11.0 +margin_right = 18.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row4/Key2"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = "x" +align = 1 +valign = 1 + +[node name="Key3" type="Control" parent="Keyboard/Row4"] +margin_left = 22.0 +margin_right = 29.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row4/Key3"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = "c" +align = 1 +valign = 1 + +[node name="Key4" type="Control" parent="Keyboard/Row4"] +margin_left = 33.0 +margin_right = 40.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row4/Key4"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = "v" +align = 1 +valign = 1 + +[node name="Key5" type="Control" parent="Keyboard/Row4"] +margin_left = 44.0 +margin_right = 51.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row4/Key5"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = "b" +align = 1 +valign = 1 + +[node name="Key6" type="Control" parent="Keyboard/Row4"] +margin_left = 55.0 +margin_right = 62.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row4/Key6"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = "n" +align = 1 +valign = 1 + +[node name="Key7" type="Control" parent="Keyboard/Row4"] +margin_left = 66.0 +margin_right = 73.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row4/Key7"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = "m" +align = 1 +valign = 1 + +[node name="Key8" type="Control" parent="Keyboard/Row4"] +margin_left = 77.0 +margin_right = 84.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row4/Key8"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = " " +align = 1 +valign = 1 + +[node name="Key9" type="Control" parent="Keyboard/Row4"] +margin_left = 88.0 +margin_right = 95.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row4/Key9"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = "_" +align = 1 +valign = 1 + +[node name="Key10" type="Control" parent="Keyboard/Row4"] +margin_left = 99.0 +margin_right = 106.0 +margin_bottom = 7.0 +rect_min_size = Vector2( 7, 7 ) + +[node name="Label" type="Label" parent="Keyboard/Row4/Key10"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1.0 +margin_right = 1.0 +custom_fonts/font = SubResource( 14 ) +text = "-" +align = 1 +valign = 1 + +[node name="Done" type="Control" parent="."] +margin_left = 96.0 +margin_top = 116.0 +margin_right = 133.0 +margin_bottom = 123.0 + +[node name="Label" type="Label" parent="Done"] +margin_left = 1.0 +margin_right = 37.0 +margin_bottom = 7.0 +custom_fonts/font = SubResource( 14 ) +text = "Accept" diff --git a/src/menu/splash.gd b/src/menu/splash.gd index e2076bc..b01798d 100644 --- a/src/menu/splash.gd +++ b/src/menu/splash.gd @@ -5,4 +5,5 @@ func _ready(): Music.play() $AudioStreamPlayer.play() yield(get_tree().create_timer(1.5), "timeout") - Shared.wipe_scene(Shared.main_menu_path) + #Shared.wipe_scene(Shared.main_menu_path) + Shared.wipe_scene("res://src/menu/Creator.tscn")