Hi everyone! Here goes my first submitted thing : a recreation of the good old rotoscaling effect, quite known in the demoscene... scene... in way less than 1kb of code. I made it fit to a round 1kb by comments in the source code to explain some tricks about the calculation.
Rotoscaling is based on two things : rotation (good old cossin sin-cos) and scaling. I precalculate scaled sine and cosine tables according to the current angle in the update loop to gain some overall speed.
I programmed it on the alpha 0.0.5. I don't know if anything changed around to the speed/cpu usage but this should run quite quickly (don't expect 30 FPS neither, I couldn't make the pixel blit faster) on the 0.1 alpha.
I really liked playing with PICO and I'm not done at all with it! :D
Sure, you can download and load the cartridge, but well, here goes the source code : https://gist.github.com/Eiyeron/47d9314700a4b131cca7
Have fun reading through it! ;)
[Please log in to post a comment]