# Space Invaders for VIXEN-32 A Space Invaders game for VIXEN-32: 256-color graphics in a double-buffered framebuffer, the menu text in the machine's own ROM font, sound on the SID. ## Starting it The game is `invaders_b07.rvk` in the `games` folder on the card. Press **HELP** at Ready, pick it and type RUN. The joystick goes in port 2. ## Controls | Input | Action | |:-----------------|:----------------------| | Joystick left / right | Move the cannon | | Fire | Shoot / start a game | ## Gameplay - 5 x 11 invaders march from side to side, drop a row at each edge, and speed up as you shoot them down. - Points: 30 for the top row, 20 for the two rows below it, 10 for the bottom two rows. The mystery saucer is worth 50, 100, 150 or 300. - Four shields that crumble under fire. Three lives. - Clearing a wave brings a faster one that starts lower. Invaders that reach the cannon's row end the game. ## The screen 384 x 224. The play field is on the left, the panel on the right: your score, the hi-score, credits, a points table, the lives left (PLAYERS) and the wave. ## For developers The source is `risc/invaders` in the VIXEN-32 tree; it is not in the release. ``` cd risc/invaders && make ``` builds `invaders_bNN.rvk`. `BUILD_NO` at the top of the `Makefile` names it: bump it in the same change as the code it ships, and add a line to the build history at the top of `invaders.c`. | File | Purpose | |:----------------|:------------------------------------------------------------| | `invaders.c` | Game logic, states, drawing, input, sound, main loop. | | `vhw.h` | VIXEN hardware layer (framebuffer, tiles, palette, SID, joystick). | | `gfxdata.h` | Palette, sprite bitmaps, 5x7 framebuffer font. | | `bgpix.h` | The background picture (210 x 224). | | `hw_mister.h` | The hardware layer of the first version, kept for reference, not built. | | `PLAN.md` | Design notes from the first version. | | `preview/` | Artwork sources and screenshots. | Memory: framebuffer 0 at `0x300000`, framebuffer 1 at `0x320000`, and a clean copy of the background at `0x340000`. Each frame starts with one blitter copy of that clean background, so the CPU never redraws it. The game clears the sprite table at startup, so hardware sprites a previous program left on cannot show through.