So put bluntly, here is my problem: This works...
SuperStrict
Graphics 800, 600
Global IBlock:TImage = LoadImage("Sprites\block.png")
While Not KeyDown(KEY_ESCAPE)
DrawImage(IBlock, 20, 20)
Flip
WEnd
And this does not, it just throws Unhandled Exception:Attempt to access field or method of Null object.
SuperStrict
Graphics 800, 600
IncBin "Sprites\block.png"
Global IBlock:TImage = LoadImage("incbin::Sprites\block.png")
While Not KeyDown(KEY_ESCAPE)
DrawImage(IBlock, 20, 20)
Flip
WEnd
EDITS: Scratch that, I found the problem: I needed to import brl.basic. Thanks for NOT making that clear bmx manual. I mean, if incbin is listed under brl.blitz, I expect to need only to import brl.blitz to use incbin. Otherwise it breaks the whole concept of the modules and including.
Sheesh.
|