Page 1 of 1
TETRIS CLONE I MADE
Posted: Mon May 27, 2024 8:45 pm
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!
Re: TETRIS CLONE I MADE
Posted: Tue May 28, 2024 3:07 am
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
Re: TETRIS CLONE I MADE
Posted: Thu May 30, 2024 6:45 am
by knorke
Congrats, now it is just a matter of making the rest of the game.
-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.
Re: TETRIS CLONE I MADE
Posted: Tue Jun 04, 2024 9:28 pm
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.
-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