This cartridge works as a nice example of how to draw 3D objects by layering sprites on top of each other.
I worked on this technique more in the passing days to create a very rough
pseudo voxel tech demo which didn't really have the potential for a full project, at least in my view.
If you're a fan of this pseudo 3D effect, I highly recommend checking out
spritestack.io for some excellent examples of what's possible using such a simple rendering technique.
Cartridge code (277 chars):
e={4,4,2,1,3,11}
function _draw()
⧗=t()/2
cls(5)
s=sin(⧗)
c=cos(⧗)
f=s*s+c*c
w=6.66
for y=-w,w do
for x=-w,w do
a=(s*y+c*x)/f+4
b=(-s*x+c*y)/f+4
if a<8 and a>0 and b>0 and b<8 then
for y2=1,6 do
for z=1,7 do
for i=1,#e do
pset(x+z*16,y2*24+y-i,e[i])
end
end
end
end
end
end
end