ÎÌÌÌ̈ˆˆ¬ªªª¬ˆˆˆ¬ÌÌ̬ÌÀ̬ÌÀ̬ÌÀÌÌÌìÌÀÀî̬ÀÌÀ¬ÀÀÀ¬ÀÀÀ¬ÀÀÎÌÌÌ̈ˆˆ¬ªªª¬ˆˆˆ¬ÌÌ̬ÌÌ̬ÌÀ̬ÌÀÌÌÌìÌÀÀî̬ÀÌ̬ÀÀÀ¬ÀÀÀ¬ÀÀ¬ÌÌ̬ªªª¬ª¬ª¬ªÊ̬ªªªŒˆˆˆÌÀÌÎÌÌÎ̬̪ªÀ쬪ÀÀÀÌîÀìîÌÌîî¬ÌÌ̬ªªª¬ª¬ª¬ªÊ̬ªªªŒˆˆˆÌÀÌÎÌÌÎ̬̪ªÀ쬪ÀÀÀÌîÀìîÌÌîî >'@D@@@D@@@@@@@@@@@@@@D@@@D@@DÀ-- title: total loss of impulse control -- author: Callisto Ashley -- desc: god cannot stop me -- script: lua textX=3 textY=3 textXVel=1 textYVel=1 xMin=0 xMax=225 -- instead of 240 so it sorta looks like the far right D is bouncing the text yMin=0 yMax=130 textColour=4 function TIC() cls(0) print("DVD", textX, textY, textColour) -- call functions MoveText() ClampPositionCheck() end function MoveText() --move the text textX=textX+textXVel textY=textY+textYVel end -- check whether the text is about to go off screen function ClampPositionCheck() local changed=false -- too far left? if textX<=xMin then textXVel=1 textYVel=RandomVelocity() changed=true end -- too far right? if textX>=xMax then textXVel=-1 textYVel=RandomVelocity() changed=true end -- too far up? if textY<=yMin then textYVel=1 textXVel=RandomVelocity() changed=true end -- too far down? if textY>=yMax then textYVel=-1 textXVel=RandomVelocity() changed=true end -- change the text colour if the text bounced if changed then ChangeTextColour() end end -- function to pick a random velocity function RandomVelocity() local ran=math.random(1,2) if ran==1 then return -1 else return 1 end end -- function to randomize the text colour function ChangeTextColour() local ran=math.random(1,4) if ran==1 then textColour=2 elseif ran==2 then textColour=4 elseif ran==3 then textColour=5 else textColour=9 end end