Adam Baker 201166301
Dependencies: mbed Gamepad N5110
Diff: main.cpp
- Revision:
- 7:66ea4d394fea
- Parent:
- 6:cef9c2853315
- Child:
- 8:44678962ec01
--- a/main.cpp Fri Mar 22 18:07:39 2019 +0000 +++ b/main.cpp Fri Mar 22 22:05:03 2019 +0000 @@ -27,8 +27,9 @@ lcd.drawCircle(move.x,move.y,3,FILL_BLACK); - move = runner.nextLevel(move, lcd); //must happen befofre 'fall' otherwise runner can fall out of screen + move = runner.nextLevel(move); //must happen befofre 'fall' otherwise runner can fall out of screen + runner.whatLevel(move, lcd); float speed = runner.getSpeed(pad); @@ -50,12 +51,12 @@ - char buffer[14]; - sprintf(buffer,"%i",move.wjl); + /**char buffer[14]; + sprintf(buffer,"%i",move.l); lcd.printString(buffer,0,1); - + */ char buffer1[14]; - sprintf(buffer1,"%i",move.wjr); + sprintf(buffer1,"%i",move.l); lcd.printString(buffer1,0,0);