game over

This commit is contained in:
2024-03-22 11:59:28 +01:00
parent 5b1dfde819
commit 611c56b329
3 changed files with 92 additions and 34 deletions

View File

@ -83,6 +83,13 @@ void canvasWipeRow(uint8_t row) {
memset(canvas.canvas, 0x80, canvas.width);
}
void canvasFillRow(uint8_t row, uint8_t color) {
for (uint8_t c = 0; c < canvas.width; c++) {
canvasSetPixel(c, row, color);
}
}
uint8_t canvasIsRowFilled(uint8_t row) {
uint8_t res = 1;
for (uint8_t column = 0; column < canvas.width; column++) {