My first game!

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
WilsonHuang
Posts: 22
Joined: February 13th, 2019, 3:23 am

My first game!

Post by WilsonHuang » February 6th, 2020, 2:00 am

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/#!cJ9iHChI!uF6aHEzlSbEQ ... LqbScJXS0Y

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

User avatar
chili
Site Admin
Posts: 3894
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: My first game!

Post by chili » 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.
Chili

WilsonHuang
Posts: 22
Joined: February 13th, 2019, 3:23 am

Re: My first game!

Post by WilsonHuang » February 8th, 2020, 3:47 pm

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-)

User avatar
chili
Site Admin
Posts: 3894
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: My first game!

Post by chili » February 9th, 2020, 7:23 am

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.
Chili

Post Reply