add lock reset for infinity

This commit is contained in:
Edward Shen 2020-03-22 02:50:08 -04:00
parent 7a71a41784
commit 765b2655a3
Signed by: edward
GPG key ID: 19182661E818369F

View file

@ -141,9 +141,11 @@ pub trait Controllable {
impl Controllable for Game {
fn move_left(&mut self) {
self.playfield.move_offset(-1, 0);
self.update_lock_tick();
}
fn move_right(&mut self) {
self.playfield.move_offset(1, 0);
self.update_lock_tick();
}
fn move_down(&mut self) {
if self.playfield.move_offset(0, 1) {