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 / Need help with fighting game

Author
Message
Pyro gamesta
20
Years of Service
User Offline
Joined: 28th Apr 2005
Location:
Posted: 29th Apr 2005 14:40
I'm sorta new to darkbasic and i cant figure out where and how to put a background image,and an mp3 file correctly in my code.

can some please help
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 29th Apr 2005 17:59
Something like this would be a good start perhaps...

Load bitmap "title.bmp",0
Load music "title.mp3",1 : loop music 1
Wait key

You should really have a little Do...Loop section and have it doing something else too, even just a scrolling message - but there's plenty performance left over with just displaying a bitmap and playing an .mp3. Note that it loads title.bmp as bitmap 0 - the screen, so it should be a bitmap at the same resolution as your app runs in.


Van-B

Quote: "How could I condescend you?, you don't even know what it means!"

Van-B's mom.

Login to post a reply

Server time is: 2025-05-23 11:52:04
Your offset time is: 2025-05-23 11:52:04