Log In  

Cart #chastity_circle-0 | 2023-02-18 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

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

P#126013 2023-02-18 03:01

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.

P#126014 2023-02-18 03:56 ( Edited 2023-02-18 03:56)

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

P#126021 2023-02-18 08:27
1

You could do it the hard way, @chastitywhiterose. :)

https://www.lexaloffle.com/bbs/?tid=31905

P#126040 2023-02-19 00:39

[Please log in to post a comment]