Good evening (for those of us on the East Coast!),
I’m teaching myself Lua and in the process, delving deeper into programming. Beyond my semester in Java years ago, I haven’t touched programming since.
The best way for me to learn is to do so I am trying to execute one of the easiest games: Tetris (with a few twists for the fun of it).
I have been able to create the back end (movement, the blocks, etc) by Frankensteining parts of code together.
I have two problems:
-
Executing: I am not sure the code to use in order to begin dropping blocks from the center of the screen. I know how to do the speed of fall and to place blocks at the center of the screen, but I am unsure how to code it so the program begins dropping blocks.
-
I am having difficulty trying to figure out how to tell the program when blocks should be removed. I.e. if there are 4 blue block in a row as in the game Iso.
If there’s a tutorial out there that could help explain these two notions, I’d be more than happy to figure it out. But at the moment I am stuck. I’ve tried searching for open source Tetris code, but have come up blank.
Thanks all for your help and direction! [import]uid: 82392 topic_id: 14174 reply_id: 314174[/import]