You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The square moves N cells down each second.
Don't use timeout/interval, we'd like to keep all movement logic in a single place. Keep y coordinate as a floating point, increment with a step during each update, check with Math.floor.
The square stops when bottom is reached or existing block is hit (introduce board)
A full row is removed from board.
Block can have different shape, it's randomly chosen on spawn.
Block can be rotated.
The square can be rapidly moved down using the down arrow.