Added debug mode, space now doubles the vector amount and added a ReadMe

This commit is contained in:
2022-05-13 16:14:40 +02:00
parent dd4271b4ce
commit 05be8ca622
4 changed files with 99 additions and 28 deletions

31
ReadMe.md Normal file
View File

@@ -0,0 +1,31 @@
# 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 :
```Bash
cargo build --release
cargo run --release
```
## Controls
W,A,S,D and Arrow Keys are for moving around the cube.
Left Click teleports the block the cursors location
Right Click cancels any velocity of the cube
Tab toggles a debug mode where you can see the actual vector applied to the cube (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 :)