![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Adam Baker 201166301
Dependencies: mbed Gamepad N5110
Diff: main.cpp
- Revision:
- 16:b0c0b1fc65d6
- Parent:
- 15:c4de6874aa19
- Child:
- 17:ecbafe932c19
--- a/main.cpp Mon Apr 01 12:00:48 2019 +0000 +++ b/main.cpp Mon Apr 01 12:35:05 2019 +0000 @@ -27,10 +27,10 @@ lcd.init(); lcd.setContrast(0.5); Move move; - Pos pos; + //Pos pos; move = runner.init(move); - pos = lev.init(pos); + //pos = lev.init(pos); ticker.attach(&timer_isr,1.0f/fps); @@ -47,7 +47,7 @@ move = runner.nextLevel(move); //must happen befofre 'fall' otherwise runner can fall out of screen - pos = runner.whatLevel(move, lcd, pos); + runner.whatLevel(move, lcd); move = runner.buttonPress(move, lcd, pad); @@ -65,13 +65,13 @@ move = runner.runnerState(move, lcd, speed); //what state runner is in (must come after next level - pos = runner.whatLevel(move, lcd, pos); // call level(why again)?? + runner.whatLevel(move, lcd); // call level(why again)?? - char buffer[14]; - sprintf(buffer,"%i",pos.d); - lcd.printString(buffer,0,1); + //char buffer[14]; + //sprintf(buffer,"%i",pos.d); + //lcd.printString(buffer,0,1); //sleep(); //sleep untill next refresh