I used Goto in that RockOut game -- this kinda thing:
If XXX = 0 isn't gonna do a damn thing here! Yes, it 'should' be done in other ways, but it's a piddly little game and this works nicely... and that's what matters.
Having the option to be a lazy programmer is a key part of Blitz as far as I'm concerned!
#LABEL ' Reset game... lives = 5 shields = 100 Repeat Cls ' BLAH BLAH BLAH... If energy < 0 Then Goto LABEL Flip Until KeyHit (KEY_ESCAPE)
If XXX = 0 isn't gonna do a damn thing here! Yes, it 'should' be done in other ways, but it's a piddly little game and this works nicely... and that's what matters.
Having the option to be a lazy programmer is a key part of Blitz as far as I'm concerned!