Game made in Rust using the Coffee crate.
A player uses WASD to move around and must avoid hitting the other player, who uses the arrow keys. The player who uses the red keys is much faster but has lower health. The objective is to hit the other play while in control until they die.
Webpage: https://logancammish.github.io/coffeegame
- Head over to here and download your executable
N.B: Linux support requires you have installed a large amount of package prerequsites (on Ubuntu most of these can be found in
build-essential
andlibudev-dev
, however, on some distributions the list is longer)
N.B: Linux is not supported due to an issue with Coffee when attempting to build for Wayland
- Install Rust with
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- The following script will create the binary in the /usr/bin directory:
#!/bin/bash
git clone https://github.com/logancammish/coffee-game.git
cd coffee-game
cargo build --release
sudo chmod +x ./target/release/game
sudo cp ./target/release/game /usr/bin
cd ..
rm coffee-game
- Install Rust here or with
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
on Unix-based systems (MacOS, Linux...) - Clone this github repository (with git:
git clone https://github.com/logancammish/coffee-game.git
) - Open the repository location in a terminal, and run
cargo build --release
- You will find your executable in
/target/release
Note: You can always roll back to an old release by downloading an older release
- Remove your executable, wherever it is located
- Redownload the executable from here in the same location as the old file
- Delete the old clone
- Follow the installation instructions again
Copyright © Logan Cammish 2024
License: MIT