renamed player to players, correct kill position used in gameover, corrected score, MAX_PLAYERS moved to config

This commit is contained in:
Phew
2026-03-25 22:53:17 +01:00
parent fdc7a803a4
commit db05e5dc90
3 changed files with 31 additions and 29 deletions

View File

@@ -1,4 +1,5 @@
#include "Arduino.h"
#include "config.h"
class Enemy
{
@@ -9,7 +10,7 @@ class Enemy
bool Alive();
int _pos;
int _wobble;
int playersSide[4]; // This should be MAX_PLAYERS
int playersSide[MAX_PLAYERS];
private:
int _dir;
int _speed;