Dark Bit Factory & Gravity
PROGRAMMING => Other languages => Blitz => Topic started by: Clyde on September 27, 2006
-
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.
-
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...
-
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
-
Cheers and thanks to you both :)
And I'll sure come back with any questions.
Ta,
Clyde.