Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
A jam submission

tweet sandView game page

A falling sand game in less then 560 characters of code
Submitted by end_sub — 4 days, 1 hour before the deadline
Add to collection

Play game

tweet sand's itch.io page

How many characters of code did you use?
507

Include your code here, if you'd like to show it off!
i,g,h,w,a=0,30,60,btn,{} for x=0,128 do a[x] = {} for y=0,128 do a[x][y] = 0 end end function b() cls(0) for x=128,0,-1 do for y=128,0,-1 do if(a[x][y] == 1)then if a[x][y+1] == 0 then a[x][y] = 0 a[x][y+1] = 1 elseif a[x+1&127][y+1] == 0 then a[x][y] = 0 a[x+1&127][y+1] = 1 elseif a[x-1&127][y+1] == 0 then a[x][y] = 0 a[x-1&127][y+1] = 1 end pset(x,y,10) end end end end function _update() if(w(0))then g-=1&127 end if(w(1))then g+=1&127 end if(w(4))then a[g][h] = 1 end if i==1 then b() i=0 end i+=1 end

Leave a comment

Log in with itch.io to leave a comment.

Comments

No one has posted a comment yet