Saturday, February 21, 2015

Coding challenge Tetris

I made a little Tetris game in Java and Slick2D




Info
Propably the most famous computer game in the world. Tetris.
I needed about one day to write it.
Heere are my Tipps:

  • Strukturize the background in rows and comlumns with coordinates.
  • Write a class for one Cube. This is necessary, beacause after your figures are at the bottem the app should count only the cubes per row.
  • Use a Timer for the pseudo gravity.
  • To rotate the figures , please remember that you should do it centered.
For me it was a lot of fun, and only about 400 rows of java code. So when you have a fiew minutes, then do it. It will be great.

used: Java 8 and Slick 2D

No comments:

Post a Comment