Log In  


Cart #fawasirudi-0 | 2019-06-22 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
32

Here's a small demo we made for Flashback 2019 held in Sydney. There are some firsts (I think... I hope) like the full screen X/Y distorter (at 60 FPS).

Credits:

code - kometbomb
gfx - ilkke & animal bro
musix - gruber

P.S. I used my very old code that seem to use someone's matrix math functions and I can't find the thread I borrowed them from so thanks and credits to him/her! They're named like rot_x_m() and lookat_m() etc.

32


The fullscreen distorter is indeed impressive.
FYI (see @JWinslow23 post) that poke4 is ~30% faster than memcpy (memset?) for multiple of 4 bytes copy - looks like it can apply here.

function mcpy(dest,src,len)
 --because poke4() is so
 --relatively fast, it actually
 --outperforms memcpy(). the
 --print_big() function abuses
 --this very much.
 for i=0,len-1,4 do
  poke4(dest+i,peek4(src+i))
 end
end

Oh, wow. Thanks for that. Almost seems to be something to avoid, like the thing when rectfill() was pretty much free.


could that technique be used for full screen rotation?


Sure, I have code for that. The texture becomes a bit distorted in the process though.


OMG; this is the hardest I've ever scene. :P That track, tho - w00t w00t, gimme m0re gimme m0re gimme m0re!! bEST eVA.



[Please log in to post a comment]