I am a total n00b at BlitzMax. What I really can't stand is how the code will seemingly be perfect, yet something is wrong with it (to make matters worse, I seemingly can't debug line-by-line like before...I gotta compile it in 'debug mode' first.)
For one thing, I cannot see anything save for a blank window, so I cannot do much at all now can I? This problem reared its thoroughly unpretty head at me before, but I realized I could ward it off by properly putting "flip" at the end. Worked fine for text (and a single sprite, albeit one with its ugly magenta mask color still on despite obvious SetMaskColor definition prior, but that's a later story for a later post.)
The "blank window" issue came back up when I coded this:
Please bear with me, I am trying to learn BlitzMax as fast as I can :(
For one thing, I cannot see anything save for a blank window, so I cannot do much at all now can I? This problem reared its thoroughly unpretty head at me before, but I realized I could ward it off by properly putting "flip" at the end. Worked fine for text (and a single sprite, albeit one with its ugly magenta mask color still on despite obvious SetMaskColor definition prior, but that's a later story for a later post.)
The "blank window" issue came back up when I coded this:
'so simple and lazy, I won't really bother to comment this piece of crap... Graphics 640,480,0 w = 10 h = 10 xpos = 320 ypos = 240 '*** Main Loop *** While Not KeyHit(KEY_ESCAPE) 'moving stuff 'move LEFT If KeyDown(KEY_LEFT) Then xpos = xpos - 1 EndIf 'move RIGHT If KeyDown(KEY_RIGHT) Then xpos = xpos + 1 EndIf 'move UP If KeyDown(KEY_UP) Then ypos = ypos - 1 EndIf 'move DOWN If KeyDown(KEY_DOWN) Then ypos = ypos + 1 EndIf 'drawing stuff SetOrigin xpos,ypos SetColor 0,255,0 DrawRect xpos,ypos,w,h Cls Flip Wend
Please bear with me, I am trying to learn BlitzMax as fast as I can :(