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 / help with screen display and bitmaps

Author
Message
koolaid
22
Years of Service
User Offline
Joined: 26th Jan 2003
Location: Cyberspace
Posted: 1st Jul 2003 20:23
do you have to set the display mode on the computer also for my bitmaps images i need them to fit the screen its 512 by 512 how do fix it without changing the image size in my 2d program????
KOOLAID
Ag3ntSm1th
22
Years of Service
User Offline
Joined: 13th May 2003
Location:
Posted: 1st Jul 2003 20:35
id suggest leaving screen res alone and just scale the sprite.

scalevalue=(yscreenres/512)

scale sprite (s#), scalevalue

(for correct position)
xpos=(xscreenres-512)/2
ypos=0

use those and it doesnt matter what res the screen is; sprite will fit top to bottom and leave room on each side. that's all i can suggest and still have it be easy.

"The secret to creativity is knowing how to hide your sources." - Einstein
my DarkBasic creations - http://www.sixurbanninjas.tk

Login to post a reply

Server time is: 2025-05-19 04:40:48
Your offset time is: 2025-05-19 04:40:48