home *** CD-ROM | disk | FTP | other *** search
- Hello there!
-
- Here's the main loop to these nice rasters... It was written in Turbo Pascal,
- because it is fast enough to be able to do this trick. Actually it is very
- simple! This is how it works...
-
-
- [--- Initialise the whole shit ---]
-
- - Set up the colors for the bars in a big array which hold all different
- colors
- - Set the speed
- - Set startposition of bar-array (0)
-
- [--- Main loop ---]
-
- Repeat
- Repeat
-
- - Start drawing the bars (with colors from the array) by just poking
- the rgb values in the vga-palette register very fast... This way
- it looks like if there are different colors on screen (there are,
- but then again there aren't)
- - When last color in array is reached, start over again
-
- Until last scanline is reached
-
- - Add speed to startposition of bar-array so it starts scrolling
- Until a key is pressed
-
- - Reset the colors
-
- [--- End ---]
-
- That's it! Simple eh? You can make nice things like bouncing bars or swinging
- bars...
-
- It isn't such a complicated code... Mostly it consist of Turbo Pascal with
- just a small piece (about 5 a 6 lines) of assembly to check the vertical
- retrace.
-
- Usage is simple:
-
- Rasters 1 (for a speed of 1)
- Rasters -1 (for speed of -1 (down))
-
- Rasters /h for help!
-
- See ya! - Eric vd Staay
-
- Oh yeah! - Sourcecode available on request! (just write me, the adress is in
- the program itself!) Also write me if you want a crackintro or some bbs-
- advertisements!!! Everything's possible!
-
-
-
-