Hextris / hextris

Fast paced HTML5 puzzle game inspired by Tetris!
https://hextris.io
Other
2.21k stars 969 forks source link

fixed bug #171

Closed Nuno0o closed 2 years ago

Nuno0o commented 7 years ago

Fixed a bug that made the center hex escape the screen.This was caused because the magnitude of the shakes was updated through "obj.magnitude /= 2 * this.dt;".When this.dt would be less than 0.5, the magnitude would increase instead of decrease,leading the main hex to disapear from the screen due to such a high magnitude

lengstrom commented 7 years ago

Rather than subtraction maybe we could just have some kind of max statement to some sane value?

Nuno0o commented 7 years ago

it should work this way