fixed an error with types in screen with

This commit is contained in:
ZennDev1337 2023-10-06 09:52:08 +02:00
parent 54bf01cfea
commit 9ad03927de
3 changed files with 14 additions and 13 deletions

View file

@ -223,8 +223,8 @@ unsafe fn gameplay() {
arduboy.set_cursor(101, 2);
arduboy.print(G.ai_score as u16);
arduboy.draw_fast_hline(0, 0, WIDTH, Color::White);
arduboy.draw_fast_hline(0, (HEIGHT - 1) as i16, WIDTH, Color::White);
arduboy.draw_fast_hline(0, 0, WIDTH as u8, Color::White);
arduboy.draw_fast_hline(0, (HEIGHT - 1) as i16, WIDTH as u8, Color::White);
G.player.draw();
G.ai.draw();