8x8 Tiled TV Driver
Spork Frog
Posts: 212
2 bit palettted tile based video driver
Based on the NTSC Spectrum-like TV Video Driver
This code is in the public domain. Feel free to use it in any way you like.
I think that there says it all. I'm not great at writing docs, but the demo should say it all.
I'd love to hear feedback on this.
Based on the NTSC Spectrum-like TV Video Driver
This code is in the public domain. Feel free to use it in any way you like.
The screen for this driver is composed of two major parts: 1. Tile map Each of these entries is 1 word long, with the lower byte being a tile number and the upper byte being a pallete number. There are 768 words total for a 32 by 24 tile screen. 2. Tiles Each tile is made up of 8 words with 2 bit color encoding on each tile. Data is in reverse order for the Propeller's video hardware. You can define as few or as many tiles as you want, but be sure not to use any tiles that you don't define. Also, there is the palette map. 16 entries are currently defined, but you can define up to 256. A somewhat random palette is currently set up; modify it however you like. It's located near the top of the DAT section.
I think that there says it all. I'm not great at writing docs, but the demo should say it all.
I'd love to hear feedback on this.
zip
6K
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Regards,
Jim
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Regards,
Jim
As it's not just me, but a few people have asked for PAL versions of my stuff, which is why I re-wrote the spectrum drivers using the parallax tv driver code as a base plate.
Cheers,
Baggers.
@Baggers: I would be happy to do a PAL version as well, but I really don't know anything about PAL other than the fact that it's another TV standard used across Europe.
Post Edited (Spork Frog) : 11/27/2007 2:28:38 AM GMT
Uses only 2.9K of memory which could easily be further cut down by changing the font from 2 bit to 1 bit encoding.
This is rather incomplete, but I thought it would be worth posting anyway.
32x24 characters, B&W only for now. Color could be easily added.