wrap angle?

BlitzMax Forums/BlitzMax Beginners Area/wrap angle?

Something like this ?
Graphics 800,600,0
Local Angle:Int

Repeat
	Cls

		DrawRect Angle+GraphicsWidth()/2-20, GraphicsHeight()/2-20, 20, 20

		If KeyDown( Key_Right )
			Angle = ( Angle + 1 ) Mod 160
		End If

		If KeyDown( Key_Left )
			Angle = ( Angle - 1 ) Mod -160
		End If

		DrawText  Angle, 5, 5

	Flip
Until KeyHit( Key_Escape )