Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 988 Bytes

README.md

File metadata and controls

21 lines (13 loc) · 988 Bytes

Pong

This is a simple Pong clone I wrote for some practice with the Bevy game engine and Nix. It serves as a simple example of how use Nix to build Rust packages for webassembly, letting Nix manage the toolchain and other dependencies. Right now the AI plays perfectly and never misses, I haven't managed to score at least. Tweaking the difficulty is the next goal.

How to run

Web

Play the game here

Nix

To run the game locally using Nix, use the following command:

nix run github:mith/pong

How to contribute

Should it somehow be your deepest desire to contribute to a pong game, setting up a development environment is easy thanks to Nix and Direnv; run direnv allow in the source directory and any shells and editors with support for direnv will have the toolchain and tools like rust-analyzer linked into their environment when opening the project.