Tetris! (1 bug, also need help)

Show off your games, demos and other (playable) creations.
Post Reply
LuaWeaver
Party member
Posts: 183
Joined: Wed Mar 02, 2011 11:15 pm
Location: Ohio, USA

Tetris! (1 bug, also need help)

Post by LuaWeaver »

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!
Tetris.love
(6.76 KiB) Downloaded 233 times
"your actions cause me to infer your ego is the size of three houses" -finley
User avatar
jasonisop
Citizen
Posts: 93
Joined: Thu Jun 21, 2012 1:35 am

Re: Tetris! (1 bug, also need help)

Post by jasonisop »

getting an error as soon as the first block falls to the bottom

main.lua:58 You lose! Final score : 0

error trace back starts at main.lua:204 update
main.lua:120 addPartToWorld
main.lua:85 checkForRowWin
main.lua:58 checkForLose
LuaWeaver
Party member
Posts: 183
Joined: Wed Mar 02, 2011 11:15 pm
Location: Ohio, USA

Re: Tetris! (1 bug, also need help)

Post by LuaWeaver »

I had packaged the wrong version, it's fixed in the new .love.
"your actions cause me to infer your ego is the size of three houses" -finley
User avatar
Hexenhammer
Party member
Posts: 175
Joined: Sun Feb 17, 2013 8:19 am

Re: Tetris! (1 bug, also need help)

Post by Hexenhammer »

I think I have never seen an ASCII version of Tetris before! :awesome:
a very-ugly-coded-version
Not an empty promise! :ultrashocked:
LuaWeaver
Party member
Posts: 183
Joined: Wed Mar 02, 2011 11:15 pm
Location: Ohio, USA

Re: Tetris! (1 bug, also need help)

Post by LuaWeaver »

Hexenhammer wrote:I think I have never seen an ASCII version of Tetris before! :awesome:
a very-ugly-coded-version
Not an empty promise! :ultrashocked:
I'm not so good at this whole 'code for the public' thing. Those comments and function groupings were added to make it better than what it was before. :oops:
"your actions cause me to infer your ego is the size of three houses" -finley
Post Reply

Who is online

Users browsing this forum: No registered users and 72 guests