Measure Once


Measure Once

a game where you repair holes by cutting wood to the right shapes. works best with a gamepad, can be played on keyboard as well.

screenshot

download for win32

play in browser

web version known issues:

  • west and north on gamepad seem to be switched. looks like a gilrs issue
  • audio causes slowdown on first use. looks like a kira issue

code

there are lots of things wrong with this code. it is not exemplary, it is more like gamejam code, but maybe some parts will be useful for some people.

  • it is mainly uncommented
  • it doesn’t use any states
  • the wood shader is an abomination
  • the code is badly organised with too much in main.rs
  • the input system is a bit tangled up with the gameplay logic (for movement)
  • it uses ActionEvent with &str keys all over the place - it should use separate events, or at least an action enum instead of &str
  • etc

it was mainly done because i got tired of not finishing anything, and to see how much effort it takes to get going with sfx, ui, inputs, deployment, etc. the whole thing was built in around 10 days, which splits up roughly as:

  • 25% actual gameplay code
  • 25% graphics/sfx
  • 25% ui
  • 15% input management
  • 10% deployment