This site requires JavaScript, please enable it in your browser!
Greenfoot back
JupiterForeheadSam
JupiterForeheadSam wrote ...

2017/3/22

How to make a tetris like game

JupiterForeheadSam JupiterForeheadSam

2017/3/22

#
I want to make a game a bit like tetris but I dont know how to make the blocks fall, how to make them disapere and how to have a score board
Super_Hippo Super_Hippo

2017/3/22

#
There are several discussions here about games like Tetris. As a general advise: Four blocks form a tetromino. Always move the blocks together. If one fails to fall, move all four back. For making them disappear: Every time a tetromino fails to move further (which also leads to the creation of the next one), check each row if it is full. If any row is full, remove all the blocks in this row and move every block which is above it (smaller y-coordinate) down once. The scoreboard should be made when the rest works.
You need to login to post a reply.