Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / can't make desired game because....

Author
Message
Mr Inquisitive
20
Years of Service
User Offline
Joined: 5th Feb 2005
Location: Who Cares?
Posted: 13th Mar 2005 03:07
I was trying to program a card game, and after typing in most of the programming I realized that i can only use 31 bitmaps. Is there a way to load all my bitmaps without going over the 31 limit?(is there any way aroung this?)

SCOTTY POWER!!
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 13th Mar 2005 04:17 Edited at: 13th Mar 2005 04:21
images, you can have a few million of them...that enough?
look em up in da help, you only use bitmaps for stuff you want to modify in realtime, use images for the rest.

Mentor.

PC1: P4 3ghz, 1gig mem, 3x160gig hd`s, Radeon 9800pro w cooler (3rd gfx card), 6 way speakers.
PC2: AMD 2ghz, 512mb ram, FX5200 ultra, 16 bit SB.
Mini ATX cases suck.
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 13th Mar 2005 04:18
Theres no way you could need 31 bitmaps, use images instead.


"Lets migrate like bricks" - Me
Mr Inquisitive
20
Years of Service
User Offline
Joined: 5th Feb 2005
Location: Who Cares?
Posted: 13th Mar 2005 07:50
thanks....

SCOTTY POWER!!
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 13th Mar 2005 07:58 Edited at: 13th Mar 2005 07:59
Just incase, I'll explain further.

For loading the images use load image(make sure you remember to set the texture flag to 1 otherwise the image is likely to get resized) then I'm guessing you know how to put images on the screen(either with sprites or paste image).

load image "myimg.bmp",1,1

Don't know how much of DB you know, so I'm not sure how to explain it anymore than that.


"Lets migrate like bricks" - Me
David R
21
Years of Service
User Offline
Joined: 9th Sep 2003
Location: 3.14
Posted: 13th Mar 2005 23:03 Edited at: 13th Mar 2005 23:03
So what is actually the difference?
[Between]

load bitmap <file$>,<number>

and

load image <file$>,<number>,<texture flag>


[href]www.LightningStudios.co.uk[/href]
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 13th Mar 2005 23:08 Edited at: 13th Mar 2005 23:12
One loads a bitmap, one loads an image.

Images can be used directly for sprites, or pasting to the screen, but you can do drawing operations on the bitmaps.


"Lets migrate like bricks" - Me

Login to post a reply

Server time is: 2025-05-30 16:55:17
Your offset time is: 2025-05-30 16:55:17