200byteDemoChallenge!

BlitzMax Forums/BlitzMax Programming/200byteDemoChallenge!

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.

A graphical one from me. 248 bytes.
MouseX controls the green color.

p=512Graphics p,p
p:/2e#=-.0007While 1If Int(m#)&p a=Rnd(1,7)d=Rnd(6)e=-e
m:+e
n#:+.1r:+a
b:+d
If r&p a=-a;r:+a
If b&p d=-d;b:+d
If n>=360n:-360Flip 0If KeyHit(27)End
SetColor r,MouseX()/2,b
DrawRect p+Cos(n)*m-33,p+Sin(n)*m-33,63,63
Wend