Gp2xtong!


Stuckie

Member
Joined
Apr 7, 2004
Messages
492
Age
38
Location
Tired, and sleeping in the basement...
Website
www.stuckieworld.net
This is my (rough) port of TONG!

It's a rather evil little puzzle game where you play both Tetris and Pong on the same grid.
I'm posting it here since I can't seem to get registered on the file archive (well, it registered me, just won't send me an email... grrr.. username is Stuckie, if someone could prod it :) )

Firstly, I play this without a joystick mod.. and I can play for quite a while.. so if you lot complain about it being too hard, then play better.. this is a VERY hard game and demands a lot of concentration.. you've been warned ;)

Some screenies taken via a dodgy webcam on my GP2X:

gp2xtong1.png
gpx2tong2.png

gpx2tong3.png
gpx2tong4.png


The controls are, if you can't be bothered to read the README:
Stick controls the paddles.
A/B moves the tetris block left and right
X drops it
Y rotates clockwise
L and R rotate anti-clockwise and clockwise respectively
Start pauses.

In the menus, X selects and changes things.

There's two versions.
One compiled with theoddbot's precompiled SDL libraries ontop of devkitGP2X (with sound ;) )
The other compiled through ooPo's toolchain with the HW accelerated SDL (without sound, but faster and smoother)

Sourcecode IS included.. though I've mangled it somewhat.. but before you shout at me, look at the original code :blink: I didn't really change that much.

I'll probably release another version once I can get sound/music working with no slow down... and maybe a few more to tweak the gameplay.. other than that, consider this complete :)

http://www.stuckieworld.net/files/games/gp...p2x-tong-v1.zip

Enjoy.... oh and a word of warning.. don't hotlink these files elsewhere... you'll get a _VERY_ nasty surprise if you do :eek: (blame the idiot that was stealing 4GB of b/w a week from me)
 
Enjoy.... oh and a word of warning.. don't hotlink these files elsewhere... you'll get a _VERY_ nasty surprise if you do :eek: (blame the idiot that was stealing 4GB of b/w a week from me)
I've got to ask... just what is this surprise?

I've heard of people using goatse/tubgirl as hotlink prevention before, that's pretty nasty :)
 
Last edited by a moderator:
Enjoy.... oh and a word of warning.. don't hotlink these files elsewhere... you'll get a _VERY_ nasty surprise if you do :eek: (blame the idiot that was stealing 4GB of b/w a week from me)
I've got to ask... just what is this surprise?

I've heard of people using goatse/tubgirl as hotlink prevention before, that's pretty nasty :)
I know that some big company was hotlinking to a pic on a low-bandwidth site on their frontpage. The low-bandwidth site replaced it with an exploded cat.
On-topic: This sounds like a very original game, I expect it's hard :)
 
Last edited by a moderator:
I've got to ask... just what is this surprise?

I've heard of people using goatse/tubgirl as hotlink prevention before, that's pretty nasty :)

Yep.. got it in one...

Someone was using rather large images as Avatars on very popular boards... they were taking over 4GB of bandwidth a WEEK... after trying to contact them to warn them, I got fed up, and redirected everything to one of them.

They certainly stopped hotlinking quickly ;)

I have a list of rules as to where stuff is allowed to be.. anything that's not in there, gets pointed to one of those "lovely" images... evil or not, I just got fed up with paying for a lot of bandwidth I wasn't using (luckily my bandwidth limit is 25gb a month.. but this idiot was using 20gig of it by pinching images from my sites).
 
Last edited by a moderator:
Two things...

1) The included source is incomplete. Specifically, it is missing a makefile.

2) Grabbing the source from the original author (http://www.nongnu.org/tong/) and compiling with the accelerated SDL worked fine without any modifications other than to the makefile. Its slow and choppy, but audio works fine.

Take a look at it. Perhaps you've broken something in your copy of the code.

tong.jpg

The accelerated SDL scales down the 640x480 image nicely, and without needing to modify any code. Very nice!
 
ooPo posted on Feb 3 2006 at 11:20 PM said:
Two things...

The accelerated SDL scales down the 640x480 image nicely, and without needing to modify any code. Very nice!

Would there be a way to re-do the graphics to fit at 1:1 at 320 x 240? It would probably look nicer than cutting down 640 x 480. Could the user do that or are the graphics imbedded in the code?
 
Last edited by a moderator:
It seems to load up a bunch of png files for the graphics. It probably wouldn't be hard to do.
 
ooPo posted on Feb 4 2006 at 06:32 AM said:
It seems to load up a bunch of png files for the graphics. It probably wouldn't be hard to do.

The code would then need to be changed to render at 1:1 then right? Otherwise it would shrink 320 x 240 to 160 x 120.
 
Last edited by a moderator:
DaveC posted on Feb 4 2006 at 06:55 AM said:
ooPo posted on Feb 4 2006 at 06:32 AM said:
It seems to load up a bunch of png files for the graphics. It probably wouldn't be hard to do.

The code would then need to be changed to render at 1:1 then right? Otherwise it would shrink 320 x 240 to 160 x 120.
No, the Hardware Accelerated libraries will take the SetVideoMode resolution and autoscale anything put on the screen (as in SDL_Flip(screen) ) down to 320x240.
 
Last edited by a moderator:
When I originally did the port, I didn't have HW-SDL ... I had emailed the original author to let him know what I was upto.. since I didn't get a reply for about 2 weeks, I released it as it was.

I did say I'd fix the bugs though.. just have some coursework to get done just now so I'm not looking at it till next week at the earliest.

As for the source.. thought I included everything o_0

I didn't include a Makefile as I didn't use one, I created a script to make one out of theoddbot's precompiled SDL (as I was having bother compiling them myself) and a rather early version of HW-SDL that I had at the time of release - but I'd already resized the graphics and converted the sounds to wav. Since my paths are usually rather interesting, I didn't include it.. oops

I'll be fixing things up a bit more next week.. I was just trying to get _SOMETHING_ out :p
 
Back
Top