PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Blitting beyond the screen size?

Technically, is it safe to blit a sprite at x = -32 and y = -32? For blitting greater than 320x240, I can set the SetClipper feature but how about less than zero coordinates? It works on my pocket pc, however I'm not sure if I need to have my app tested on different devices just to confirm.

Thanks in advance!

- Erick
It works on every ppc device we've tested it on. Since the Clipper is integral to GapiDraw, there's no reason it shouldn't work correctly across all devices and platforms.

I've been gradually ripping all of the clipping code out of the RaptureEngine and its been working flawlessly.
My current project does things like this quite a bit (slight overlaps beyond the "boundaries" of a surface to do scrolling and such). I've seen no problems in any direction where the clipper didn't do it's job properly.
It's also very nice to be able to set an arbitrary viewport and not have to worry about clipping.
Absolutely! I've used that capability a number of times already. I find that the biggest thing it does it it makes scrolling anything almost a trivial matter. I mean, you want to do one of those way-cool (sarcasm there) diagonally-scrolling backgrounds for your main menu screen? Easy enough... make a tileable image, say 80x80, and draw them all over the screen, but draw one extra row ABOVE the screen and one extra tile in each row to the RIGHT of the screen (i.e., a grid of tiles 4x5 starting at 0, -80). Then, offset all the images by -1 horizontally and +1 vertically every frame. When you've done that 80 times, reset your offset to 0 and start again. You can do this over the entire screen or an arbitrary sub-section of the screen just by adjusting the clipping viewport. Very cool. Nothing Earth-shattering, but nice and easy, and I like that!
Thanks for the confirmation guys! That's exactly what I've been doing for my tile engine. I'd like to have a dynamic viewport and take advantage of gapidraw's clipping capabilities. It works seamlessly now on my pocket pc and I guess I don't have to worry about device compatibility any sooner. :)

GR: I've also managed to make gd work full screen on my PC (thanks for your help on that!) while maintaining a 320x240 screen size when compiled for the Pocket PC. I also hope that everything's going well on your rapture engine. Now, I'll just need some budget to invest on a symbian device... :)

Frank: Yeah, a scrolling/moving tiled background is very cool. I'd like to do that to one of my games soon. :) How's your game going btw?
How's my game going? SLOWLY! I was originally targeting January 1st for release, but now it's looking like "some time in February, maybe March".

All things considered, it's going pretty well though. I have 23 mini-games complete (except for sound effects and some final graphics) and another 5 close to completion. I've kind of settled on 35 in total (plus I have plans for 5 hidden games... oops, gave that one away :)). The adventure portion of it I have to admit has gotten scaled back quite a bit, but not really in a way that detracts from overall gameplay. After all, the mini-games are what it's all about in the end, the adventure portion is just the glue that munged them all together. Some aspects of it may creep back in near the end though, depending on time.

No major problems to report, things are more or less working as they should (save for one VERY annoying problem with robots moving into walls... Argh, that was a pain to track down!) I just wish I had more time to devote to it. The 30 minutes a night (well, MOST nights anyway) means I can make progress, but very slowly.

So, if you were holding out for K&G; Arcade as a Christmas present, I suggest getting the Battlestar Galactica box set instead :) I'd recommend that regardless come to think of it. But still, some time fairly early next year looks likely. Hopefully this one doesn't completely bomb like Invasion: Trivia did, but we'll see. If nothing else I can absolutely say it has been a fantastic learning experience and I'm really rather proud of how it's turning out, so whether anyone else winds up liking it or not, it'll have been time well-spent.