riverraidrust
riverraidrust copied to clipboard
A text based river raid clone in Rust; streamed
Pressing 'R' key could be used to restart the game (reset score, reset fuel, refresh map, refresh player and enemies position, delete any bullet etc.)
executing the game in the AlternativeScreen so the state of the terminal remains unchanged after quitting the game also bcz sometimes the map is so big and moving around requires...
I wanted to ask if is it ok to add Elapsed time text next to the score text ?
it is good to show player final score whenever game finished
As you suggested in latest video, i added constants to code to make it more clear and more readable.
if you played the game, and have ideas about the fuel start and fuel addition values, please comment.
Note: please do not do this one. I will do it on screencast.
bombs appear only if there is at least 10 cells empty to avoid being too hard to play. player dies only if location happens to be 1 cell or less...
### Test Cases #22 - ❌ map_generation -> Checking boundaries / Path collision ( #12 , #7 ) **FAILED** - ✅ enemy_behavior - ✅ player_behavior - ✅ player_shooting - ✅...
panicked as soon as game started with ``` Pthread 'main' panicked at /Users/jadi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rand-0.8.5/src/rng.rs:134:9:+++++++++++++++++++ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++cannot sample empty range +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace...