Boulder Dash TTJ
Boulder Dash TTJ
My 7th annual #TweetTweetJam entry is: Boulder Dash TTJ ๐
An attempt to demake the classic Boulder Dash in just 560 chars, using NO art assets!
CONTROLS
- โฌ๏ธโฌ๏ธโฌ ๏ธโก๏ธ = Move
FEATURES
- ๐ฒ RND Cave Levels
- ๐ SFX
- ๐ Dodgy Collision & Physics*
- ๐ Diamond Score
- ๏ธโป๏ธ Auto-Restart on Death (and Win)
*(Alas, I could only fit in basic collision & gravity - so no object "spill over", no boulders pushing and no explosions - sorry! ๐)
GAME ORIG SOURCE CODE (560 chars)
s=mset g=mget x=2y=3t=0z=0k=0cls()?"์โโโโ\#5::",17,2 ?"\#4โ\vhโ",8,2,0 ?"๐ฑ",17,0,5 memcpy(0,6^13,โค)::_::cls()s(x,y,0)a=x b=y p=btnp()a+=p\2%2-p%2b+=p\8%2-p\4%2c=g(a,b) if(c<4)x,y=a,b if(c==3)z+=1?"\aszx5e1" if(z>8)s(15,9) s(x,y,2)for i=0,239do v=16-i\16h=i%16if t<1then c=rnd{0,1,1,1,1,1,1,1,3,4} if(h<1or h>14or v<3or v>15)c=7 s(h,v-1,c)elseif t%3==0then c=g(h,v)d=g(h,v+1) if(c>2and c<5and d<1)s(h,v+1,c+2)s(h,v) if c>4and c<7then if d<1then s(h,v+1,c)s(h,v)elseif d==2then run()else s(h,v,c-2)end end end end map()?"\^w9โ"..z flip() if(x>14)run() t+=1goto _
Comments
Log in with itch.io to leave a comment.
Another two-tweet stunner. Kudos!
If you did this with really verbose variables and comments as a "real cart" (but with no more fidelity/complexity), it might be a good instructive cart for beginning coders...
Thank you, Tom ๐
Ooh.. that's a good idea Tom, thanks.
I planned to do my usual code walkthrough post, but it didn't occur to me to potentially use this as something for beginners also (albeit with less "hacks" this one needed! ๐). I'll think on that idea more. ๐
Cool, yeah, because simple tile-by-tile movement games reduce complexity a lot. Like Dylan Bennett's Top Down Adventure Tutorial. Much simpler than a lot of games. Easy to explain. Anyway, much more involved than my TweetTweet games heh!
Just incredible. Well done!
Thanks a lot! ๐