Transpetris - My first PureBasic program
- netmaestro
- PureBasic Bullfrog

- Posts: 8453
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Transpetris - My first PureBasic program
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
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
- Rook Zimbabwe
- Addict

- Posts: 4322
- Joined: Tue Jan 02, 2007 8:16 pm
- Location: Cypress TX
- Contact:
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!!!
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!!!
- netmaestro
- PureBasic Bullfrog

- Posts: 8453
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Re: Transpetris - My first PureBasic program
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.
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.
- netmaestro
- PureBasic Bullfrog

- Posts: 8453
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Re: Transpetris - My first PureBasic program
It uses a layered window. Capturing the background would be way too slow and choppy.
BERESHEIT
Re: Transpetris - My first PureBasic program
Did you use OpenWindowedScreen()? As I didn't think you could make a game screen transparent.netmaestro wrote:It uses a layered window. Capturing the background would be way too slow and choppy.
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.
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.


