Permalink
Browse files

Set a non-zero dt in wasm

Without it, the explosion animation never finish which means the game
hangs after taking a dose/food.
  • Loading branch information...
tomassedovic committed Dec 20, 2017
1 parent 2741873 commit fd8c6ffebbbbd2c80f58da0e2bc22ef47d2ea31b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main.rs
@@ -385,7 +385,7 @@ pub fn update(state_ptr: *mut State) {
let mut state: Box<State> = unsafe { Box::from_raw(state_ptr) };


let dt = std::time::Duration::new(0, 0);
let dt = std::time::Duration::new(1, 0);
let display_size = point::Point::new(0, 0);
let fps = 60;
let keys: Vec<keys::Key> = vec![];

0 comments on commit fd8c6ff

Please sign in to comment.