TETRIS CLONE I MADE

Show off your games, demos and other (playable) creations.
Post Reply
MaxGamz
Party member
Posts: 104
Joined: Fri Oct 28, 2022 3:09 am

TETRIS CLONE I MADE

Post by MaxGamz »

Here is a very simplistic Tetris clone I made using all the basic elements of Tetris. I am glad I have a working game running and I hope you guys like it. But I warn you, it isn't the most interesting thing in the world, but I am proud of it!
Tetris.love
(4.24 KiB) Downloaded 191 times
zingo
Citizen
Posts: 53
Joined: Mon Jan 16, 2023 7:34 am

Re: TETRIS CLONE I MADE

Post by zingo »

We all gotta start somewhere, and having a complete game is something to be proud of, however basic it may be. Also, who doesn't love the classic Tetris experience. I would suggest maybe including some aesthetics, like background music, sound fx, color for the blocks, etc., just to add a little panache. Thank you for sharing this, and I hope you'll continue to create more stuff with love2d :awesome:
User avatar
knorke
Party member
Posts: 274
Joined: Wed Jul 14, 2010 7:06 pm
Contact:

Re: TETRIS CLONE I MADE

Post by knorke »

Congrats, now it is just a matter of making the rest of the game. :crazy:
-A way to start a new game
-Menu
-Highscore list
-Make it use more of the screen
-Levels (increase speed over time)

Sometimes these things take as much time as creating the actual gameplay.
But they make the difference between a "playable techdemo" and a "real finished game."

I was quickly and repeatedly pressing spacebar and got this error:
Error

main.lua:71: attempt to index a nil value


Traceback

[love "callbacks.lua"]:228: in function 'handler'
main.lua:71: in function 'findCoordinate'
main.lua:312: in function <main.lua:292>
[love "callbacks.lua"]:154: in function <[love "callbacks.lua"]:144>
[C]: in function 'xpcall'
Maybe related, when quick-dropping piece with spacebar then they sometimes sink 2-3 lines too deep:
They clipped into already placed blocks.
MaxGamz
Party member
Posts: 104
Joined: Fri Oct 28, 2022 3:09 am

Re: TETRIS CLONE I MADE

Post by MaxGamz »

knorke wrote: Thu May 30, 2024 6:45 am Congrats, now it is just a matter of making the rest of the game. :crazy:
-A way to start a new game
-Menu
-Highscore list
-Make it use more of the screen
-Levels (increase speed over time)

Sometimes these things take as much time as creating the actual gameplay.
But they make the difference between a "playable techdemo" and a "real finished game."

I was quickly and repeatedly pressing spacebar and got this error:
Error

main.lua:71: attempt to index a nil value


Traceback

[love "callbacks.lua"]:228: in function 'handler'
main.lua:71: in function 'findCoordinate'
main.lua:312: in function <main.lua:292>
[love "callbacks.lua"]:154: in function <[love "callbacks.lua"]:144>
[C]: in function 'xpcall'
Maybe related, when quick-dropping piece with spacebar then they sometimes sink 2-3 lines too deep:
They clipped into already placed blocks.
sorry for the extremely late reply lol, but I think I realized the issue. I made sure to make the spacebar function work only if the player is not "grounded" in a sense. I am not sure if thee error has been fixed but I realized when writing the code to check collisions, I checked for the findCoordinate function twice in an or statement. I was able to quickly fix it
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 2 guests