AKA every time I try writing C with Microsoft APIs it ends up being C++
Invaders360 is an arcade emulator of the 1978 Space Invaders for the Xbox 360.
Working:
- 1 player game
- 2 player game
- Sounds
- Color overlay
TODO:
- High score persistence
- Better input and sound handling
- Better GPU drawing. Right now the game screen is redrawn to a texture, which is then rendered by the GPU.
- Y - Coin
- B - 1 player game
- X - 2 player game
- A - Shoot
- D-Pad left / right - move left / right
- In two-player mode shoot and D-Pad actions are mapped to the second connected controller
Visual Studio 2010 with the Xbox 360 SDK is required. Use the Release profile for building. Visual Studio can deploy the game to the console with all the necessary files.
The emulator needs two files next to the .xex executable:
sounds.pak- Sounds resembling the original are provided inres/sounds.pakinvaders.rom- Not included, you must bring your own ROM
When deploying from Visual Studio, the ROM is expected at res/invaders.rom. When copying files manually or running from an emulator, place sounds.pak and invaders.rom in the same directory as the .xex.
Additionally, invaders.rom must be a merged ROM. If your ROM is split, merge it first:
cat invaders.h invaders.g invaders.f invaders.e > invaders.rom
You can build your own sounds.pak with the sound_packer script. It expects files 0.wav .. 8.wav numbered in the order the sounds appear on the output ports (see the hardware documentation). The emulator expects 8 bit mono PCM wave files.
python sound_packer.py [input_dir] [output_file]
- Computer Archeology for the Space Invaders hardware documentation
- superzazu for a nice 8080 implementation
