
Issue appears to occur when one of the obstacles x value reaches -4
Dependencies: mbed
Diff: Engine.cpp
- Revision:
- 0:e1f5bfbb6e53
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Engine.cpp Fri Mar 27 10:23:53 2020 +0000 @@ -0,0 +1,19 @@ +#include "Engine.h" + +Engine::Engine() +{ + +} + +Engine::~Engine() +{ + +} + +void Engine::run(N5110 &lcd, Gamepad &pad, Car &user) +{ + user.obupdate(); + user.update(pad); + user.obstacle(lcd); + user.draw(lcd); +} \ No newline at end of file