TriOS-alt/zubehör/game boulderdash/sourcen/Bellatrix-Code/Boulderdash_Tile_TV.spin

1 line
59 KiB
Plaintext
Raw Normal View History

2010-04-16 00:25:58 +02:00
<EFBFBD><EFBFBD>'' 2-bit paletted tile-based video driver '' Based on the NTSC Spectrum-like TV Video Driver '' %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% '' Version story: '' '' 2007-11-25 2.0 Tiled Version (Spork Frog) '' 2007-12-05 1.0 First version (Jos<00> Luis Cebri<00>n) '' 2009-11-12 Halved tile horizontal resolution (H<00>ctor Peraza) '' to eliminate redundant pixel pairs '' (BoulderDash uses 8x16 tiles). '' This also halves tile memory requirements. '' Fixed vertical sync pulse generation. '' 2009-11-13 Changed pixel clock settings (H<00>ctor Peraza) '' in order to display 20 tiles per line, '' as in the classic C64 BoulderDash. '' 2009-11-14 Reverse pixel order before waitvid (H<00>ctor Peraza) '' to avoid having to define mirrored tiles. '' 2009-11-15 Added an optional status line. (H<00>ctor Peraza) '' 2009-11-17 Video config parameters can be passed (H<00>ctor Peraza) '' on driver startup, to allow for different '' configurations and/or platforms. '' 2009-11-18 Implemented PAL mode. Color seems to (H<00>ctor Peraza) '' be a bit off in PAL mode. '' 2009-12-05 Added the possibilty to halve tile (H<00>ctor Peraza) '' height (we need that for the title screen, '' since it has text on the bottom part '' and characters are half-size) '' '' %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% '' 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 byte long, representing the tile num