Feedback wanted on code style

BlitzMax Forums/BlitzMax Beginners Area/Feedback wanted on code style

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Thanks Brucey :)

I like the until option. I must have missed it in the doco.

Yeah the 'if' syntax is a bit open to preference - the other option I was considering was along the lines of:


If KeyDown(KEY_UP) 
   starfield1.MoveUp()
ElseIf KeyDown(KEY_DOWN) 
   starfield1.MoveDown()
ElseIf KeyDown (KEY_LEFT) 
   starfield1.MoveLeft()
ElseIf KeyDown (KEY_RIGHT) 
   starfield1.MoveRight()
EndIf



but I wasn't sure about readability.