Skip to content

mith/pong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A simple pong clone using the bevy game engine

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published