Second Prototype
This commit is contained in:
parent
885351b624
commit
632eeddc64
60 changed files with 680 additions and 1013 deletions
|
|
@ -12,29 +12,22 @@ const GRID := 64
|
|||
|
||||
enum BLOCKTYPES {LIGHT, HEAVY}
|
||||
|
||||
const BLOCKS : Dictionary = {
|
||||
"1x3": "res://scenes/Block/1x3/1x3_block.tscn",
|
||||
"1x4": "res://scenes/Block/1x4/1x4_block.tscn",
|
||||
"2x2": "res://scenes/Block/2x2/2x2_block.tscn",
|
||||
"2x3": "res://scenes/Block/2x3/2x3_block.tscn",
|
||||
"T": "res://scenes/Block/T/T_block.tscn",
|
||||
"L": "res://scenes/Block/L/L_block.tscn",
|
||||
"L-small": "res://scenes/Block/L-small/L-small_block.tscn",
|
||||
"Snake": "res://scenes/Block/Snake/Snake_block.tscn",
|
||||
"Fork": "res://scenes/Block/Fork/Fork_block.tscn"
|
||||
const BLOCKSPATTERS : Dictionary = {
|
||||
"Z": "res://scenes/Blocks/Patterns/Z/Z_block_pattern.tscn",
|
||||
"L": "res://scenes/Blocks/Patterns/L/L_block_pattern.tscn",
|
||||
"L-Reverse": "res://scenes/Blocks/Patterns/L-Reverse/L-Reverse_block_pattern.tscn",
|
||||
"Z-Reverse": "res://scenes/Blocks/Patterns/Z-Reverse/Z-Reverse_block_pattern.tscn",
|
||||
"2x2": "res://scenes/Blocks/Patterns/2x2/2x2_block_pattern.tscn",
|
||||
"T": "res://scenes/Blocks/Patterns/T/T_block_pattern.tscn",
|
||||
"I": "res://scenes/Blocks/Patterns/I/I_block_pattern.tscn",
|
||||
"1x3": "res://scenes/Blocks/Patterns/1x3/1x3_block_pattern.tscn"
|
||||
}
|
||||
enum Direction {BOTTOM, LEFT, RIGHT}
|
||||
|
||||
var lastId = 0
|
||||
var lastUID = 1
|
||||
|
||||
var currentBlock = null
|
||||
var currentUID = lastUID
|
||||
|
||||
func getNewId() -> int:
|
||||
lastId += 1
|
||||
return lastId
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
|
||||
|
||||
if currentBlock != null:
|
||||
if currentBlock.stopped:
|
||||
hasSelectedSpeed = false
|
||||
func getNewUID() -> int:
|
||||
lastUID += 1
|
||||
return lastUID
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue