this idea came to me while i was making my multi-cart, its not the coding thats hard, no, its tedious, even with copy and paste, it gets tedious, and debugging can get tedious as well! so, i quit making games, its not that i quit pico-8! im gonna exclusively make songs now! the only other thing i am able to do is songs. so, goodbye game dev, hello composer

multicarts are cool, so im gonna make one
i have no information on how to do this, so im just gonna make the simplest type of multicart, literaly just loading different carts for different levels, i dont know why multicart games like poom dont use this! although, i may be wrong about how cart loading works... hopefully i dont need to worry though! ill try to push through and make the best cart ever!

depite the name, its not an OS, its a launcher, you can use it to launch .p8 files, its meant to make things more tidy and be able to do the things you want, its based on actual OSes, but mostly, the graphical explorers that exist, like ones that don made for ms-DOS, its not as "tidy" as this though! i hope you love it!

i have 2 carts for this, only one is runnable the other has an error
so, i started with this code;
m={pl=4,ll=4,sl=1,px={30,30,50,50},py={30,50,30,50}}
s=1
function _update()
cls()
repeat
spr(1,m.px[s]-2,m.py[s]-2)
s+=1
until s==m.pl+1
print(s,1,122)
end |
it should make 4 sprites at each point with a -2 condition to make the sprite not offset.
but instead,
ok, the first thing i notice...
feild "?"
huh?
so, apparently this is pico-8ʻs way of saying "haha, you stupid, your code suck"(no offence, ZEP, im sorry if you find that, or anything else offensive) EVEN THOUGH IF YOU SEARCH THE CODE FOR THE "?", YOU GET 0 [redacted] RESULTS!
sorry, just needed to get that out of my system.
so, i started to change the code, eventualy i found out, that by uncorrecting the sprite, i can make it work, almost!

for some reason it wont draw the last line in the loop, its just not!
map1={wallslength=4,wallsx={30,30,50,50},wallsy={30,50,50,30}}
map2={}
map3={}
s=0
sf=1
function _update()
cls()
s=1
sf=2
repeat
if sf > map1.wallslength then
line(map1.wallsx[s],map1.wallsy[s],map1.wallsx[1],map1.wallsy[1])
else
line(map1.wallsx[s],map1.wallsy[s],map1.wallsx[s+1],map1.wallsy[s+1])
end
s+=1
sf+=1
until s==map1.wallslength
end |

you can use EDU to edit the image generated, its so simple, once you get what you like, just render the image in your pico-8 cart, i have listed a code i made for a cool image below the main cart.
x=3--changable variables y=-3200 fc=1 w=128--fixed/unchangable variables h=128 l=0 cls() function updatelayer() line(0,l,128,l,fc+7) --uses fc to fill the backround line(y+33,l,0,l,x-3) --outlines the grass line(y,l,0,l,x) --makes a grassland area x=x--you can change these updates, but the equations have to start with the variable being updated (x(equation)) y=y+32 fc=fc*1.01 l+=1--update the layer being drawn on, you cant change this equation end repeat updatelayer() until l==128 |
im so close to finishing my biggest project yet, but another bug comes up!
anyboy know why the player wont jump?
function _update60() cls() if(btnp(⬆️))then yv=5 end if(btn(➡️))then xv+=s end if(btn(⬅️))then xv-=s end if(xv>mxv)then xv=mxv end if(xv<0-mxv)then xv=0-mxv end yv+=g y+=yv x+=xv if(xv>0)then xv-=f if(xv<0)then xv=0 end end if(xv<0)then xv+=f if(xv>0)then xv=0 end end if(y>120)then y=120 end spr(skin,x,y) end |






0 comments



