cleanup + first 3d attempt! Only works one way for now (going down)

This commit is contained in:
2025-07-28 00:44:09 +02:00
parent 42bc499746
commit 05dfca2b4c
7 changed files with 670 additions and 181 deletions

BIN
.DS_Store vendored

Binary file not shown.

56
first3d.p8 Normal file
View 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

663
lou.p8
View File

@@ -4,21 +4,35 @@ __lua__
--main --main
function _init() function _init()
printh("init")
cartdata("lou") cartdata("lou")
lou:init() lou:init()
printh("lou age: "..lou.age)
menuitem(1,pauseitems[pauseindex],pauseupdate())
end end
function _update() function _update()
lou.age+=sincelast() lou.age+=sincelast()
if (btn(❎) and btn(🅾️)) cs=1
if (btn(❎) and btn(🅾️) and btn(⬆️) and btn(⬇️) and btn(⬅️) and btn(➡️)) then
lou:reset()
end
if (lcs!=cs) then
state[cs]:init()
end
lcs=cs
savedate() savedate()
state[cs]:update() state[cs]:update()
bgm:loop() bgm:loop()
fc+=1 fc+=1
lou:update()
end end
function _draw() function _draw()
cls() cls()
state[cs]:draw()
end end
-->8 -->8
--globals --globals
@@ -27,11 +41,56 @@ end
gameover=false gameover=false
cs=1 --current state cs=1 --current state
fc=0 --frame counter fc=0 --frame counter
lcs=0 --last cs
maxtime=.30 --maximum time before lou fully grown
--list of sprites
--order contains a 2d array j
-- with the sprite index in order
--w width
--h height
--xo x offset
--yo y offset
sprites={
lou={
order={
0,16
},
w=1,
h=1,
xo=0,
yo=0
},
sam={
order={
1,2,
17,18
},
w=2,
h=2,
xo=0,
yo=0
}
}
gib="asdwuhvzbregtnyuiopmh●✽★🐱ˇ♪♥◆⌂웃😐?!#$%"
sentences={
"hi",
"lorem",
"ipsum",
"♥♥♥",
"asdfkjasdf"
}
pauseitems={
"<- stats ->",
"<- reset save ->"
}
pauseindex=1
-->8 -->8
--functions --functions
function savedate() function savedate()
dset(0,stat(90))--year dset(0,stat(90))--year
dset(1,stat(91))--month dset(1,stat(91))--month
dset(2,stat(92))--day dset(2,stat(92))--day
@@ -54,28 +113,119 @@ function sincelast()
return s+m+h+d+mo+y return s+m+h+d+mo+y
end end
function inits()
state[cs].init()
end
function isoverlap(x1min,x1max,x2min,x2max)
return x1max>= x2min and x2max >= x1min
end
--bbox:{
--{ minx, miny},
--{ maxx, maxy}
--}
function touching(bbox1,bbox2)
return isoverlap(bbox1[1][1],
bbox1[2][1],
bbox2[1][1],
bbox2[2][1]) and
isoverlap(bbox1[1][2],
bbox1[2][2],
bbox2[1][2],
bbox2[2][2])
end
function pauseupdate(key)
if(not key) return
if(key&1>0) pauseindex+=1
if(key&2>0) pauseindex-=1
pauseindex=min(max(pauseindex,0),count(pauseitems)+1)
menuitem(1,pauseitems[pauseindex],pauseupdate())
return true
end
-->8 -->8
--state --state
state={ state={
{ --1 gameplay {--1 menu
m={0,1},--music update=function(self)
ml=128,--music length menu:update()
cm=0, end,
draw=function(self)
menu:draw()
end,
init=function(self)
menu:init()
end
},
{ --2 gameplay
update=function(self)
play:update()
end,
draw=function(self)
play:draw()
end,
init=function(self)
play:init()
end
},
{ --3 feed
update=function(self) update=function(self)
end, end,
draw=function(self) draw=function(self)
end, end,
init=function(self)
end
}, },
{} { --4 language
update=function(self)
end,
draw=function(self)
end,
init=function(self)
end
},
{ --5 stats
update=function(self)
stats:update()
end,
draw=function(self)
stats:draw()
end,
init=function(self)
end
}
} }
-->8 -->8
--lou --lou
lou={ lou={
new=1, new=1,
age=0, age=0,
excitement=0,
strength=2,
s=1, --sprite index state
sentence="",
saychance=function(self)
if(flr(time())%8)!=0 return 0
ca=self.age/1728*100
chance=ca+self.excitement
s=""
if chance<.30 then
--not ready for language
for i=0,rnd()*5 do
le=flr(
rnd()*#gib
)
s=s..sub(gib,le,le)
end
else
--potential first words
s=sentences[flr(rnd(ca)*count(sentences))+1]
end
self.sentence=s
return flr(rnd()*6)
end,
init=function(self) init=function(self)
self.new=dget(10) self.new=dget(10)
if self.new == 0 then --new lou if self.new == 0 then --new lou
@@ -83,46 +233,43 @@ lou={
self.age=0 self.age=0
--overwrite date for first time --overwrite date for first time
savedate() savedate()
self:save() self:update()
else else
self.age=dget(11) self.age=dget(11)
self:save() self:update()
end end
end, end,
save=function(self) update=function(self)
dset(0,self.new) dset(10,self.new)
dset(1,self.age) dset(11,self.age)
self.s=min(count(sprites.lou.order),flr(count(sprites.lou.order)*(self.age/maxtime))+1)
end,
reset=function(self)
self.age=0
dset(10,0)
self:init()
end end
} }
-->8 -->8
--bgm --bgm
bgm={ bgm={
tracklist={ tracklist={
{
n=2,
l=254
},
{
n=0,
l=127
},
{
n=1,
l=127
}
}, },
l=254,
c=1, c=1,
t=-1, t=1,
set=function(self,obj)
self.tracklist=obj
bgm.c=1
bgm.t=1
end,
loop=function(self) loop=function(self)
if (self.t>self.tracklist[self.c].l) self.t=0 if (self.t>self.tracklist[self.c].l) self.t=1
if self.t==0 then if self.t==1 then
self.c+=1 self.c+=1
printh("playing: "..self.c)
if self.c>count(self.tracklist) then if self.c>count(self.tracklist) then
self.c=1 self.c=1
printh("ok")
end end
music(self.tracklist[self.c].n) music(self.tracklist[self.c].n)
@@ -131,31 +278,449 @@ loop=function(self)
self.t+=1 self.t+=1
end end
} }
-->8
--menu
menu={
tracks={
{
n=1,
l=127
},
{
n=0,
l=127
},
},
items={
{
text="play",
x=3,
y=12,
w=16,
h=6,
c=11,
b=13,
s=2
},
{
text="feed",
x=3,
y=22,
w=16,
h=6,
c=1,
b=13,
s=3
},
{
text="stats",
x=3,
y=32,
w=20,
h=6,
c=1,
b=13,
s=5
},
{
text="language",
x=3,
y=42,
w=33,
h=6,
c=1,
b=13,
s=4
},
},
speaktimer=0,
selected=1,
init=function(self)
bgm:set(self.tracks)
end,
update=function(self)
if btnp(⬆️) then
self:up()
elseif btnp(⬇️) then
self:down()
elseif btnp(❎) then
cs=self.items[self.selected].s
end
end,
draw=function(self)
rectfill(0,0,127,127,12)
map()
for k,v in pairs(self.items) do
rectfill(v.x-2,v.y-2,v.x+v.w,v.y+v.h,v.b)
print(v.text,v.x,v.y,v.c)
if (k == self.selected) rect(v.x-2,v.y-2,v.x+v.w,v.y+v.h,10)
end
rectfill(88,8,105,24,7)
rectfill(89,9,104,23,4)
self:drawlou()
end,
drawlou=function(self)
if self.speaktimer>0 then
local sen = lou.sentence
print(sen,
88,
27,3)
self.speaktimer-=1
else
self.speaktimer=lou:saychance()*15
end
spr(sprites.lou.order[lou.s],
92+(cos(time()*.12)*lou.strength),
14-(sin(time()*.08)*lou.strength))
end,
up=function(self)
t={h=-1,v=self.selected}
for k,i in pairs(self.items) do
if i.y<self.items[self.selected].y
and i.y>t.h then
t.h,t.v=i.y,k
end
end
self.selected=t.v
end,
down=function(self)
t={h=32000,v=self.selected}
for k,i in pairs(self.items) do
if i.y>self.items[self.selected].y and i.y<t.h then
t.h,t.v=i.y,k
end
end
self.selected=t.v
end,
x=function(self)
end,
o=function(self)
end
}
pause={
}
-->8
-- play
play={
tracks={
{
n=2,
l=254
},
},
currentgame=1,
init=function(self)
bgm:set(self.tracks)
currentgame=1 --make this random later
end,
update=function(self)
games[self.currentgame]:update()
end,
draw=function(self)
games[self.currentgame]:draw()
end,
win=function(self)
cs=1
end,
}
games={
{--find
tx=0,
ty=0,
px=0,
py=0,
init=function(self)
self.tx=flr((rnd(87)+20)/8)
self.ty=flr((rnd(87)+20)/8)
end,
update=function(self)
if (self.px==self.tx and self.py == self.ty) self:score()
if btnp(⬆️) then
self:mv(0,-1)
elseif btnp(⬇️) then
self:mv(0,1)
elseif btnp(⬅️) then
self:mv(-1,0)
elseif btnp(➡️) then
self:mv(1,0)
end
end,
touch=function(self)
sfx(0)
self:init()
end,
mv=function(self,x,y)
sfx(11)
slou=sprites.lou
ssam=sprites.sam
for s in all(slou.order) do
--bbox:{
--{ minx, miny},
--{ maxx, maxy}
--}
if touching(
{
{self.tx,self.ty},
{self.tx+slou.w, self.ty+slou.h}
},
{
{self.px,self.py},
{self.px+ssam.w, self.py+ssam.h}
}
) then
self:touch()
end
end
self.px+=x
self.py+=y
self.px=max(self.px,0)
self.py=max(self.py,0)
self.px=min(self.px,10)
self.py=min(self.py,10)
end,
draw=function(self)
rectfill(0,0,127,127,12)
rectfill(16,16,111,111,6)
spr(sprites.lou.order[1],
16+self.tx*8,
16+self.ty*8,
sprites.lou.w,
sprites.lou.h)
spr(sprites.sam.order[1],
16+self.px*8,
16+self.py*8,
sprites.sam.w,
sprites.sam.h)
end,
score=function(self)
lou.excitement+=1
end
}
}
-->8
-- stats
stats={
init=function(self)
end,
update=function(self)
if (btnp(🅾️)) cs=1
end,
draw=function(self)
color(3)
print("age: "..lou.age)
print("excitement: "..lou.excitement)
print("strength: "..lou.strength)
print("press 🅾️ to return")
end
}
__gfx__ __gfx__
00000000000000000000c0c0eccceecce7777777eceeceee00000000000000000000000000000000000000000000000000000000000000000000000000000000
000988000000000000c09c00c777777ce77777777777777700000000000000000000000000000000000000000000000000000000000000000000000000000000
00988780000000111d0c0c00e777777cc77777777777777700000000000000000000000000000000000000000000000000000000000000000000000000000000
008888700000003111060000e777777ee77777777777777700000000000000000000000000000000000000000000000000000000000000000000000000000000
008888800000005555600000e777777ce77777777777777700000000000000000000000000000000000000000000000000000000000000000000000000000000
008998800000005555600000c777777cc77777777777777700000000000000000000000000000000000000000000000000000000000000000000000000000000
00969990000011111d110000c777777ce77777777777777700000000000000000000000000000000000000000000000000000000000000000000000000000000
000999000000191111110000eeceeceee77777777777777700000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000191911110000000000007777777e7777777700000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000019d191110000000000007777777c7777777700000000000000000000000000000000000000000000000000000000000000000000000000000000
006666000000111d19110000000000007777777c7777777700000000000000000000000000000000000000000000000000000000000000000000000000000000
006e6e0000004161d1110000000000007777777e7777777700000000000000000000000000000000000000000000000000000000000000000000000000000000
00666600000001111e000000000000007777777e7777777700000000000000000000000000000000000000000000000000000000000000000000000000000000
009cc0000000001111000000000000007777777e7777777700000000000000000000000000000000000000000000000000000000000000000000000000000000
0099c0000000001111000000000000007777777c7777777700000000000000000000000000000000000000000000000000000000000000000000000000000000
00aa99000000000000000000000000007777777eeeeececc00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00700700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00077000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00077000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00700700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000066666666600000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000666666666666000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000066666666666666660000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000006666666666666666666660000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000666655555555556655566666666666000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000666665566666666566666555555566666660000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000066665556666666666566666666666655666666660000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000665556666666666665566666666666665556666666000000000000000000000000000000000000
00000000000000000000000000000000000000000000006666555666666666666665666666666666666655555566666666660000000000000000000000000000
00000000000000000000000000000000000000000000666666666666666666666665666666666666666666666555566666666666666660000000000000000000
00000000000000000000000000000000000000006666666666666666666666666656666666666666666666666666655566666666666666660000000000000000
00000000000000000000000000000000000000666666666666666666666666666656666666666666666666666666666555566666666666666660000000000000
00000000000000000000000000000000000066666666666666666666666666666656666666666666666666666666666666555555555566666666660000000000
00000000000000000000000000000000000666666666666666666666666666666566666666666666666666666666666666666666666555555555566660000000
00000000000000000000000000000000666666666666666666666666666666666566666666666666666666666666666666666666666666666666555556660000
00000000000000000000000000000066666666666666666666666666666666665566666666666666666666666666666666666666666666666666666656666660
00000000000000000000000000006666666666666666666666666666666666665666666666666666666666666666666666666666666666666666666666666666
00000000000000000000000000066666666666666666666666666666666666665666666666666666666666666666666666666666666666666666666666666666
00000000000000000000000000666666666666666666666666666666666666666666555555555555555566666666666666666666666666666666666666666666
00000000000000000000000066666666666666666666666666666666666665555555555555555555555555555666666666666666666666666666666666666666
00000000000000000000000666666666666666666666666666666665555555555555555555555555555555555555666666666666666666666666666666666666
00000000000000000000006666666666666666666666666666665555555555555555555555555555555555555555555566666666666666666666666666666666
00000000000000000000066666666666666666666666666666555555555555555555555555555555555555555555555555666666666666666666666666666666
00000000000000000000666666666666666666666666666555555555555555555555555555555555555555555555555555566666666666666666666666666666
00000000000000000006655666666666666666666666655555555555555555555555555555555555555555555555555555555666666666666555555666666666
00000000000000000666665566666666666666666655555555555555555555555555555555555555555555555555555555555555666555555555555555566666
00000000000000006666666566666666666666665555555555555555555555555555555555555555555555555555555555555555555555555555555555555666
00000000000000066666666656666666666666555555555555555555555555555555555666566666655555555555555555555555555555555555555555555556
00000000000000066666666656666666666655555555555555555555555555555566666666566666666566555555555555555555555555555555555555555556
00000000000000666666666665666666666555555555555555555555555555666566666666566666666566666555555555555555555555555555555555556555
00000000000006666666666665566666665555555555555555555555566666666566666666656665555555555556665555555555555555555555555555555665
00000000000006666666666666656665555555555555555555555666566666666556666655555555555555555555566665555555555555555555555555555565
0000000000006666666666666666655555555555555555555556666656666666665555555eeeeeeeeeeeeeeeeeee555666555555555555555555555555555556
00000000000666666666666666665555555555555555555556666666656666665555eeeeeeeeeeeeeeeeeeeeeeeeee5555566665555555555555555555555555
0000000000066666666666666665555555555555555555665666666665555555eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee5555566655555555555555555555555
000000000066666666666666655555555555555555566666566666655555eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee5555666555555555555555555555
00000000066666666666666655555555555555555666666665666555eeeeeeeeeeeeeeeeeee777777777777777eeeeeeeeeeee55566665555555555555555555
00000000066666666666665555555555555555666666666665555eeeeeeeeeeeeeee777777777777777777777777777777eeeee5556666555555555555555555
0000000066666666666665555555555555556566666666666555eeeeeeeeeeeee777777777777777777777777777777777777eeee55666655555555555555555
00000006666666666666555555555555555665666666665555eeeeeeeeeee7777777777777777777777777777777777777777777eee556665555555555555555
00000006666666666665555555555555566666556666555eeeeeeeee7777777777777777777777777777777777777777777777777eee55666655555555555555
000000666666666666555555555555566666666555555eeeeeeeee77777777777777777777777777777777777777777777777777777ee5666666555555555555
0000006666666666655555555555556666666666655eeeeeeeee77777777777777777777777777777777777777777777777777777777ee556666655555555555
00000666666666665555555555555566666666655eeeeeeeee77777777777777777777777777777777777777777777777777777777777ee55666665555555555
0000066666666665555555555555665666666655eeeeeee777777777777777777777777777777777777777777777777777777777777777e55566666555555555
000006666666666555555555555666566666555eeeeee77777777777777777777777777777777777777777777777777777777777777777775556666655555555
0000666666666655555555555566666556655eeeeeee777777777777777777777777777777777777777777777777777777777777777777777556666655555555
000066666666655555555555666666666555eeeeee77777777777777777777777777777777777777777777777777777777777777777777777555666655555555
00066666666665555555555666666666655eeee77777777777777777777777777777777777777777777777777777777777777777777777777755566655555555
0006666666665555555555566666666655eeeee77777777777777777777777777777777777777777777777777777777777777777777777777775566655555555
000666666666555555555565666666655eeeee777777777777777777777777777777777777777777777777777777777777777777777777777775556655555555
00666666666555555555566556666655eeeee7777777777777777777777777777777777777777777777777777777777777777777777777777775556665555555
0066666666655555555566666555555eeee777777777777777777777777777777777777777777777777777777777777777777777777777777777555665555555
066666666655555555566666666655eeeee777777777777777777777777777777777777777777777777777777777777777777777777777777777555665555555
06666666665555555566666666665eeeee7777777777777777777777777777777777777777777777777777777777777777777777777777777777755665555555
06666666655555555566666666655eee77777777777777777777777777777777777777777777777777777777777777777eeeee7ee7eee7777777755665555555
6666666665555555556666666655eee77777777777777777777777777777777777777777777777777777777777777e7eeee77ee7eee7eeee7777775565555555
666666665555555566566666655eeee77777777777777777777777777777777777777777777777777777777777eeeeeeee77e77ee7eee7777777777565555555
66666665555555556656666655eeee77777777777777777777777777777777777777777777777777777777777ee7ee77e77777e7777777777777777566555555
6666666555555556666566665eeee777777777777777777777777777777777777777777777777777777777eeeeeeee7777777777777777777777777566555555
6666665555555556666655555eee7777777777777777777777777777777777777777777777777777777eeeee7ee7777777777777777777777777777566555555
6666665555555556666666655eee7777777777777777777777777777777777777777777777777777777e7e7e7e77777777777777177777777777777556655555
666666555555556666666665eee7777777777777777777777777777777777777777777777777777777e7e77e7777777777757777577775777777777756655555
666666555555556666666655eee7777777777777777777777777777777777777777777777777777777e7e77777777557eee57775777557757777777756665555
66666555555555666666665eee7777777777777777777777777777777777777777777777777777777ee7777777777755e755ee55eee5ee757777777755665555
66666555555555666666665eee7777777777777777777777777777777777777777777777777777777e77777777777ee5775577577755eee57777777775665555
66666555555555566666655ee777777777777777777777777777e7777777777777777777777777777e7777777755ee755555555557577e55e777777775665555
6666655555555665555555eee7777777777777777eee77eeeee7ee77e77777777777777777777777777777777ee57755555555555555755eeee5777775565555
6666655555555666666655ee77777777777777ee777eeee7ee7eeeeeee777777777777777777777777777775eee575555555555555555555e555777777566555
666665555555566666665eee7777777777777ee7eee7e7ee7e7ee7e77e7777777777777777777777777777755e755555555555555577555755e7777777566555
666655555555566666665ee777777777777eeeeee777ee7777777777777777777777777777777777777777ee5755555555555555557775557755777777566555
666655555555566666665ee7777777777eeeee77e77777777777777777777777777777777777777777777ee55555555555555555557777775557777777566555
66665555555566666665eee7777777eeeee77e7777777777777777777777777777777777777777777777ee755555555555555555557775777777777777566555
66665555555566666665ee777777777777e7777777777777777777777777777777777777777777777777ee755755555555555555557755777777777777566555
66665555555566666665ee777777eeeeee7777777577777777777777777777777777777777777777777eee755755555555555555577757777777777777566555
66665555555566666665ee7777eeeee7777777777577775777577777777777777777777777777777777eee557755555555555555577557777777777777566555
66665555555556666665ee7777e77777777757775577751775577777777777777777777777777777777eee55777555555555555555557e777777777777556555
66655555555555555555ee777e777777777757775eeee5eee5ee77777777777777777777777777777777e75777755555555555555577e7777777777777756555
66655555555566666665ee7777777777757757ee57777577e5eeeeee7777777777777777777777777777775777775555555555555777e7777777777777755555
66655555555566666665e7777777777775775577555555555557eeeee77777777777777777777777777777557777755555555555777777777777777777775555
66655555555566666665e77777777777757ee55555555555555557eeee77777777777777777777777777775555555555555555577e7777777777777777775555
66655555555566666665e7777777577775e77555555555555577557eee7777777777777777777777777777777777777755555777e77777777777777777777555
66555555555566666665e77777775777e55555555555555555577557ee777777777777777777777777777777eeee7777777777ee777777777777777777777555
66555555555556666665ee777777557ee77555555555555555577755777777777777777777777777777777777777e7eee77ee777777777777777777777777555
66555555555556666665ee7777777555575555555555555555577775577777777777777777777777777777777777777777777777777777777777777777777755
65555555555556666665ee7777577ee5555555555555555555577777557777777777777777777777777777777777777777777777777777777777777777777755
65555555555555566555ee777755eee7755555555555555555577755577777777777777777777777777777777777777777777777777777777777777777777775
65555555555556555565ee7777755555557755555555555555577557777777777777777777777777777777777777777777777777777777777777777777777775
555555555555566666665e77777eee55557755555555555555575577777777777777777777777777777777777777777777777777777777777777777777777775
555555555555556666665e777555557557775555555555555575577ee77777777777777777777777777777777777777777777777777777777777777777777777
555555555555556666665e7777ee55577777755555555555555577e7777777777777777777777777777777777777777777777777777777777777777777777777
555555555555556666665e7777775777755777555555555555777e77777777777777777777777777777777777777777777777777777777777777777777777777
555555555555556666665e77777777777755557555555555577ee777777777777777777777777777777777ee7777777777777777777777777777777777777777
555555555555555666665e777777777ee77775555555557777ee77777777777777777777777777777777777ee777777777777777777777777777777777777777
555555555555555566666577777777777ee777777777777eee77777777777777777777777777777777777777e777777777777777777777777777777777777777
55555555555555555555557777777777777e7ee7eee777777777777777777777777777777777777777777777e777777777777777777777777777777777777777
5555555555555555566665777777777777777777777777777777777777777777777777777777777777777777ee77777777777777777777777777777777777777
55555555555555555566657777777777777777777777777777777777777777777e77777777777777777777777e77777777777777777777777777777777777777
55555555555555555566665777777777777777777777777777777777777777777e77777777777777777777777e77777777777777777777777777777777777777
55555555555555555556665777777777777777777777777777777777777777777e7777777777777777777777ee77777777777777777777777777777777777777
55555555555555555555665777777777777777777777777777777777777777777ee777777777777777eeee77e777777777777777777777777777777777777777
555555555555555555555657777777777777777777777777777777777777777777e77777777777777ee777777777777777777777777777777777777777777777
555555555555555555555555777777777777777777777777777777777777777777ee777eeeeee777777777777777777777777777777777777777777777777777
__map__
3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d07070707070707070707070707070707070707070707070707070707070707070707070707070707000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d07030505050505030707070707070707070707070707070707070707070707070707070707070707000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d07040707070700140707070707070707070707070707070707070707070707070707070707070707000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
3d3d3d3d3d3d363738393a3b3d3d3d3d07040707070707140707070707070707070707070707070707070707070707070707070707070707000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
404142434445464748494a4b4c4d4e4f07040707070707140707070707070707070707070707070707070707070707070707070707070707000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
505152535455565758595a5b5c5d5e5f07040707070707140707070707070707070707070707070707070707070707070707070707070707000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
606162636465666768696a6b6c6d6e6f07040707070707140707070707070707070707070707070707070707070707070707070707070707000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
707172737475767778797a7b7c7d7e7f07031515151515030707070707070707070707070707070707070707070707070707070707070707000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
808182838485868788898a8b8c8d8e8f07070707070707070707070707070707070707070707070707070707070707070707070707070707070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
909192939495969798999a9b9c9d9e9f07070707070707070707070707070707070707070707070707070707070707070707070707070707070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
a0a1a2a3a4a5a6a7a8a9aaabacadaeaf07070707070707070707070707070707070707070707070707070707070707070707070707070707070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
b0b1b2b3b4b5b6b7b8b9babbbcbdbebf07070707070707070707070707070707070707070707070707070707070707070707070707070707070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
c0c1c2c3c4c5c6c7c8c9cacbcccdcecf07070707070707070707070707070707070707070707070707070707070707070707070707070707070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
d0d1d2d3d4d5d6d7d8d9dadbdcdddedf07070707070707070707070707070707070707070707070707070707070707070707070707070707070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
e0e1e2e3e4e5e6e7e8e9eaebecedeeef07070707070707070707070707070707070707070707070707070707070707070707070707070707070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
f0f1f2f3f4f5f6f7f8f9fafbfcfdfeff07070707070707070707070707070707070707070707070707070707070707070707070707070707070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
__sfx__ __sfx__
000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00010000220502305025050270502a050000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
011000000e0200e0200e0200e0200e0200e0200e0200e0200e0200e0200e0200e0200e0200e0200e0200e0200b0200b0200b0200b0200b0200b0200b0200b0200b0200b0200b0200b0200b0200b0200b0200b020 011000000e0240e0200e0200e0200e0200e0200e0200e0200e0200e0200e0200e0200e0200e0200e0200e0200b0210b0200b0200b0200b0200b0200b0200b0200b0200b0200b0200b0200b0200b0200b0200b020
011000001e150000001e000000001e150000001e000000001e150000001e000000001e150000001e000000001e150000001e000000001e150000001e000000001e150000001e000000001e150000001e00000000 011000001e154000001e000000001e154000001e000000001e154000001e000000001e154000001e000000001e154000001e000000001e154000001e000000001e154000001e000000001e154000001e00000000
01100000000000000000000000001a1500000000000000001a1500000000000000001a1500000000000000001a0000000000000000001a1500000000000000001a1500000000000000001a150000000000000000 01100000000000000000000000001a1540000000000000001a1540000000000000001a1540000000000000001a0000000000000000001a1540000000000000001a1540000000000000001a154000000000000000
001000000000015000151501500000000150001515000000000001500015150150000000015000151500000000000000001315000000000000000013150000000000000000131500000000000000001315000000 001000000000015000151541500000000150001515400000000001500015154150000000015000151540000000000000001315400000000000000013154000000000000000131540000000000000001315400000
011000000c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c020 011000000c0240c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c020
011000001c1500000000000000001c1500000000000000001c1500000000000000001c1500000000000000001c1500000000000000001c1500000000000000001c1500000000000000001c150000000000000000 011000001c1540000000000000001c1540000000000000001c1540000000000000001c1540000000000000001c1540000000000000001c1540000000000000001c1540000000000000001c154000000000000000
01100000000000000013150000001a0000000013150000001a0000000013150000001a0000000013150000001a0000000013150000001a0000000013150000001a0000000013150000001a000000001315000000 01100000000000000013154000001a0000000013154000001a0000000013154000001a0000000013154000001a0000000013154000001a0000000013154000001a0000000013154000001a000000001315400000
01100000000001300013000000001a1501300013000000001a1500000013000000001a1500000013000000001a0000000013000000001a1500000013000000001a1500000013000000001a150000001300000000 01100000000001300013000000001a1541300013000000001a1540000013000000001a1540000013000000001a0000000013000000001a1540000013000000001a1540000013000000001a154000001300000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
002000000e0200e0200e0200e0200e0200e0200e0200e0200b0200b0200b0200b0200b0200b0200b0200b0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c020 002000000e0240e0200e0200e0200e0200e0200e0200e0200b0210b0200b0200b0200b0200b0200b0200b0200c0210c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c0200c020
6f0200003765409150101500315009150081500915009150091500915000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0020000000000151521a152151521a152151521a1521515200000131521a152131521a152131521a1521315200000131521a152131521a152131521a152131521a152131521a152131521a152131521a15213152
002000001e150000001e152000001e152000001e152000001e150000001e152000001e152000021e152000021c152000021c152000021c152000021c152000021c152000021c152000021c152000021c15200000
014000000000015050140501305012050110501005010050000001500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001f0000150501705000000180501d05000000000001705000000000000000000000000001705018050000001a050180500000000000150500000000000000000000015050170500000018050170500000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0020000000000151501a150151501a150151501a1501515000000131501a150131501a150131501a1501315000000131501a150131501a150131501a150131501a150131501a150131501a150131501a15013150 001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
002000001e150000001e150000001e150000001e150000001e150000001e150000001e150000001e150000001c150000001c150000001c150000001c150000001c150000001c150000001c150000001c15000000 001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00200000000000000000000000000000000000000000000000000000000000000000000000000000000000002b0501d0502b0501a050000002b0502b0502b05000000000001a0501a0501a0501a0501a05000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
002000000c650000000000000000000000000000000000000c650000000000000000000000000000000000000c650000000000000000000000000000000000000c65000000000000000000000000000000000000
__music__ __music__
00 01020304 00 01020304
00 05060708 00 05060708
00 0a440c0d 00 0a440c0d
00 0a0c0d13 00 0a0c0d53
00 4e0f431d

View File

@@ -1,34 +0,0 @@
pico-8 cartridge // http://www.pico-8.com
version 42
__lua__
function _init()
x=64
y=64
z=false
end
function _update()
if(btn(⬅️))x-=1
if(btn(➡️))x+=1
if(btn(⬆️))y-=1
if(btn(⬇️))y+=1
if(btn(❎))z=not z
if(z) then s=1 else s=0 end
end
function _draw()
cls()
spr(s,x,y)
end
__gfx__
00000000444444440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000445544440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00700700444454440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00077000445544440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00077000444454440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00700700444444440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000444444440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000444444440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

View File

@@ -1,50 +0,0 @@
pico-8 cartridge // http://www.pico-8.com
version 42
__lua__
--
function _init()
y=(stat(80)-2025)*365*24*60*60
end
function _update()
m=stat(81)-8
d=stat(82)
if(m>=0)then
d=2-d
else
m= (m+1)*30
d=30-d
end
h=24-stat(83)
mi=60-stat(84)
s=60-stat(85)
end
function _draw()
cls()
print(m)
print(d)
print(h)
print(mi)
print(s)
sprint('hi',56,20)
sprint('it seems you only have',20,40)
sprint(d..' days '..h..':'..mi..':'..s,30,64)
sprint('to live',47,80)
end
function sprint(s,x,y)
print(s,x,y,1)
print(s,x-1,y-1,8)
end
__gfx__
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00700700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00077000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00077000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00700700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

View File

@@ -1,19 +0,0 @@
pico-8 cartridge // http://www.pico-8.com
version 42
__gfx__
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000004000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000
00700700004444000040000000000000000004000044440000444400004444000040000000400000000000000040040000400000040004000000000000444400
00077000004004000040000000000000004444000040000000400000004000000040040000000000000040000040400000400000044044000040040000400400
00077000004004000044440000444400004004000044440000444000004000000040040000400000000040000044000000400000040404000044040000400400
00700700004444000040040000400000004004000040000000400000004044000044440000400000000040000040400000400000040004000040440000400400
00000000004004000040040000400000004004000040000000400000004004000040040000400000000040000040040000400000040004000040040000400400
00000000004004000044440000444400004444000044440000400000004444000040040000400000004400000040040000444400040004000040040000444400
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000004444000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00444000004004000044440000444000044444000040040004400040040000440440000004400400000000000000000000000000000000000000000000000000
00404000004004000040040000400000000400000040040000400440040440400044044000440400004444000000000000000000000000000000000000000000
00444000004044000044440000400000000400000040040000440400040444400004400000040400000004000000000000000000000000000000000000000000
00400000004444400040400000444400000400000040040000044400040404400044440000004400000040000000000000000000000000000000000000000000
00400000000004000040040000000400000400000044040000004000004404000440044000004000000400000000000000000000000000000000000000000000
00400000000000000040040000444400000400000004440000004000004404000000004000044000004444000000000000000000000000000000000000000000

View File

@@ -1,29 +0,0 @@
pico-8 cartridge // http://www.pico-8.com
version 42
__lua__
--main
function _init()
end
function _update()
end
function _draw()
end
-->8
--globals
-->8
--state
__gfx__
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00700700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00077000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00077000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00700700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000