Tetris revisited: Petris (v1.2.1 final)

Show off your games, demos and other (playable) creations.
Post Reply
User avatar
Smoggert
Prole
Posts: 29
Joined: Thu Nov 10, 2016 11:23 pm

Tetris revisited: Petris (v1.2.1 final)

Post by Smoggert »

I've been playing around with love2D for a few months now, and as a result I've been mostly coding my own UIManagers, slowly making myself acquainted with lua's implimentation of OO-coding.

The last few days I decided to make a tetris clone. It still has a few kinks I'm working out/features I'd like to add. But then again what game doesn't.

- Attached: x86 build and the .love file

Scoring: Single lines < multiple lines < multiple lines combo'd by consecutive blocks
Saves: high score / sound on/off

Controls:
Arrow keys
Space bar

Cheats:
lCTRL + Z/R (add remove blocks)
esc (cancel cheat)

ToDo :
  1. Key shortcuts - DONE
  2. Better Combo animation - DONE

    Canceled features
  3. Configurable Controls
  4. Add music
My current highscore: 136995 points (lvl 21)

Conclusion (Final Version 1.2.1):
My current implementation of a selfmade GUI-lib is a bit shody.
(non-existant inheritance, use of globals)
I already rewrote it for the most parts for my next game. I've learned a lot of stuff regarding use of globals and how to implement inheritance in my class-structure.

The game itself was also flawed in some areas code wise. Some instances of the game should have been modularised (? is this a word) but I just wrote them as main code.

Overal though, the game turned out quite nice. It pointed me to some bugs in my GUI-lib that were very hard to spot otherwise and are now fixed.

Image
Attachments
Petris_10.2_x84_v1.2.1.zip
(4.54 MiB) Downloaded 106 times
Last edited by Smoggert on Tue Nov 15, 2016 3:26 am, edited 11 times in total.
User avatar
Smoggert
Prole
Posts: 29
Joined: Thu Nov 10, 2016 11:23 pm

Re: Tetris revisited: Petris

Post by Smoggert »

2 small updates. v1.1
User avatar
Smoggert
Prole
Posts: 29
Joined: Thu Nov 10, 2016 11:23 pm

Re: Tetris revisited: Petris

Post by Smoggert »

Some major updates.
Final release version (unless some bugs show up that I do not know off).
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests