![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
test 1 doc
Diff: main.cpp
- Revision:
- 4:cf5088ace087
- Parent:
- 3:e4e1cbf750b6
- Child:
- 5:928c2eee4109
--- a/main.cpp Mon May 18 16:06:27 2020 +0000 +++ b/main.cpp Mon May 18 18:46:13 2020 +0000 @@ -16,7 +16,7 @@ #include "Bitmap.h" #include "Player.h" #include "Engine.h" - + // objects Gamepad pad; N5110 lcd; @@ -44,10 +44,10 @@ int fps = 10; // frames per second display(); // first draw the initial frame wait(1.0f/fps); // and wait for one frame period - // game loop - read input, update the game state and render the display while (1) { lcd.setContrast( pad.read_pot1()); + engine.read_input(pad); engine.update(pad); display();