int incomingLevel; int incomingVertical; void setup() { Serial.begin(9600); } void loop() { //check if serial data present in 'available' buffer if(Serial.available() > 0){ //synchronously read in serial data. if you expect two things to be //written, then you will want to do a serial read twice. //assign global parameters to their respective read in values. } //possible delay needed to adequately read in data //may not be need. This delay should range somewhere //between 5 - 50. However the larger the delay, the //bigger the slow down in game implementation. delay(_); }