Rusty Pong

A simple version wich may include some upgrades from the tetra crate tutorial pong

How to run ?

You have to have Rust installed But you also need SDL to run it, here is how to install it :

Windows

  1. Go to the SDL website and download the version of the SDL2 development libraries that corresponds to your Rust toolchain. If you're using the MSVC toolchain, download the Visual C++ version. If you're using the GNU toolchain, download the MinGW version.
  2. Inside the .zip file, open the SDL2-2.0.x/lib/x64 folder and extract SDL2.lib and SDL2.dll to the root of your Cargo project. If you're on a 32-bit system, use the files in SDL2-2.0.x/lib/x86 instead. Sdl Website

Linux

# Ubuntu/Debian
sudo apt install libsdl2-dev

# Fedora/CentOS
sudo yum install SDL2-devel

# Arch Linux
sudo pacman -S sdl2

MacOs

brew install sdl2

# You will also need to add the following to your ~/.bash_profile, if it is not already present.
export LIBRARY_PATH="$LIBRARY_PATH:/usr/local/lib"

Run the game

cargo run --release

You can also just enter ``` cargo build --release ```` and then start the binary from target/src

How to play ?

This is a local multiplayer game, so two players can play using the same keyboard, player 1 uses 'w' and 's' and so player 2 uses the arrow keys. For now there is no leaderboard or music or sound effects but im working on it :) Check on updates, I might add features soon !

Description
My version of the example on the tetra documentation https://tetra.seventeencups.net/tutorial/01-creating-a-project
Readme 216 KiB
Languages
Rust 100%