Skip to content

juchiast/boxcrash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Box Crash

This is a simple game in Rust and Piston with a Camera for 3D rendering. This game was written with hope to be a good example of game development in Rust.

Demo videos

Build and run

Download binary (64-bit Windows and Linux) here: https://github.com/juchiast/boxcrash/releases

This code should be compiled with the latest stable version of Rust.

Almost all game's constants are configurable via resources/config.json. You should edit the screen size details to match your monitor.

Gameplay

Drive the box to avoid crashing with others, You can also speed-up, jump, and shoot them.

Control:

  • Move left/right: A, D
  • Speed-up: W
  • Jump: Space
  • Stare and shoot: Hold right mouse, then click left mouse

What's next?

  • Write an article about the writing of this code.
  • Test game on more machines.
  • Write a GUI to configure and restart game (Done).
  • Draw more details of box and the road.
  • Add crashing animations.
  • Add some sounds.
  • Try to build on Web and Android.

License

MIT