The trouble with that code is that the Global initialization of player could be executing before the call to Graphics and BlitzMax is unfortunately unable to loadimages when not in a graphics mode.
Try the following maybe to avoid a call to new TSprite before your program is actually running:
Try the following maybe to avoid a call to new TSprite before your program is actually running:
Global player:Tsprite player=New Tsprite