cleanup + first 3d attempt! Only works one way for now (going down)
This commit is contained in:
56
first3d.p8
Normal file
56
first3d.p8
Normal file
@@ -0,0 +1,56 @@
|
||||
pico-8 cartridge // http://www.pico-8.com
|
||||
version 42
|
||||
__lua__
|
||||
function _init()
|
||||
|
||||
end
|
||||
|
||||
|
||||
function _draw()
|
||||
cls()
|
||||
x=32
|
||||
y=32
|
||||
w=64
|
||||
h=64
|
||||
txo=xo
|
||||
x1=x
|
||||
for i=0,h-yo do
|
||||
w-=xo
|
||||
x1+=xo
|
||||
tline(x1,i+y+yo,x+w,y+i+yo,0,0)
|
||||
end
|
||||
xo=txo
|
||||
|
||||
end
|
||||
xo=0
|
||||
yo=0
|
||||
x=32
|
||||
y=32
|
||||
w=64
|
||||
h=64
|
||||
function _update()
|
||||
if (btn(⬆️)) then
|
||||
xo+=0.01
|
||||
yo+=.5
|
||||
end
|
||||
if (btn(⬇️)) then
|
||||
xo-=0.01
|
||||
yo-=.5
|
||||
end
|
||||
end
|
||||
__gfx__
|
||||
00000000112211222222222200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00000000112211222222222200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00700700221122112222222200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00077000221122112222222200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00077000112211222222222200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00700700112211222222222200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00000000221122112222222200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00000000221122112222222200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
__map__
|
||||
0101010101010101000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
0101010101010101000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
0101010101010101000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
0101010101010101000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
0101010101010101000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
0101010101010101000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
Reference in New Issue
Block a user