Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 fd8c6ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Expand Up @@ -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![];
Expand Down

0 comments on commit fd8c6ff

Please sign in to comment.