refactoring

This commit is contained in:
2024-03-18 20:50:10 +01:00
parent 326d0f66b0
commit a68f74559f
4 changed files with 17 additions and 9 deletions

View File

@ -38,13 +38,13 @@ void gameExec(void *handle) {
break;
case e_gameOver:
for (uint8_t c = 0; c < canvas.width; c++) {
for (uint8_t c = 0; c < CANVAS_WIDTH; c++) {
canvasSetPixel(c, 0, 0x0d);
canvasSetPixel(c, canvas.height-1, 0x0d);
canvasSetPixel(c, CANVAS_HEIGHT - 1, 0x0d);
}
for (uint8_t r = 0; r < canvas.height; r++) {
for (uint8_t r = 0; r < CANVAS_HEIGHT; r++) {
canvasSetPixel(0, r, 0x0d);
canvasSetPixel(canvas.width-1, r, 0x0d);
canvasSetPixel(CANVAS_WIDTH - 1, r, 0x0d);
}
delay = 10;
state = e_delay;