Shaking the Screen in Screen 13


You can do a nice shaking effect changing the VGA offset (some weird and obscure VGA register). This is easily done with this piece of code (by Piptol, slightly modified by na_th_an):


duration% = 25600

FOR x% = 1 TO duration%
OUT &H3D4, 8: OUT &H3D5, x%
NEXT x%


Of course, adjust duration% to fit your needs.


ShakingTheScreenInScreenThirteen - page last edited 2004-02-10 12:28:29 by 172.167.146.22 (home) (edit)
Blast WIKI - by RoboticBoy - edited and tweaked for our evil purposes by Hexadecimal Disaster