Commit Graph

22 Commits

Author SHA1 Message Date
andrea
1f6e65c5ec renderer class 2026-03-18 19:46:52 +01:00
andrea
792c0f835c clean main sketch file 2026-03-18 19:00:50 +01:00
andrea
5afa726015 minors 2026-03-18 18:24:52 +01:00
andrea
48fef4be86 move some logics to loop() 2026-03-18 18:12:38 +01:00
andrea
3d8881ab3d total reframe with classes 2026-03-17 23:25:30 +01:00
andrea
c774e11923 Improve arduino_pong.ino using enum to handle game statuses and switch case for better readibility and little memory improvements
Some checks failed
Arduino Pong CI / build (macos-latest) (push) Has been cancelled
Arduino Pong CI / build (ubuntu-latest) (push) Has been cancelled
Arduino Pong CI / build (windows-latest) (push) Has been cancelled
Arduino Pong CD / release (push) Has been cancelled
2026-03-17 18:42:48 +01:00
andrea
b3f6aeb3fe Show scores on the matrix, show winner message once someone reches 9, add start ball movement delay on start and restart after score, and fix uncentered ball on restart
Some checks failed
Arduino Pong CI / build (macos-latest) (push) Has been cancelled
Arduino Pong CI / build (ubuntu-latest) (push) Has been cancelled
Arduino Pong CI / build (windows-latest) (push) Has been cancelled
2026-03-16 22:37:53 +01:00
andrea
cb42a45aa7 move all libs into src
Some checks failed
Arduino Pong CI / build (macos-latest) (push) Has been cancelled
Arduino Pong CI / build (ubuntu-latest) (push) Has been cancelled
Arduino Pong CI / build (windows-latest) (push) Has been cancelled
2026-03-15 21:14:04 +01:00
andrea
c47291e258 minors
Some checks failed
Arduino Pong CI / build (ubuntu-latest) (push) Has been cancelled
Arduino Pong CI / build (windows-latest) (push) Has been cancelled
Arduino Pong CI / build (macos-latest) (push) Has been cancelled
Arduino Pong CD / release (push) Has been cancelled
2026-03-15 20:29:56 +01:00
andrea
fec4db0c5d improve rerender logics
Some checks failed
Arduino Pong CI / build (macos-latest) (push) Has been cancelled
Arduino Pong CI / build (ubuntu-latest) (push) Has been cancelled
Arduino Pong CI / build (windows-latest) (push) Has been cancelled
2026-03-15 20:23:52 +01:00
andrea
5eeb735364 split main .ino fine into multiple sub files
Some checks failed
Arduino Pong CI / build (macos-latest) (push) Has been cancelled
Arduino Pong CI / build (ubuntu-latest) (push) Has been cancelled
Arduino Pong CI / build (windows-latest) (push) Has been cancelled
2026-03-15 19:56:20 +01:00
andrea
5b94e21f21 minor text
Some checks failed
Arduino Pong CI / build (macos-latest) (push) Has been cancelled
Arduino Pong CI / build (ubuntu-latest) (push) Has been cancelled
Arduino Pong CI / build (windows-latest) (push) Has been cancelled
2026-03-15 17:08:59 +01:00
andrea
8a7bd2b192 define matrix led size 2026-03-15 17:07:03 +01:00
andrea
487756978f fix duplicated frame initialization
Some checks failed
Arduino Pong CI / build (macos-latest) (push) Has been cancelled
Arduino Pong CI / build (ubuntu-latest) (push) Has been cancelled
Arduino Pong CI / build (windows-latest) (push) Has been cancelled
2026-03-15 16:22:28 +01:00
andrea
486ee4df97 gradually increase ball speed if noone scores
when someone scores a point, speed is resetted to the initial speed
2026-03-15 10:05:03 +01:00
andrea
b9bc138cad small refactoring to keep code more cleaning
and fixed a crash when the ball goes out of matrix
in any case now move_ball() function, now prevents
the ball to goes out, if ball coordinates
are out of the matrix, ball restarts from initial position
without assigning any point
2026-03-15 09:39:12 +01:00
andrea
e7f0c3cc1a optimize rerender matrix, do it only if something is changed from the last render 2026-03-14 23:47:44 +01:00
andrea
fa47480aef move render_matrix() on the main loop, to get smoother players movements 2026-03-14 22:07:18 +01:00
andrea
adf2498344 players can hit the ball 2026-03-14 21:53:39 +01:00
andrea
fcafc56012 move players and ball 2026-03-14 21:37:29 +01:00
andrea
ebc6596dce move players and ball 2026-03-14 21:35:19 +01:00
andrea
f2a6a02005 define arduino_pong.ino and Makefile to compile and run software from cli 2026-03-14 20:22:06 +01:00