Tetris! (1 bug, also need help)
Posted: Thu May 23, 2013 11:55 pm
Hello! I'm very happy because I finally finished an actual game : a very-ugly-coded-version of Tetris.
There is one bug in which some tetrominoes can ignore collision on certain parts of itself... it's odd, and I can't figure it out. However, in the code, you can add "I" to the shapes table in main.lua to see what I mean. When not rotated, the entire thing goes through, which is why it's currently now in-game.
You can look at/use the code in any way, just don't take credit.
Controls:
Left arrow : Move left
Right arrow : Move right
Down arrow : Speed up
Space + Left arrow : Rotate
Space + Right arrow : Rotate
Anyways, this my first actually finished project, so here it is!
There is one bug in which some tetrominoes can ignore collision on certain parts of itself... it's odd, and I can't figure it out. However, in the code, you can add "I" to the shapes table in main.lua to see what I mean. When not rotated, the entire thing goes through, which is why it's currently now in-game.
You can look at/use the code in any way, just don't take credit.
Controls:
Left arrow : Move left
Right arrow : Move right
Down arrow : Speed up
Space + Left arrow : Rotate
Space + Right arrow : Rotate
Anyways, this my first actually finished project, so here it is!