Big refactor and new run script

This commit is contained in:
ZennDev1337 2023-10-11 14:55:18 +02:00
parent 5796b78695
commit a54fa90edc
68 changed files with 769 additions and 336 deletions

View file

@ -257,11 +257,8 @@ pub unsafe extern "C" fn loop_() {
State::Win => (),
State::Pause => {
let msg = "[ Break ]\0";
let l = msg.len() as u8 * FONT_SIZE / 2;
arduboy.set_cursor(
((WIDTH / 2) as u16 - l as u16).try_into().unwrap(),
((HEIGHT / 2) as u16).try_into().unwrap(),
);
let l = msg.len() as i16 * FONT_WIDTH / 2;
arduboy.set_cursor(WIDTH / 2 - l, HEIGHT / 2);
snake.render();
snake.boarder();
arduboy.print(msg);