![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Adam Baker 201166301
Dependencies: mbed Gamepad N5110
Diff: BlockheadEngine/BlockheadEngine.cpp
- Revision:
- 35:7d69c0822ea9
- Parent:
- 34:911d7d05a8d2
- Child:
- 36:6f452777b9ce
--- a/BlockheadEngine/BlockheadEngine.cpp Thu May 02 13:22:38 2019 +0000 +++ b/BlockheadEngine/BlockheadEngine.cpp Fri May 03 12:30:08 2019 +0000 @@ -15,7 +15,7 @@ void BlockheadEngine::init() { - _move = _runner.init(_move); + _runner.init(); _pos = _lev.init(_pos); @@ -23,7 +23,7 @@ void BlockheadEngine::continueInit() { - _move = _runner.continue_init(_move); + _runner.continue_init(); _pos = _lev.init(_pos); @@ -34,12 +34,8 @@ _level = _runner.next_level(); _pos = _lev.whatLevel(lcd, _level); - _move = _runner.blockhead(_move, _pos, lcd, pad); - _gameover = _runner.gameover_flag(_move, pad); - - // char buffer[14]; - // sprintf(buffer,"%i", _move.go); - // lcd.printString(buffer,2,0); + _runner.blockhead(_pos, lcd, pad); + _gameover = _runner.gameover_flag(pad); return _gameover; }