GLBasic forum

Main forum => GLBasic - en => Topic started by: ampos on 2010-Sep-11

Title: Background pattern
Post by: ampos on 2010-Sep-11
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...

Title: Re: Background pattern
Post by: ampos on 2010-Sep-12
nobody?  :-[
Title: Re: Background pattern
Post by: Moru on 2010-Sep-12
I think it all depends on your hardware, what is better.
Title: Re: Background pattern
Post by: Ian Price on 2010-Sep-12
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]