Hi guys. There is another concern I have.
While it is certainly possible to run your cart at 30fps using _update()
or 60fps using _update60()
how do you go about arbitrary speeds like 13fps or 129fps and having the ability to change it during the execution of the cart ?
The reason ? Early arcade games such as VENTURE would make the game harder not just by making the enemies more aggressive but more importantly, actually upping the frames-per-second rate of the gameplay making it that much more difficult. I wanted to bring this option to Pico-8 as I have not seen any games yet that do this - where you can increase the framerate by any rate.
You can sort of do this in Pico-8 by NOT using _update()
or _draw()
and flip()
yet ... how do you do write this cart WITH the standard _draw()
and _update()
... and in fact is there some way to POKE a forced FPS for _update() and/or _draw() that can be as low as 1fps and exceed 60fps or even go up to something like 240fps ?
-- how to make this with -- conventional _init() and -- _draw() and _update() ? function main() speed=16 -- from 1 to 16384 -- try 1, 16, 128, 1024, 16384 cls() c=0 for y=0,127 do for x=0,127 do pset(x,y,rnd(16)) c=c+1 if c==speed then flip() c=0 end end end end main() |
[Please log in to post a comment]