Some things that might be useful.
Dark palette
Usage:
l: how strong the darkness effect should be
dpal={0,1,1,2,1,13,6,2,4,9,3,13,5,2,9} function dark(l) l=l or 0 if l>0 then for i=0,15 do col=dpal[i] or 0 for a=1,l-0.5 do col=dpal[col] end pal(i,col) end end end |

Circle map
Usage:
x,y: coordinates to draw the map
r: radius of the map to draw
function circmap(x,y,r) for y2=-r,r do x2=sqrt(abs(y2*y2-r*r)) tline(x-x2,y+y2,x+x2,y+y2,(x-x2)/8,(y+y2)/8) end end |

Can be used with dark palette to make a light:


P#79480 2020-07-17 07:00 ( Edited 2020-12-01 08:11)
[Please log in to post a comment]