Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A clone of a popular block game done in Processing
branch: master
Failed to load latest commit information.
data More game sounds. Moved tests to new method. Removed unused classes.
disabled More game sounds. Moved tests to new method. Removed unused classes.
Animation.pde Added row disappearing animation effect. Fixed level past 90 bug.
Block.pde 090310a archive
GameOverState.pde Implemented pause menu, Game Options, customized keys, screenshots be…
GameState.pde Implemented pause menu, Game Options, customized keys, screenshots be…
IPiece.pde Switched playstate to less direct key event driven design with variab…
JPiece.pde Added score and level stats. Fixed dropPiece() bug with L and J piece…
LPiece.pde Major refactor. Moved many common things into Piece class.
Level.pde Minor cleanup and comment.
MenuState.pde More game sounds. Moved tests to new method. Removed unused classes.
OPiece.pde Cleanup and changed TPiece to rotate in middle of piece.
Piece.pde Switched playstate to less direct key event driven design with variab…
PieceBag.pde Major refactor. Moved many common things into Piece class.
PlayState.pde Main method fix. Font fix. Rename github repo.
Point2d.pde 090305a archive
README.md link fix
ReverseComparator.pde Bug with clearing 4 lines, 1 above. Compress and restack algorithm wa…
RowAnimation.pde Added row disappearing animation effect. Fixed level past 90 bug.
SPiece.pde Major refactor. Moved many common things into Piece class.
Score.pde More game sounds. Moved tests to new method. Removed unused classes.
TPiece.pde Cleanup and changed TPiece to rotate in middle of piece.
Tatris.pde Main method fix. Font fix. Rename github repo.
VERSIONS 090318a archive
ZPiece.pde Major refactor. Moved many common things into Piece class.

README.md

Tatris

A "falling blocks game" written in Processing. Some notable features:

  • True random pieces - you'll never get 3 "line pieces" in a row. Or any other piece for that matter.
  • Sound effects - disable option
  • Offscreen rendering for effects when pausing etc
  • Increasing difficulty, although it's not very hard to play for a long time

Default controls:

  • Left Arrow = Left
  • Right Arrow = Right
  • Up Arrow = Rotate
  • Down Arrow = Down one line
  • Space = Drop piece
  • ESC = Menu / Pause

See it in action.

A post about how this was made.

TODO:

  • Occasional and hard to replicate Piece dropping bug, need to rework entire grid design
Something went wrong with that request. Please try again.