Tweetris -- fully playable tetris in 560 characters
Tweetris -- fully playable tetris in 560 characters
Version 1.1: Fixed game over glitch that could occur when pieces were rotated the moment they appeared, pieces can now be rotated clockwise and counterclockwise.
This is a fully playable version of Tetris in fewer characters than a moderate-length email, including:
Line removal
Level progression (speed increases after every 10 lines cleared)
'Lines cleared' display
CW and CCW piece rotation
Soft drop button (with slight delay when next piece appears)
Controls:
LR-------move piece
Down------soft drop
X-------rotate piece clockwise
O-------rotate piece counterclockwise
Fitting everything in this small a space was pretty tough. I had to cut a few corners, like leaving out the next piece preview, as well as logic to allow movement of blocks once they land, so overhangs are a nuisance. With all that said, though, I worked hard trying to make this an actually decent version of tetris and not just a technical curiousity, so hopefully somebody actually enjoys playing it instead of just staring at the indecipherable souce code. Shoutout to 2dArray, whose Tweetjam Tetris and its genius piece indexing system I built on for this project.
License: -