Skip to content

Latest commit

 

History

History
34 lines (32 loc) · 481 Bytes

tic-80.md

File metadata and controls

34 lines (32 loc) · 481 Bytes

Day 3

A chequerboard in shades of blue scroling up with a white Z£03 text in the centre

t=0
s=10
w=240
function TIC()
for i=0,w*136 do
x=i%w
y=i//w
v=y-t
pix(x,y,8+(x//s+v/s)%2)
end
print("Z303",108,64,12)
t=t+1
end

and a formatted version

t=0
s=10
w=240
function TIC()
    for i=0,w*136 do
        x=i%w
        y=i//w
        v=y-t
        pix(x,y,8+(x//s+v/s)%2)
    end
    print("Z303",108,64,12)
    t=t+1
end