Added web server and serial port setup

- Access game stats via wifi access point and web server
- Setup game preferences via serial port (EEPROM issue causes
crashes...help me fix). Does not affect game normal play.
- Updated to recent stuff on Arduino port.
This commit is contained in:
bdring
2018-03-22 11:16:47 -05:00
parent 23df267c9f
commit 97341671b9
5 changed files with 600 additions and 115 deletions

View File

@@ -4,18 +4,18 @@
class Conveyor
{
public:
void Spawn(int startPoint, int endPoint, int dir);
void Spawn(int startPoint, int endPoint, int speed);
void Kill();
int _startPoint;
int _endPoint;
int _dir;
int _speed;
bool _alive;
};
void Conveyor::Spawn(int startPoint, int endPoint, int dir){
void Conveyor::Spawn(int startPoint, int endPoint, int speed){
_startPoint = startPoint;
_endPoint = endPoint;
_dir = constrain(dir, -MAX_PLAYER_SPEED+1, MAX_PLAYER_SPEED - 1); // must allow some player speed
_speed = constrain(speed, -MAX_PLAYER_SPEED+1, MAX_PLAYER_SPEED - 1); // must allow some player speed
_alive = true;
}