Transpetris - My first PureBasic program

Everything else that doesn't fall into one of the other PB categories.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8453
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Transpetris - My first PureBasic program

Post 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
Last edited by netmaestro on Wed Dec 08, 2010 5:39 pm, edited 1 time in total.
BERESHEIT
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

Good heavens man, I've always admired that item.

Many many thanks.
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Post by Mistrel »

I made a high score of 8125. I love Tetris!
Dare
Addict
Addict
Posts: 1965
Joined: Mon May 29, 2006 1:01 am
Location: Outback

Post by Dare »

Amazing. What can I say?

Awesome - and thank you!
Dare2 cut down to size
User avatar
djes
Addict
Addict
Posts: 1806
Joined: Sat Feb 19, 2005 2:46 pm
Location: Pas-de-Calais, France

Post by djes »

Another really well done tetris! 8)
Denis
Enthusiast
Enthusiast
Posts: 790
Joined: Fri Apr 25, 2003 5:10 pm
Location: Doubs - France

Post by Denis »

Excellent

Thank you
A+
Denis
#NULL
Addict
Addict
Posts: 1504
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

Post by #NULL »

nice :D , scored 14635 8)
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

Looks great :D. 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!
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Post by Rook Zimbabwe »

Great!!! You speleld colors wrong :wink:

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!!!
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Won't you get a big advantage if you adjust repeat delay in the control panel?
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8453
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post 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.
BERESHEIT
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

For moving bricks sideways quickly.
User avatar
J. Baker
Addict
Addict
Posts: 2196
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: Transpetris - My first PureBasic program

Post by J. Baker »

Is this a true transparent screen or is it capturing the desktop at its current location?
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8453
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: Transpetris - My first PureBasic program

Post by netmaestro »

It uses a layered window. Capturing the background would be way too slow and choppy.
BERESHEIT
User avatar
J. Baker
Addict
Addict
Posts: 2196
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: Transpetris - My first PureBasic program

Post 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.
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
Post Reply