Found a 10 token save for the dofade function! :D function dofade() for j=1,15 do local col=j for k=1,flr((max(0,min(fadeperc,1))*100+j*1.46)/22) do col=dpal[col] end pal(j,col,1) end end
This was the part where I had to get creative. Tic-80 doesn't provide *pal* or *flip,* so I had to make them myself, using a coroutine to run the loop so I could yield in *flip.* I don't think it's perfect, but seems to be working nicely. Also had to create my own fading system because this one wasn't quite working. In many ways I've been finding pico-8 to be way more fleshed out than tic-80. I'm probably gonna buy it and just run along with it. I just wish it had a bit of a bigger screen...
The way TIC80 drops the ball on the palette is one of the first moments that made me want to go back to Pico-8 again. It's just so unpolished and uncommitted.
That's fine. Something you can do is keep it in a corner and then generate the levels in a way that will keep walkable tiles to spawn in that corner. It's a bit of a challenge bit it's a sleek solution.
Actually DOORS and other stuff (except monsters) do not respawn after death... :) maybe you correct this bug in leater version. We will see! GREAT JOB!!!
Found a 10 token save for the dofade function! :D
function dofade()
for j=1,15 do
local col=j
for k=1,flr((max(0,min(fadeperc,1))*100+j*1.46)/22) do
col=dpal[col]
end
pal(j,col,1)
end
end
I've never seen a practical use for flip() until now. Smart! Totally going to use that pattern in the future.
flip() is very useful for tweetcarts where its fewer chars to use goto _ combined with flip() than using function _update()
This was the part where I had to get creative. Tic-80 doesn't provide *pal* or *flip,* so I had to make them myself, using a coroutine to run the loop so I could yield in *flip.* I don't think it's perfect, but seems to be working nicely. Also had to create my own fading system because this one wasn't quite working.
In many ways I've been finding pico-8 to be way more fleshed out than tic-80. I'm probably gonna buy it and just run along with it. I just wish it had a bit of a bigger screen...
The way TIC80 drops the ball on the palette is one of the first moments that made me want to go back to Pico-8 again. It's just so unpolished and uncommitted.
just wait till zep drops picotron with the glorious psp sized 480x270 display
25:33 made me laugh somehow... great tutorial anyways!
I had to remove the ui movement, my eyes and stomach just cannot get along with a UI that is not consistent in its placement. Great tutorials though.
That's fine. Something you can do is keep it in a corner and then generate the levels in a way that will keep walkable tiles to spawn in that corner. It's a bit of a challenge bit it's a sleek solution.
Does anyone know if Lua has a math.mid function or its equivalent to find the middle of a series of numbers? Thanks.
It's MID() in Pico-8
22:43 made me laugh.
"I have to create more monsters so I can actually die." XD
Actually DOORS and other stuff (except monsters) do not respawn after death... :) maybe you correct this bug in leater version. We will see! GREAT JOB!!!
Heheh, yeah I think it will pop up in a future episode. Sorry for the confusion.