Back to carts Reset Reset Pause Pause Fullscreen Fullscreen Toggle Sound Sound

This is one of my favourite methods of island generation, mainly because of it's simplicity.
Each loop, a cursor is moved in a random direction and a green pixel is placed at its position.
Once the cursor hits the screen bounds, it stops.

And that's it!

For extra flair I'm saving the screen data at the end of this process to the spritesheet so that we can draw it again in different colours, giving the illusion of depth.

I have a slightly more fleshed out version of this cartidge here if you'd like to see more islands like this.

Cartridge code (279 chars):

x=64y=64p=pal
function s(y)sspr(0,y,128,128)end
cls(12)f=flip::★::x+=rnd(2)-1y+=rnd(2)-1pset(x,y,3)
if(rnd(1)>0.99)f()
if x>=127or x<=0 or y>=127 or y<=0 then
memcpy(0x0,0x6000,8192)
cls(12)palt(12,true)p(0,12)p(3,4)
s(0)p(3,3)s(1)p(3,11)s(2)for i=0,50 do f()end
run()
end
goto ★