Skip to main content

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

TweetTweet SfxGenView project page

A Pico-8 Sfx generator
Submitted by RhizGames (@RhizomaticWar) — 4 days, 3 hours before the deadline
Add to collection

Play tool

TweetTweet SfxGen's itch.io page

How many characters of code did you use?
552

Include your code here, if you'd like to show it off!
g={rnd(256)\1,rnd(256)\1,4,4,0}r={"pow","mod","spd","len","sfx"}u=1b=btnp::_::
if(b(2))g[u]+=1
if(b(3))g[u]-=1
if(b(0))u-=1
if(b(1))u+=1
u=mid(u,1,5)g[4]=mid(g[4],1,32)n=12800+68*g[5]poke(n+65,g[3])for i=n,n+g[4]*2-1do poke(i,(i*2-1)^g[1]%g[2])end
if(b(4))sfx(g[5])
for i=n+g[4]*2,n+64do
poke(i,0)end
?"🅾️play ❎copy",36,18,6
for k=1,5do
?r[k],k*20,0,k+10
?g[k],k*20,8
end
?"⬇️ ⬆️",u*20-8,8,u+10
s="n=12800+"..68*g[5].."poke(n+65,"..g[3]..")for i=n,n+"..g[4]*2-1 .."do poke(i,(i*2-1)^"..g[1].."%"..g[2]..")end"
if(b(5))printh(s,"@clip")
flip()cls()goto _

Leave a comment

Log in with itch.io to leave a comment.

Comments

DeveloperSubmitted

and the code for the version that copies all 64 sfx:

g={rnd(256)\1,rnd(256)\1,4,4,0}r={"pow","mod","spd","len","sfx"}u=1b=btnp::_::
if(b(2))g[u]+=1
if(b(3))g[u]-=1
if(b(0))u-=1
if(b(1))u+=1
u=mid(u,1,5)for z=0,63do n=12800+68*z poke(n+65,g[3])for i=n,n+g[4]*2-1do poke(i,(i*2-1)^g[1]%g[2])end
for i=n+g[4]*2,n+64do
poke(i,0)end
end
if(b(4))sfx(g[5])
?"🅾️play ❎copy",36,18,6
for k=1,5do
?r[k].."\n"..g[k],k*20,0,k+10
end
?"⬇️   ⬆️",u*20-8,8,u+10
s="for z=0,63do n=12800+z*68poke(n+65,"..g[3]..")for i=n,n+"..g[4]*2-1 .."do poke(i,(i*2-1)^"..g[1].."%"..g[2]..")end end"
if(b(5))printh(s,"@clip")
flip()cls()goto _