Page 1 of 2
Transpetris - My first PureBasic program
Posted: Tue Nov 27, 2007 3:48 am
by netmaestro
2 1/2 years ago when I purchased PureBasic I had an idea for a variation of Tetris that I wanted to try coding. A lot of the technologies I needed for it were new or unknown to me at the time, as was virtually all of PB, but I was too stupid to know what I couldn't do - so I tried anyway.
What I'm sharing with you today is my first PureBasic project. All the graphics are handmade, the sounds are free downloads from I can't begin to remember where. The coding, as you will see if you look at it, is somewhat noobish and unpolished. But it pretty much works. Here it is, source, graphics, sounds, warts and all:
http://www.lloydsplace.com/transpetris.zip
Posted: Tue Nov 27, 2007 4:11 am
by rsts
Good heavens man, I've always admired that item.
Many many thanks.
Posted: Tue Nov 27, 2007 4:37 am
by Mistrel
I made a high score of 8125. I love Tetris!
Posted: Tue Nov 27, 2007 9:12 am
by Dare
Amazing. What can I say?
Awesome - and thank you!
Posted: Tue Nov 27, 2007 2:40 pm
by djes
Another really well done tetris!

Posted: Tue Nov 27, 2007 2:45 pm
by Denis
Excellent
Thank you
Posted: Tue Nov 27, 2007 2:53 pm
by #NULL
nice

, scored 14635

Posted: Tue Nov 27, 2007 4:12 pm
by Inf0Byt3
Looks great

. It remembers me of the first game I had, a chinese brick-game "console" with 9999999 games in it (even if every 9 times they were repeating themselves). Ah, old times......
Thank you!
Posted: Tue Nov 27, 2007 4:53 pm
by Rook Zimbabwe
Great!!! You speleld colors wrong
No seriously... I went through college earning spending money playing tetris... This is just as good. It even has the same preverse ability to plop too many of those little zig zag shapes and always pick the piecee I don't need... Sheer genius!!!
I do have one serious comment... my complaint is that the down arrow does not just move the piece down faster... I was expecting the spacebar to do that!!! Moving the piece down faster inthe original stages (and some of the latter...) helps me relax!!!
Posted: Tue Nov 27, 2007 7:18 pm
by Trond
Won't you get a big advantage if you adjust repeat delay in the control panel?
Posted: Tue Nov 27, 2007 7:32 pm
by netmaestro
trond wrote:Won't you get a big advantage if you adjust repeat delay in the control panel?
How would that help? The speed of the game is based on hires timers using TimeSetEvent_(, repeat delay plays no part that I know of. Unless I'm missing something.
Posted: Tue Nov 27, 2007 8:27 pm
by Trond
For moving bricks sideways quickly.
Re: Transpetris - My first PureBasic program
Posted: Wed Dec 08, 2010 3:24 pm
by J. Baker
Is this a true transparent screen or is it capturing the desktop at its current location?
Re: Transpetris - My first PureBasic program
Posted: Wed Dec 08, 2010 4:11 pm
by netmaestro
It uses a layered window. Capturing the background would be way too slow and choppy.
Re: Transpetris - My first PureBasic program
Posted: Wed Dec 08, 2010 4:45 pm
by J. Baker
netmaestro wrote:It uses a layered window. Capturing the background would be way too slow and choppy.
Did you use OpenWindowedScreen()? As I didn't think you could make a game screen transparent.