randomize in main

This commit is contained in:
adrienmalin 2019-01-16 21:47:16 +01:00
parent 11e6e07098
commit 69a21fe12f
2 changed files with 3 additions and 1 deletions

View File

@ -27,6 +27,9 @@ var autoshift_action
var playing = false
func _ready():
randomize()
func new_game(level):
$Start.visible = false
next_piece = random_piece()

View File

@ -77,7 +77,6 @@ var orientation = 0
var rotation_point_5_used = false
func _ready():
randomize()
for i in range(NB_MINOES):
minoes.append(get_node("Mino"+str(i)))
grid_map = get_node("../Matrix/GridMap")