Page 1 of 1

My first game!

Posted: February 6th, 2020, 2:00 am
by WilsonHuang
Thanks Chili's tutorial. Here's my first game ever made, Tetris. I can't believe I finish it by myself! :D :D
My next project will be Puyo Puyo. I hope I have perseverance to finish it!
https://mega.nz/file/FQNSVYDa#fQBEi3RPM ... J0pCvydXNU

How To Control
==============
Move: Arrow Keys
Rotate Right: Up Key, X
Rotate Left: Z
Hard Drop: Space Bar
Pause: Enter

Re: My first game!

Posted: February 8th, 2020, 7:25 am
by chili
Cool stuff man. Got some nice polish on this one. Sound effects sound like they are from Tetris 99 :D
The animation for clearing is nice too. I think the input on the left/right movement is a little sluggish. Rotation is fine, but fast dropping maybe a little to fast. Also, how are you generating the sequences of tetronimos? There are rules for proper generation that you might not be aware of. A little more of an advance preview window would be nice as well.

I look forward to seeing what you do with puyo. It's a more interesting game than tetris imo. Very hard to learn how to effectively set up those chains.

Re: My first game!

Posted: February 8th, 2020, 3:47 pm
by WilsonHuang
chili wrote:
February 8th, 2020, 7:25 am
Cool stuff man. Got some nice polish on this one. Sound effects sound like they are from Tetris 99 :D
The animation for clearing is nice too. I think the input on the left/right movement is a little sluggish. Rotation is fine, but fast dropping maybe a little to fast. Also, how are you generating the sequences of tetronimos? There are rules for proper generation that you might not be aware of. A little more of an advance preview window would be nice as well.

I look forward to seeing what you do with puyo. It's a more interesting game than tetris imo. Very hard to learn how to effectively set up those chains.
Ahhh.. I'm so happy chili replies this thread, Anyways, for the movement I wonder how to count how many times the user presses a button? The movement is a modification version of Snake game from the tutorial. For the generating the sequences of tetromino, I just randomly pick one. Do they have proper rules? An advance preview window means more "next" pieces?
I take Sega Arcade Tetris as reference https://www.youtube.com/watch?v=wNhMmCMtRdU&t=7s so the next piece just one 8-)

Re: My first game!

Posted: February 9th, 2020, 7:23 am
by chili
For the inputs, you want to use an event-driven system. The keyboard/mouse already supports events, you just loop through all events every frame and process the ones you're interested in.

The rules for tetronimo is, every 14 tetronimos you will see each type twice. So generate a sequence of each type 2x and then shuffle it. It prevents situations where you never get, for example, I piece. Or where you get too many of the same piece in close succession.

Re: My first game!

Posted: March 30th, 2020, 12:11 am
by WilsonHuang
I found a bug. The link has been updated.

Re: My first game!

Posted: April 4th, 2020, 12:54 pm
by perpetual
Great work man. I typically not a tetris player, but I played a game of it and was had a surprising amount of fun. It was probably because it's easier than traditional tetris? really good work, and it has me wanting to make a tetris clone now... lol

Re: My first game!

Posted: April 19th, 2020, 10:48 am
by krautersuppe
Damn i hoped i would beat your scoreboard array but it was longer than i initially thought :p
tetris_wilson_huang.png
(101.64 KiB) Not downloaded yet

Re: My first game!

Posted: April 20th, 2020, 6:02 am
by WilsonHuang
krautersuppe wrote:
April 19th, 2020, 10:48 am
Damn i hoped i would beat your scoreboard array but it was longer than i initially thought :p
tetris_wilson_huang.png
The max score is 999999 :D :D

Re: My first game!

Posted: April 20th, 2020, 6:13 am
by WilsonHuang
Oh sh*t! Thanks to krautersuppe, I found the score counting bug. The link has been updated!

Re: My first game!

Posted: April 20th, 2020, 10:36 am
by WilsonHuang
krautersuppe wrote:
April 19th, 2020, 10:48 am
Damn i hoped i would beat your scoreboard array but it was longer than i initially thought :p
tetris_wilson_huang.png
This is my score. You are batter than me XD
Tetris.png
(37.36 KiB) Not downloaded yet