Background pattern

Previous topic - Next topic

ampos

My game has a border, so I loaded it with "loadbmp".

But inside the border, there is a moving background, made with a 24x24 pixels pattern.

What is better, draw/move around 100 24x24 sprites, or create a 600x400 (zone inside the border) background with the pattern on photoshop an move just one big sprite?

DO I explain myself? :)

whatch this video, the background when playing to get the idea...

check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

ampos

check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

Moru

I think it all depends on your hardware, what is better.

Ian Price

#3
Why not try both (small tiles & larger bitmap) on your target platform?

POLYVECTOR is an alternative not mentioned, which could give better results.

[EDIT] now added a very simple project that shows all versions - tiles, large images and polyvectors. I get a better result with polyvector, although there's not that much in it. I'm sure there are ways to optimise this - I did it in about 5 minutes.

I'm not revealing the source, as you wish to use this for a commercial app.

BTW I did a scrolling background like this in B'lox!

[EDIT 2] Forgot to say you can scroll with the cursors.

[EDIT 3] LIMITFPS was set at 6000

On my laptop -
1=1194
2=1101
3=1380

[attachment deleted by admin]
I came. I saw. I played.