UnderwareDESIGN

PlayBASIC => Show Case => Topic started by: MudbuG on August 25, 2008, 10:14:36 PM

Title: WIP: Tetris clone
Post by: MudbuG on August 25, 2008, 10:14:36 PM
Here is my first stab at making a game in PlayBasic (Just purchased it a couple weeks ago).  I hope you enjoy it.

There is no scoring, no levels, no sound effects, but it is playable and kind of fun (if you like tetris).  Right, Left arrow keys to move the pieces, up key to rotate, down key to drop a piece.  ESC exits.

Attempting to attach a screenshot... 
BTW, I am no good artist, you may recognize the block images from "2D Graphics Buffet" topic at TheGameCreators, posted by David Gervais a couple years ago. :)

-MudbuG

Title: Re: WIP: Tetris clone
Post by: kevin on August 25, 2008, 10:43:18 PM

That's looking pretty good !  - Don't be afraid to slap a screen shot up though.
Title: Re: WIP: Tetris clone
Post by: MudbuG on September 05, 2008, 09:48:23 AM
I found something strange yesterday... I downloaded this old version and compiled it.  When I try to run the EXE it created, my shapes were positioned wrong.  When I run through the IDE, it works as expected. 

This is a puzzle to me.  I suppose it could be a bug in the version of compiler I am using, or a strange side effect of some variable(s) I am using.  Since this code was posted I started using Explicit and found some things, so maybe that's it.  I have not tried running the EXE from my latest version of the game yet ... and with new compiler.  I will try this soon. 

I am just wondering if anyone else has had some similar experience with compiled EXEs.

-MudbuG
Title: Re: WIP: Tetris clone
Post by: MudbuG on September 06, 2008, 06:36:14 PM
Here is an update.  I fixed the problems that caused the EXE to not work correctly.  I still don't know why it worked when run from the IDE.  Now the game will wait for [spacebar] to start, and you can start a new game after you lose.  Also pieces animate while moving and droping as well as rotating.  All of these animations can be turned off by setting a flag and re-compiling.  Eventually I plan to make these options in the game menu (which does not exist yet).

You can adjust the piece position after it falls, even when you drop it by pressing the down arrow key.  This allows you to fill in gaps left by other pieces.

The speed still does not increase, and no scoring yet.
Title: Re: WIP: Tetris clone
Post by: ATLUS on October 29, 2008, 12:23:50 PM
Nice tetris!!!
Title: Re: WIP: Tetris clone
Post by: monkeybot on October 29, 2008, 08:24:09 PM
Thats very nice..cool