• Welcome to Dark Bit Factory & Gravity.
 

BMAX: How do you know what to include.[BMAX]

Started by Clyde, September 27, 2006

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Clyde

I've had BMAX since around the day of release, and am about to re-install it after my PC Conundrumns. I have done a little bit of stuff with it; and it's majorly different from any previous Blitz flavours, a little lacking in the manual department.

But what Im really unsure of and am stuck on, is what libraries to have included for final executables & and how you implement including them? Also im in need of assistance on how to use image resources that are contained in the EXE; as I dont understand how it all works.

Cheers and many thanks,
Clyde.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.


Challenge Trophies Won:

Dad1916

Unless you are using a library like fmod you don't need to include any with the executable. To include "attachements" with your executable use the incbin command. Here is an example:

Incbin "macstartup.ogg"
Incbin "images/boot.png"
Incbin "images/blankboot.png"
Incbin "images/apple.png"

HideMouse()
Graphics 1024,768,32
SetColor 255,255,255
Local Counter:Int

While Not KeyHit(Key_Escape)
bootsequence()

Wend





Function BootSequence()
startup = LoadSound ("incbin::macstartup.ogg")
bootpic=LoadImage("images/boot.png")
blankboot=LoadImage("images/blankboot.png")
apple=LoadImage("images/apple.png")
...............

Any other questions just ask...

TinDragon

If your talking about the framework and import of only need modules then I recommend Framework Assistant as it will scan your source and give you a piece of code with the right setup code. It isnt flawless however as I cant get it to work for the framebuffer lib but it is the first problem I have had and it helps reduce the exe size to more realistic sizes.

http://homepage.ntlworld.com/config/fa/index.htm

Clyde

Cheers and thanks to you both :)
And I'll sure come back with any questions.

Ta,
Clyde.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.


Challenge Trophies Won: