add lock reset for infinity

master
Edward Shen 2020-03-22 02:50:08 -04:00
parent 7a71a41784
commit 765b2655a3
Signed by: edward
GPG Key ID: 19182661E818369F
1 changed files with 2 additions and 0 deletions

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) {