clean logs and improve engine handling by removing hits and movment_delay from the loop to the engine

This commit is contained in:
andrea
2026-03-18 21:41:51 +01:00
parent abc0ddb661
commit 49a772f6de
6 changed files with 51 additions and 50 deletions

View File

@@ -60,13 +60,9 @@ void Renderer::render_score() {
void Renderer::render_winner() {
this -> _clear_matrix();
// check winner
if (_p1.get_score() > _p2.get_score()) {
Serial.println("Player 1 wins!!!");
if (_p1.get_score() > _p2.get_score())
_matrix.loadSequence(pone_wins);
}
else {
Serial.println("Player 2 wins!!!");
else
_matrix.loadSequence(ptwo_wins);
}
_matrix.play(true);
}