test_sdl

It is just a playground for me to test SDL2 features

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 moving around the ball.

Left Click teleports the ball to the cursors location.

Right Click cancels any velocity of the ball.

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 (maybe even more in the futur)

Spacebar doubles the acceleration (to use with moderation)

Bonus: Maintain the left click and moving(s) key(s) at the same time and it will store some momentum wich you can use when you release the click. Enjoy :)

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%