Implement move down with one click.

pull/3040/head
Pavel Machek 2023-10-08 12:05:30 +02:00
parent 87afbe8938
commit ade2df3f0f
1 changed files with 7 additions and 2 deletions

View File

@ -177,8 +177,13 @@ Bangle.on("drag", (e) => {
if (e.y < h) {
if (e.x < h)
rotate();
else
move(0, 1);
else {
let i = 0;
for (i=0; i<10; i++) {
move(0, 1);
g.flip();
}
}
} else {
if (e.x < h)
move(-1, 0);