diff --git a/vcs/humans.c02 b/vcs/humans.c02 new file mode 100644 index 0000000..c5dd208 --- /dev/null +++ b/vcs/humans.c02 @@ -0,0 +1,45 @@ +/* Atari VCS 2 Line Kernel Test` */ + +#pragma origin $F800 //4k Cartridge +#include //TIA and RIOT Registers +#include //Initialize VCS +#include //VCS Library Routines +#include //Two Line Game Kernel + +#define KNLLNS = 96 //Kernal Lines (Scanlines/2) +#define P0HGHT = 10 //Player 0 Height +#define P1HGHT = 10 //Player 1 Height + +//Color Table +char colors = {$86, $C6, $46, $00, $0E, $06, $0A, $00}; + +//Human Shaped Player Graphics +char human = {%00011100, %00011000, %00011000, %00011000, %01011010, + %01011010, %00111100, %00000000, %00011000, %00011000}; + +/* Setup Code */ +void setup() { + setclr(&colors); //Set Color Table + VDELP0 = 1; +} + +/* Vertical Blank Code */ +void vrtblk() { + posobj(0,0); //Set P0 X-Position + p0prep(96, &human); //Set P0 Y-Position & Graphics Pointer + posobj(8,1); //Set P1 X-Position + p1prep(96, &human); //Set P1 Y-Position & Graphics Pointer +} + +/* Execute Kernel Code */ +void kernel() { + dsplns(); //Display Playfield and Objects +} + +/* Execute Overscan Code */ +void ovrscn() { +} + +#include //Digit Graphics +#include //Finalization Code +