Log In  

Cart #tweetris1_1-3 | 2021-09-06 | Code ▽ | Embed ▽ | No License

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)

L/R-------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.

P#76116 2020-05-08 08:53 ( Edited 2021-09-06 20:20)

All Comments

Nice job.

My criticism is more towards the speed of the soft drop and the lack of a proper restart button when you reach a game over tbh. The lack of sound isn't too much of a hindrance, but overall great tweetcart. Maybe you could make it a full game sometime.

P#76125 2020-05-08 13:52

Better than some Tetris games with 10x the space

P#76607 2020-05-15 06:13

has some bugs, but it's very cool

P#80847 2020-08-16 11:42


Well, it's missing a little polish because of the strict size limit, but did you run into actual glitches? I know there's a possibility of prematurely ending your game if you rotate pieces very quickly the moment they appear at the top of the screen, but that's a direct consequence of how the game works and I figured that shouldn't be a problem in most cases. Did you find something else?

P#80852 2020-08-16 15:36 ( Edited 2020-08-16 15:37)

[Please log in to post a comment]