Skip to content

AurelienRichez/space-invaders

Repository files navigation

Space invaders emulator

This is a toy project to learn how to make a simple emulator in rust. I first used gtk to run the graphic interface, then tried piston, and finally took a shot at webassembly. So there are currently 3 implementations of the game (2 native and one in the browser). Every implementation is based on intel-8080-emu which is a library I extracted from this project.

There are 4 crates :

Requirements

⚠⚠⚠ The real space invaders rom is not included in this repository ⚠⚠⚠ The provided rom space-invaders-core/resources/dummy.rom runs fine and is useful to test that everything compiles, but it just draws random garbage on the screen. You have to add the file space-invaders-core/resources/invaders.rom which can be easily found on the internet. The compiler automatically embed invaders.rom if it exists.

gtk-space-invaders needs the gtk-rs requirements (sudo apt install libgtk-3-dev on a debian base distribution, brew install gtk+3 on osx)

wasm-space-invaders needs wasm-pack and npm.

Troubleshooting

I added space-invaders-core/resources/invaders.rom but the emulator keep showing the random stuff.

The compiler automatically embed invaders.rom if it exists but you might need to run cargo clean to force a recompilation if you compiled first with dummy.rom.

References

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published