I am very new to using PICO-8 but I took an example from the manual and modified it so that not only can the circle be moved around but it can also be made bigger or smaller. It might not look impressive to some people but this could be the foundation of making other kinds of games because I only need to modify what happens when the 6 standard buttons are pressed.
function _update()
if (btn(0)) then x=x-1; end
if (btn(1)) then x=x+1; end
if (btn(2)) then y=y-1; end
if (btn(3)) then y=y+1; end
if (btn(4)) then r=r-1; end
if (btn(5)) then r=r+1; end
end
function _draw();
cls(0);
circfill(x,y,r,7);
end



Hi @chastitywhiterose :
Be aware we have the new command oval()
and ovalfill()
now for some interesting effects that circ()
and circfill()
cannot do.

cls() for i=0,15 do oval(rnd(128),rnd(128),rnd(128),rnd(128),rnd(15)+1) end |
oval(x1,y1,x2,y2,color)
x2 and y2 are not sizes but screen coordinates.



That's cool. I usually do circles but not every language has built in ovals like that.



You could do it the hard way, @chastitywhiterose. :)
[Please log in to post a comment]