Faster and slower

This commit is contained in:
jl777
2019-03-07 21:47:51 -11:00
parent 0ed77a852c
commit 5e44e6d33e

View File

@@ -858,7 +858,7 @@ int main(int argc, char **argv)
next = newwin(6, 10, 0, 2 * (tg->cols + 1) + 1);
hold = newwin(6, 10, 7, 2 * (tg->cols + 1) + 1);
score = newwin(6, 10, 14, 2 * (tg->cols + 1 ) + 1);
int32_t counter = 0;
// Game loop
while (running) {
running = tg_tick(tg, move);
@@ -866,8 +866,9 @@ int main(int argc, char **argv)
display_piece(next, tg->next);
display_piece(hold, tg->stored);
display_score(score, tg);
doupdate();
sleep_milli(50);
if ( (counter++ & 1) == 0 )
doupdate();
sleep_milli(25);
switch (getch()) {
case KEY_LEFT: