|
FreakOut!
Sept 18, 2021 6:33:12 GMT
via mobile
Post by KindWiz424 on Sept 18, 2021 6:33:12 GMT
I’m writing a program called FreakOut! that needs some work. I have here a single dot which I plan to turn into many dots to create a firework, that you can press the lights on to make more fireworks
-freakout!-- draw.setscreen ( 1 ) draw.settitle( "FreakOut!" ) draw.showtitle( true ) draw.clear(draw.black) width, height = draw.getport() y = height/2 x = width/2 draw.point( x, y, draw.white ) while x < width or y < height do x = x + 1 y = y + 1 draw.moveto(x,y) end sleep( 10000 )
so far the pixel is stuck in the middle what did I do wrong? Plz tell
|
|
|
Post by Admin on Sept 18, 2021 14:59:34 GMT
-freakout!-- draw.setscreen ( 1 ) draw.settitle( "FreakOut!" ) draw.showtitle( true ) draw.clear(draw.black) width, height = draw.getport() y = height/2 x = width/2 —draw.point( x, y, draw.white ) while x < width or y < height do x = x + 1 y = y + 1 draw.point(x, y, draw.white) sleep(100) end sleep( 10000 )
|
|
|
FreakOut!
Sept 18, 2021 21:29:59 GMT
via mobile
Post by KindWiz424 on Sept 18, 2021 21:29:59 GMT
y=-y is somewhere in your programming the point is moving the wrong way is this intentional or?
|
|