Stand-alone executable ?

BlitzMax Forums/BlitzMax Programming/Stand-alone executable ?

Twinprogrammer(Posted 2011) [#1]
I was just wondering if Blitz Max , can make a stand-alone executable ,
because when I play my game , it gives me a "Windows Access Violation" error when I test it on another computer. I think it's because my images aren't included with the game. Can it make a stand-alone executable ? If so , how do I make one ?

Twinprogrammer


xcessive(Posted 2011) [#2]
Incbin "images/img1.png"
Local img:TImage=LoadImage("incbin::img1.png")


Twinprogrammer(Posted 2011) [#3]
What does incbin mean (sorry , i'm a noob:D )?


therevills(Posted 2011) [#4]
From the docs:


Rem
IncBin embeds an external data file in a BlitzMax program that can
then be read using the "incbin::" device name.
End Rem

' code snippet from demos/firepaint/firepaint.bmx

Incbin "stars.png"

Local stars=LoadImage( "incbin::stars.png" )





xcessive(Posted 2011) [#5]
Lets you basically embed resources as part of an executable.


Twinprogrammer(Posted 2011) [#6]
Cool , thanks !

Last edited 2011