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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user