Compare commits
15 Commits
Author | SHA1 | Date | |
---|---|---|---|
0b909091b7 | |||
8cc69e99da | |||
1cec50f4f6 | |||
6e9f5659ae | |||
69a21fe12f | |||
11e6e07098 | |||
a8dced21f1 | |||
c338885d67 | |||
dc7a6bd488 | |||
88f5dfb00f | |||
2417bd5b56 | |||
d7768f08ea | |||
05f61c76db | |||
5419864859 | |||
a915251506 |
1
.gitignore
vendored
1
.gitignore
vendored
@ -10,3 +10,4 @@ export_presets.cfg
|
||||
midi/FluidR3 GM.sf2
|
||||
release/
|
||||
*.import
|
||||
*.tmp
|
@ -52,10 +52,9 @@ func lock(piece):
|
||||
return minoes_over_grid < Tetromino.NB_MINOES
|
||||
|
||||
func clear_lines():
|
||||
var line_cleared
|
||||
var lines_cleared = 0
|
||||
for y in range(nb_lines-1, -1, -1):
|
||||
line_cleared = true
|
||||
var line_cleared = true
|
||||
for x in range(nb_collumns):
|
||||
if not get_cell_item(x, y, 0) == MINO:
|
||||
line_cleared = false
|
||||
@ -63,7 +62,8 @@ func clear_lines():
|
||||
if line_cleared:
|
||||
for y2 in range(y, nb_lines+2):
|
||||
for x in range(nb_collumns):
|
||||
set_cell_item(x, y2, 0, get_cell_item(x, y2+1, 0))
|
||||
var above_cell = get_cell_item(x, y2+1, 0)
|
||||
set_cell_item(x, y2, 0, above_cell)
|
||||
lines_cleared += 1
|
||||
exploding_lines[y].emitting = true
|
||||
exploding_lines[y].restart()
|
||||
|
@ -27,6 +27,9 @@ var autoshift_action
|
||||
|
||||
var playing = false
|
||||
|
||||
func _ready():
|
||||
randomize()
|
||||
|
||||
func new_game(level):
|
||||
$Start.visible = false
|
||||
next_piece = random_piece()
|
||||
@ -71,7 +74,7 @@ func _unhandled_input(event):
|
||||
if event.is_action_pressed("pause"):
|
||||
if playing:
|
||||
pause($controls_ui)
|
||||
elif $controls_ui.enable_resume:
|
||||
else:
|
||||
resume()
|
||||
if event.is_action_pressed("toggle_fullscreen"):
|
||||
OS.window_fullscreen = not OS.window_fullscreen
|
||||
@ -132,9 +135,10 @@ func _on_DropTimer_timeout():
|
||||
|
||||
func lock():
|
||||
if $Matrix/GridMap.lock(current_piece):
|
||||
var t_spin = current_piece.t_spin()
|
||||
var lines_cleared = $Matrix/GridMap.clear_lines()
|
||||
$Stats.piece_locked(lines_cleared, current_piece.t_spin)
|
||||
if lines_cleared or current_piece.t_spin:
|
||||
$Stats.piece_locked(lines_cleared, t_spin)
|
||||
if lines_cleared or t_spin:
|
||||
$MidiPlayer.piece_locked(lines_cleared)
|
||||
remove_child(current_piece)
|
||||
new_piece()
|
||||
|
@ -332,6 +332,7 @@ _sections_unfolded = [ "Transform" ]
|
||||
[node name="GridMap" type="GridMap" parent="Matrix" index="0"]
|
||||
|
||||
transform = Transform( 0.1, 0, 0, 0, 0.05, 0, 0, 0, 1, -0.45, -0.475, 0 )
|
||||
visible = false
|
||||
theme = ExtResource( 3 )
|
||||
cell_size = Vector3( 1, 1, 1 )
|
||||
cell_octant_size = 8
|
||||
@ -348,7 +349,7 @@ script = ExtResource( 4 )
|
||||
_sections_unfolded = [ "Cell", "Transform" ]
|
||||
__meta__ = {
|
||||
"_editor_clip_": 1,
|
||||
"_editor_floor_": Vector3( 0, -1, 0 )
|
||||
"_editor_floor_": Vector3( 0, -2, 0 )
|
||||
}
|
||||
|
||||
[node name="Position3D" type="Position3D" parent="Matrix" index="1"]
|
||||
@ -560,8 +561,6 @@ _sections_unfolded = [ "Margin", "custom_colors", "custom_fonts" ]
|
||||
|
||||
[connection signal="animation_finished" from="FlashText/AnimationPlayer" to="FlashText" method="_on_AnimationPlayer_animation_finished"]
|
||||
|
||||
[connection signal="flash_text" from="Stats" to="FlashText" method="print"]
|
||||
|
||||
[connection signal="level_up" from="Stats" to="." method="new_level"]
|
||||
|
||||
[connection signal="start" from="Start" to="." method="new_game"]
|
||||
|
@ -1,14 +1,13 @@
|
||||
extends MarginContainer
|
||||
|
||||
const SCORES = [
|
||||
[0, 4, 1],
|
||||
[1, 8, 2],
|
||||
[3, 12],
|
||||
[5, 16],
|
||||
[8]
|
||||
{"": 0, "MINI T-SPIN": 1, "T-SPIN": 4},
|
||||
{"": 1, "MINI T-SPIN": 2, "T-SPIN": 8},
|
||||
{"": 3, "T-SPIN": 12},
|
||||
{"": 5, "T-SPIN": 16},
|
||||
{"": 8}
|
||||
]
|
||||
const LINES_CLEARED_NAMES = ["", "SINGLE", "DOUBLE", "TRIPLE", "TETRIS"]
|
||||
const T_SPIN_NAMES = ["", "T-SPIN", "MINI T-SPIN"]
|
||||
const password = "TETRIS 3000"
|
||||
|
||||
var level
|
||||
@ -17,12 +16,13 @@ var score
|
||||
var high_score
|
||||
var time
|
||||
var combos
|
||||
var flash_text
|
||||
|
||||
signal flash_text(text)
|
||||
signal level_up(level)
|
||||
|
||||
func _ready():
|
||||
load_user_data()
|
||||
flash_text = get_node("../FlashText")
|
||||
|
||||
func load_user_data():
|
||||
var save_game = File.new()
|
||||
@ -49,7 +49,7 @@ func new_level():
|
||||
goal += 5 * level
|
||||
$VBC/Level.text = str(level)
|
||||
$VBC/Goal.text = str(goal)
|
||||
emit_signal("flash_text", "Level\n%d"%level)
|
||||
flash_text.print("Level\n%d"%level)
|
||||
emit_signal("level_up", level)
|
||||
|
||||
func _on_Clock_timeout():
|
||||
@ -69,16 +69,16 @@ func piece_dropped(ds):
|
||||
func piece_locked(lines, t_spin):
|
||||
var ds
|
||||
if lines or t_spin:
|
||||
var text = T_SPIN_NAMES[t_spin]
|
||||
if lines and t_spin:
|
||||
text += " "
|
||||
text += LINES_CLEARED_NAMES[lines]
|
||||
emit_signal("flash_text", text)
|
||||
ds = SCORES[lines][t_spin]
|
||||
goal -= ds
|
||||
flash_text.print(t_spin + " " + LINES_CLEARED_NAMES[lines])
|
||||
elif lines:
|
||||
flash_text.print(LINES_CLEARED_NAMES[lines])
|
||||
elif t_spin:
|
||||
flash_text.print(t_spin)
|
||||
goal -= SCORES[lines][""]
|
||||
$VBC/Goal.text = str(goal)
|
||||
ds *= 100 * level
|
||||
emit_signal("flash_text", str(ds))
|
||||
ds = 100 * level * SCORES[lines][t_spin]
|
||||
flash_text.print(str(ds))
|
||||
score += ds
|
||||
$VBC/Score.text = str(score)
|
||||
if score > high_score:
|
||||
@ -89,9 +89,9 @@ func piece_locked(lines, t_spin):
|
||||
combos += 1
|
||||
if combos > 0:
|
||||
if combos == 1:
|
||||
emit_signal("flash_text", "COMBO")
|
||||
flash_text.print("COMBO")
|
||||
else:
|
||||
emit_signal("flash_text", "COMBO x%d"%combos)
|
||||
flash_text.print("COMBO x%d"%combos)
|
||||
ds = (20 if lines==1 else 50) * combos * level
|
||||
emit_signal("flash_text", str(ds))
|
||||
score += ds
|
||||
|
@ -3,7 +3,7 @@
|
||||
[ext_resource path="res://Tetrominos/Tetromino.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Tetrominos/Mino/Mino.tscn" type="PackedScene" id=2]
|
||||
|
||||
[node name="TetroJ" type="Spatial" index="0"]
|
||||
[node name="TetroJ" type="Spatial"]
|
||||
|
||||
script = ExtResource( 1 )
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
extends "Tetromino.gd"
|
||||
|
||||
func rotate(direction):
|
||||
return 0
|
||||
return false
|
||||
|
@ -3,8 +3,7 @@
|
||||
[ext_resource path="res://Tetrominos/TetroO.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Tetrominos/Mino/Mino.tscn" type="PackedScene" id=2]
|
||||
|
||||
|
||||
[node name="TetroO" type="Spatial" index="0"]
|
||||
[node name="TetroO" type="Spatial"]
|
||||
|
||||
script = ExtResource( 1 )
|
||||
|
||||
|
@ -7,19 +7,15 @@ const T_SLOT = [
|
||||
Vector3(-1, -1, 0)
|
||||
]
|
||||
|
||||
func rotate(direction):
|
||||
var rotation_point = .rotate(direction)
|
||||
if rotation_point and t_spin != T_SPIN:
|
||||
func t_spin():
|
||||
if rotated_last:
|
||||
var center = to_global(minoes[0].translation)
|
||||
var a = not grid_map.is_free_cell(center + T_SLOT[orientation])
|
||||
var b = not grid_map.is_free_cell(center + T_SLOT[(1+orientation)%4])
|
||||
var c = not grid_map.is_free_cell(center + T_SLOT[(2+orientation)%4])
|
||||
var d = not grid_map.is_free_cell(center + T_SLOT[(3+orientation)%4])
|
||||
if a and b and (c or d):
|
||||
t_spin = T_SPIN
|
||||
var c = not grid_map.is_free_cell(center + T_SLOT[(3+orientation)%4])
|
||||
var d = not grid_map.is_free_cell(center + T_SLOT[(2+orientation)%4])
|
||||
if rotation_point_5_used or (a and b and (c or d)):
|
||||
return "T-SPIN"
|
||||
elif c and d and (a or b):
|
||||
if rotation_point == 5:
|
||||
t_spin = T_SPIN
|
||||
else:
|
||||
t_spin = MINI_T_SPIN
|
||||
return rotation_point
|
||||
return "MINI T-SPIN"
|
||||
return ""
|
@ -3,9 +3,6 @@ extends Spatial
|
||||
const NB_MINOES = 4
|
||||
const CLOCKWISE = -1
|
||||
const COUNTERCLOCKWISE = 1
|
||||
const NO_T_SPIN = 0
|
||||
const T_SPIN = 1
|
||||
const MINI_T_SPIN = 2
|
||||
const SUPER_ROTATION_SYSTEM = [
|
||||
{
|
||||
COUNTERCLOCKWISE: [
|
||||
@ -77,10 +74,10 @@ var minoes = []
|
||||
var grid_map
|
||||
var lock_delay
|
||||
var orientation = 0
|
||||
var t_spin = NO_T_SPIN
|
||||
var rotation_point_5_used = false
|
||||
var rotated_last = false
|
||||
|
||||
func _ready():
|
||||
randomize()
|
||||
for i in range(NB_MINOES):
|
||||
minoes.append(get_node("Mino"+str(i)))
|
||||
grid_map = get_node("../Matrix/GridMap")
|
||||
@ -100,28 +97,34 @@ func move(movement):
|
||||
if grid_map.possible_positions(get_translations(), movement):
|
||||
translate(movement)
|
||||
lock_delay.start()
|
||||
rotated_last = false
|
||||
return true
|
||||
return false
|
||||
|
||||
func rotate(direction):
|
||||
var t = get_translations()
|
||||
var rotated_translations = [t[0]]
|
||||
var translations = get_translations()
|
||||
var rotated_translations = [translations[0]]
|
||||
var center = translations[0]
|
||||
for i in range(1, NB_MINOES):
|
||||
var v = t[i]
|
||||
v -= t[0]
|
||||
v = Vector3(-1*direction*v.y, direction*v.x, 0)
|
||||
v += t[0]
|
||||
rotated_translations.append(v)
|
||||
var rt = translations[i] - center
|
||||
rt = Vector3(-1*direction*rt.y, direction*rt.x, 0)
|
||||
rt += center
|
||||
rotated_translations.append(rt)
|
||||
var movements = SUPER_ROTATION_SYSTEM[orientation][direction]
|
||||
for i in range(movements.size()):
|
||||
if grid_map.possible_positions(rotated_translations, movements[i]):
|
||||
orientation -= direction
|
||||
orientation %= NB_MINOES
|
||||
orientation = (orientation - direction) % NB_MINOES
|
||||
set_translations(rotated_translations)
|
||||
translate(movements[i])
|
||||
lock_delay.start()
|
||||
return i+1
|
||||
return 0
|
||||
rotated_last = true
|
||||
if i == 4:
|
||||
rotation_point_5_used = true
|
||||
return true
|
||||
return false
|
||||
|
||||
func t_spin():
|
||||
return ""
|
||||
|
||||
func emit_trail(visible):
|
||||
var trail
|
||||
|
@ -1,17 +1,5 @@
|
||||
extends Control
|
||||
|
||||
# Note for the reader:
|
||||
#
|
||||
# This demo conveniently uses the same names for actions and for the container nodes
|
||||
# that hold each remapping button. This allow to get back to the button based simply
|
||||
# on the name of the corresponding action, but it might not be so simple in your project.
|
||||
#
|
||||
# A better approach for large-scale input remapping might be to do the connections between
|
||||
# buttons and wait_for_input through the code, passing as arguments both the name of the
|
||||
# action and the node, e.g.:
|
||||
# button.connect("pressed", self, "wait_for_input", [ button, action ])
|
||||
|
||||
# Constants
|
||||
const INPUT_ACTIONS = [
|
||||
"move_left",
|
||||
"move_right",
|
||||
@ -24,11 +12,8 @@ const INPUT_ACTIONS = [
|
||||
]
|
||||
const CONFIG_FILE = "user://input.cfg"
|
||||
|
||||
# Member variables
|
||||
var action # To register the action the UI is currently handling
|
||||
var button # Button node corresponding to the above action
|
||||
var enable_resume = true
|
||||
|
||||
|
||||
# Load/save input mapping to a config file
|
||||
# Changes done while testing the demo will be persistent, saved to CONFIG_FILE
|
||||
@ -74,8 +59,7 @@ func wait_for_input(action_bind):
|
||||
action = action_bind
|
||||
# See note at the beginning of the script
|
||||
button = get_node("bindings").get_node(action).get_node("Button")
|
||||
#get_node("contextual_help").text = "Press a key to assign to the '" + action + "' action."
|
||||
enable_resume = false
|
||||
button.text = "Press key"
|
||||
set_process_input(true)
|
||||
|
||||
|
||||
@ -85,8 +69,6 @@ func _input(event):
|
||||
# Register the event as handled and stop polling
|
||||
get_tree().set_input_as_handled()
|
||||
set_process_input(false)
|
||||
# Reinitialise the contextual help label
|
||||
#get_node("contextual_help").text = "Click a key binding to reassign it, or press the Cancel action."
|
||||
|
||||
# Display the string corresponding to the pressed key
|
||||
var scancode = OS.get_scancode_string(event.scancode)
|
||||
@ -97,8 +79,7 @@ func _input(event):
|
||||
# Add the new key binding
|
||||
InputMap.action_add_event(action, event)
|
||||
save_to_config("input", action, scancode)
|
||||
enable_resume = true
|
||||
|
||||
hint_text()
|
||||
|
||||
func _ready():
|
||||
# Load config if existing, if not it will be generated with default values
|
||||
@ -112,5 +93,12 @@ func _ready():
|
||||
button.text = OS.get_scancode_string(input_event.scancode)
|
||||
button.connect("pressed", self, "wait_for_input", [action])
|
||||
|
||||
hint_text()
|
||||
|
||||
func hint_text():
|
||||
var input_event = InputMap.get_action_list("pause")[0]
|
||||
var scancode = OS.get_scancode_string(input_event.scancode)
|
||||
$hint.text = "Press ["+ scancode + "] to resume\nor click on a button to change key assignment"
|
||||
|
||||
# Do not start processing input until a button is pressed
|
||||
set_process_input(false)
|
||||
|
@ -19,9 +19,9 @@ anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -30.0
|
||||
margin_top = 10.0
|
||||
margin_top = 20.0
|
||||
margin_right = 10.0
|
||||
margin_bottom = 50.0
|
||||
margin_bottom = 60.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 0
|
||||
@ -39,10 +39,10 @@ anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = -40.0
|
||||
margin_top = -150.0
|
||||
margin_right = 110.0
|
||||
margin_bottom = -111.0
|
||||
margin_left = -220.0
|
||||
margin_top = -190.0
|
||||
margin_right = 280.0
|
||||
margin_bottom = -151.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 2
|
||||
@ -53,6 +53,8 @@ custom_fonts/font = ExtResource( 2 )
|
||||
custom_colors/font_color = Color( 0.443137, 0.709804, 0.819608, 0.533333 )
|
||||
custom_colors/font_color_shadow = Color( 1, 1, 1, 0.0968627 )
|
||||
text = "PAUSE"
|
||||
align = 1
|
||||
valign = 1
|
||||
percent_visible = 1.0
|
||||
lines_skipped = 0
|
||||
max_lines_visible = -1
|
||||
@ -81,10 +83,10 @@ anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 50.0
|
||||
margin_top = 50.0
|
||||
margin_right = 90.0
|
||||
margin_bottom = 90.0
|
||||
margin_left = 20.0
|
||||
margin_top = 65.0
|
||||
margin_right = 60.0
|
||||
margin_bottom = 105.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 0
|
||||
@ -99,7 +101,7 @@ anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 80.0
|
||||
margin_right = 155.0
|
||||
margin_right = 174.0
|
||||
margin_bottom = 37.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
@ -113,6 +115,7 @@ toggle_mode = false
|
||||
enabled_focus_mode = 2
|
||||
shortcut = null
|
||||
group = null
|
||||
text = "Press key"
|
||||
flat = false
|
||||
align = 1
|
||||
_sections_unfolded = [ "Rect" ]
|
||||
@ -120,7 +123,7 @@ _sections_unfolded = [ "Rect" ]
|
||||
[node name="arrowLeft" type="Sprite" parent="bindings/move_left" index="1"]
|
||||
|
||||
position = Vector2( 30, 20 )
|
||||
scale = Vector2( 0.9, 0.9 )
|
||||
scale = Vector2( 0.75, 0.75 )
|
||||
texture = ExtResource( 4 )
|
||||
|
||||
[node name="move_right" type="Control" parent="bindings" index="1"]
|
||||
@ -129,10 +132,10 @@ anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 226.0
|
||||
margin_top = 51.0
|
||||
margin_right = 266.0
|
||||
margin_bottom = 91.0
|
||||
margin_left = 220.0
|
||||
margin_top = 65.0
|
||||
margin_right = 260.0
|
||||
margin_bottom = 105.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 0
|
||||
@ -148,7 +151,7 @@ anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 84.0
|
||||
margin_top = -1.0
|
||||
margin_right = 159.0
|
||||
margin_right = 178.0
|
||||
margin_bottom = 36.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
@ -162,12 +165,15 @@ toggle_mode = false
|
||||
enabled_focus_mode = 2
|
||||
shortcut = null
|
||||
group = null
|
||||
text = "Press key"
|
||||
flat = false
|
||||
align = 1
|
||||
_sections_unfolded = [ "custom_fonts" ]
|
||||
|
||||
[node name="arrowRight" type="Sprite" parent="bindings/move_right" index="1"]
|
||||
|
||||
position = Vector2( 34, 19 )
|
||||
scale = Vector2( 0.8, 0.8 )
|
||||
texture = ExtResource( 5 )
|
||||
_sections_unfolded = [ "Transform" ]
|
||||
|
||||
@ -177,10 +183,10 @@ anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 230.0
|
||||
margin_top = 100.0
|
||||
margin_right = 270.0
|
||||
margin_bottom = 140.0
|
||||
margin_left = 224.0
|
||||
margin_top = 114.0
|
||||
margin_right = 264.0
|
||||
margin_bottom = 154.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 0
|
||||
@ -195,7 +201,7 @@ anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 80.0
|
||||
margin_right = 155.0
|
||||
margin_right = 174.0
|
||||
margin_bottom = 37.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
@ -209,13 +215,15 @@ toggle_mode = false
|
||||
enabled_focus_mode = 2
|
||||
shortcut = null
|
||||
group = null
|
||||
text = "Press key"
|
||||
flat = false
|
||||
align = 1
|
||||
_sections_unfolded = [ "custom_fonts" ]
|
||||
_sections_unfolded = [ "Rect", "custom_fonts" ]
|
||||
|
||||
[node name="clockwise" type="Sprite" parent="bindings/rotate_clockwise" index="1"]
|
||||
|
||||
position = Vector2( 30, 15 )
|
||||
scale = Vector2( 0.8, 0.8 )
|
||||
texture = ExtResource( 6 )
|
||||
|
||||
[node name="rotate_counterclockwise" type="Control" parent="bindings" index="3"]
|
||||
@ -224,10 +232,10 @@ anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 45.0
|
||||
margin_top = 100.0
|
||||
margin_right = 85.0
|
||||
margin_bottom = 140.0
|
||||
margin_left = 15.0
|
||||
margin_top = 115.0
|
||||
margin_right = 55.0
|
||||
margin_bottom = 155.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 0
|
||||
@ -243,7 +251,7 @@ anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 84.0
|
||||
margin_top = -1.0
|
||||
margin_right = 159.0
|
||||
margin_right = 178.0
|
||||
margin_bottom = 36.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
@ -257,13 +265,15 @@ toggle_mode = false
|
||||
enabled_focus_mode = 2
|
||||
shortcut = null
|
||||
group = null
|
||||
text = "Press key"
|
||||
flat = false
|
||||
align = 1
|
||||
_sections_unfolded = [ "Rect" ]
|
||||
|
||||
[node name="counterclockwise" type="Sprite" parent="bindings/rotate_counterclockwise" index="1"]
|
||||
|
||||
position = Vector2( 34, 14 )
|
||||
position = Vector2( 35, 15 )
|
||||
scale = Vector2( 0.82, 0.82 )
|
||||
texture = ExtResource( 7 )
|
||||
|
||||
[node name="soft_drop" type="Control" parent="bindings" index="4"]
|
||||
@ -272,10 +282,10 @@ anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 50.0
|
||||
margin_top = 150.0
|
||||
margin_right = 90.0
|
||||
margin_bottom = 190.0
|
||||
margin_left = 20.0
|
||||
margin_top = 165.0
|
||||
margin_right = 60.0
|
||||
margin_bottom = 205.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 0
|
||||
@ -290,7 +300,7 @@ anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 80.0
|
||||
margin_right = 155.0
|
||||
margin_right = 174.0
|
||||
margin_bottom = 37.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
@ -304,12 +314,14 @@ toggle_mode = false
|
||||
enabled_focus_mode = 2
|
||||
shortcut = null
|
||||
group = null
|
||||
text = "Press key"
|
||||
flat = false
|
||||
align = 1
|
||||
|
||||
[node name="arrowDown" type="Sprite" parent="bindings/soft_drop" index="1"]
|
||||
|
||||
position = Vector2( 30, 20 )
|
||||
scale = Vector2( 0.8, 0.8 )
|
||||
texture = ExtResource( 8 )
|
||||
_sections_unfolded = [ "Transform" ]
|
||||
|
||||
@ -319,10 +331,10 @@ anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 226.0
|
||||
margin_top = 151.0
|
||||
margin_right = 266.0
|
||||
margin_bottom = 191.0
|
||||
margin_left = 220.0
|
||||
margin_top = 165.0
|
||||
margin_right = 260.0
|
||||
margin_bottom = 205.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 0
|
||||
@ -338,7 +350,7 @@ anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 84.0
|
||||
margin_top = -1.0
|
||||
margin_right = 159.0
|
||||
margin_right = 178.0
|
||||
margin_bottom = 36.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
@ -352,13 +364,16 @@ toggle_mode = false
|
||||
enabled_focus_mode = 2
|
||||
shortcut = null
|
||||
group = null
|
||||
text = "Press key"
|
||||
flat = false
|
||||
align = 1
|
||||
|
||||
[node name="harddrop" type="Sprite" parent="bindings/hard_drop" index="1"]
|
||||
|
||||
position = Vector2( 34, 19 )
|
||||
scale = Vector2( 0.75, 0.75 )
|
||||
texture = ExtResource( 9 )
|
||||
_sections_unfolded = [ "Transform", "Z Index" ]
|
||||
|
||||
[node name="hold" type="Control" parent="bindings" index="6"]
|
||||
|
||||
@ -366,10 +381,10 @@ anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 50.0
|
||||
margin_top = 200.0
|
||||
margin_right = 90.0
|
||||
margin_bottom = 240.0
|
||||
margin_left = 20.0
|
||||
margin_top = 215.0
|
||||
margin_right = 60.0
|
||||
margin_bottom = 255.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 0
|
||||
@ -384,7 +399,7 @@ anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 80.0
|
||||
margin_right = 155.0
|
||||
margin_right = 174.0
|
||||
margin_bottom = 37.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
@ -398,12 +413,14 @@ toggle_mode = false
|
||||
enabled_focus_mode = 2
|
||||
shortcut = null
|
||||
group = null
|
||||
text = "Press key"
|
||||
flat = false
|
||||
align = 1
|
||||
|
||||
[node name="hold" type="Sprite" parent="bindings/hold" index="1"]
|
||||
|
||||
position = Vector2( 30, 20 )
|
||||
scale = Vector2( 0.8, 0.8 )
|
||||
texture = ExtResource( 10 )
|
||||
|
||||
[node name="pause" type="Control" parent="bindings" index="7"]
|
||||
@ -412,10 +429,10 @@ anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 226.0
|
||||
margin_top = 201.0
|
||||
margin_right = 266.0
|
||||
margin_bottom = 241.0
|
||||
margin_left = 220.0
|
||||
margin_top = 215.0
|
||||
margin_right = 260.0
|
||||
margin_bottom = 255.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 0
|
||||
@ -431,7 +448,7 @@ anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 84.0
|
||||
margin_top = -1.0
|
||||
margin_right = 159.0
|
||||
margin_right = 178.0
|
||||
margin_bottom = 36.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
@ -445,12 +462,41 @@ toggle_mode = false
|
||||
enabled_focus_mode = 2
|
||||
shortcut = null
|
||||
group = null
|
||||
text = "Press key"
|
||||
flat = false
|
||||
align = 1
|
||||
|
||||
[node name="pause" type="Sprite" parent="bindings/pause" index="1"]
|
||||
|
||||
position = Vector2( 34, 19 )
|
||||
scale = Vector2( 0.8, 0.8 )
|
||||
texture = ExtResource( 11 )
|
||||
_sections_unfolded = [ "Transform" ]
|
||||
|
||||
[node name="hint" type="Label" parent="." index="2"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = -220.0
|
||||
margin_top = -135.0
|
||||
margin_right = 280.0
|
||||
margin_bottom = -84.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 2
|
||||
mouse_default_cursor_shape = 0
|
||||
size_flags_horizontal = 1
|
||||
size_flags_vertical = 4
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
text = "Press [pause key] to resume
|
||||
or click on a button to change key assignment"
|
||||
align = 1
|
||||
valign = 1
|
||||
percent_visible = 1.0
|
||||
lines_skipped = 0
|
||||
max_lines_visible = -1
|
||||
_sections_unfolded = [ "custom_fonts" ]
|
||||
|
||||
|
||||
|
Binary file not shown.
Reference in New Issue
Block a user