add lock reset for infinity
This commit is contained in:
parent
7a71a41784
commit
765b2655a3
1 changed files with 2 additions and 0 deletions
|
@ -141,9 +141,11 @@ pub trait Controllable {
|
||||||
impl Controllable for Game {
|
impl Controllable for Game {
|
||||||
fn move_left(&mut self) {
|
fn move_left(&mut self) {
|
||||||
self.playfield.move_offset(-1, 0);
|
self.playfield.move_offset(-1, 0);
|
||||||
|
self.update_lock_tick();
|
||||||
}
|
}
|
||||||
fn move_right(&mut self) {
|
fn move_right(&mut self) {
|
||||||
self.playfield.move_offset(1, 0);
|
self.playfield.move_offset(1, 0);
|
||||||
|
self.update_lock_tick();
|
||||||
}
|
}
|
||||||
fn move_down(&mut self) {
|
fn move_down(&mut self) {
|
||||||
if self.playfield.move_offset(0, 1) {
|
if self.playfield.move_offset(0, 1) {
|
||||||
|
|
Loading…
Reference in a new issue