resman
Veteran Member
This is a feasibility study in bidirectional hardware scrolling using the hacked lores/alpha-graphics mode of the CGA. I'm convinced this is the best graphics mode for games on a low-end PC with CGA graphics. But doing a fast full screen update is out-of-reach when using a lowly 8088. Of course 8088MPH! does amazing things with this mode, so I wanted to try my hand at implementing vertical and horizontal scrolling in anticipation of something fun. I thought I would share the progress I've made in implementing a 2D tile based scroller. This demo first scrolls around the map using software to fill the entire screen every frame. Press a key and it will switch to using hardware scrolling. Again, press a key and it will exit.
Things to note:
Let me know what you think...
Things to note:
- Code is written for clarity, not performance (and maybe the clarity isn't so good, either)
- There are anomalies along the edges. Yes, I know. See above.
- No attempt to avoid snow on IBM CGA. See above.
- Don't laugh at my poor tileset. At least I made up a few different tiles!
- Compile the code yourself using MSC 5.1: 'cl /Ox tiler.c'
Let me know what you think...