Rusty Golfy

A little game inspired by "Messing with sdl2" where I tested some mechanics. The point is to have a Golf Game where you can shoot a ball against walls to get to a hole

Run it

You need to download Rust

Then you clone this repository

And laucnh it with :

cargo build --release

cargo run --release

Controls

W,A,S,D and Arrow Keys are for modifying the shot direction and force

[DEBUG] Left Click teleports the ball to the cursors location.

[DEBUG] Right Click cancels any velocity of the ball.

[DEBUG] Press R to randomize the map (you can maintain the key pressed if you want to kill a friend who has photosensitive epilepsy)

Tab toggles a debug mode where you can see the actual vector applied to the ball wich is render as a cube to see its hitbox and tiles borders

Spacebar releases the ball and when preseed back, resets the position and velocity of the ball

How to play

You can use your arrows keys or W,A,S,D to setup the launching angle and force and then press Space to release the ball and see it boucing around

Description
A game concept totally written in Rust with the sdl2 library to use window and gpu in crossplatform.
Readme 834 KiB
Languages
Rust 100%