How to program a BreakOut Clone using BlitzMax

BlitzMax Forums/BlitzMax Tutorials/How to program a BreakOut Clone using BlitzMax

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.

not so sure about this one:
        Rotation :+ 10
        If Rotation >= 360 Then Rotation=0


Wouldn't it be more flexible to use 'MOD 360'? This 'Rotation=0'-thing only works when the rotation deltas will eventually match 360 exactly, if you use another delta (for the sake of variation or experimenting) and a delta hits something like 366 then 'Rotation=0' results in a small jump.. (correct new value should be 6 then, not 0!)

In the ideal case the user uses my Box function from the code-archives, then also negative deltas can be used! (-2 wraps to 358 then) :P