phaeron Posted January 22 Share Posted January 22 Put together a little example of more advanced VBXE blitter usage, a particle system running on the blitter: vbxeparticles.zip Caveat: This has only been tested in emulation as I don't have a VBXE. Uses VBXE at $D600. The entire particle system runs on the blitter: draw/erase, physics update, collision bounds checking, and random number generator. The only 6502 code that runs is a tiny VBI stub that just restarts the blit list every frame, so it can run in the background while other programs are running. vbxeparticles.mp4 Physics are implemented as position/velocity/acceleration in 8.7 fixed point, with 15-bit addition being done in 6 steps (add low, init carry, stencil copy bit 7 to carry, clear carry from low, add carry to high, add high). Bounds check is Y>=$C0 or X < $10 or X >= $F0, implemented as (Y & (Y - $40)) | ((X - $10) & (X - $70)). The particle system runs 256 particles and resets one particle per frame with random velocity derived from a 32-bit LFSR random number generator. 11 Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.