First upload

Basic port complete - ESP32 specific features coming soon
This commit is contained in:
bdring
2018-03-19 08:31:45 -05:00
parent 629d362777
commit 23df267c9f
13 changed files with 3048 additions and 0 deletions

24
Conveyor.h Normal file
View File

@@ -0,0 +1,24 @@
#include "Arduino.h"
#include "settings.h"
class Conveyor
{
public:
void Spawn(int startPoint, int endPoint, int dir);
void Kill();
int _startPoint;
int _endPoint;
int _dir;
bool _alive;
};
void Conveyor::Spawn(int startPoint, int endPoint, int dir){
_startPoint = startPoint;
_endPoint = endPoint;
_dir = constrain(dir, -MAX_PLAYER_SPEED+1, MAX_PLAYER_SPEED - 1); // must allow some player speed
_alive = true;
}
void Conveyor::Kill(){
_alive = false;
}