Added debug mode, space now doubles the vector amount and added a ReadMe
This commit is contained in:
31
ReadMe.md
Normal file
31
ReadMe.md
Normal 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 :)
|
||||
Reference in New Issue
Block a user