Posted: 10th Aug 2011 17:41
I would like to make a game in AppGameKit that uses a tiled background. Would the best way to do that be using sprites (one for each tile), or one big sprite for the background, or is there some other way to do that in AppGameKit?

I need to have collision but it doesn't need to be pixel collision.


Thanks.
Posted: 10th Aug 2011 17:51
I think it should be ok to have a big sprite, tiled with your image, just by setting the UV coordinates to extend beyond the normal limit. With that, it would be possible to scroll the image and scale it, rotate it - sprite UV coordinate hacks will be used quite a lot I think.

For collision, I would add polygons, like make the sprite a physics object, then add a sequence of lines to setup the collision detection.
Posted: 10th Aug 2011 18:23
Thanks Van B.

I'll give it a try in 5 days.
Posted: 10th Aug 2011 18:34
For backgrounds I'm actually doing both.

For the first few levels I have a very large background that will move slowly as the player moves around.

For the remaining levels, the background is all tiles. There's no physics or collision on anything but the added sprites in the foreground that are the ground/floor, and other obstacles.