Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 14:dc3524d11921
- Parent:
- 13:3bf02cb26d6d
- Child:
- 15:2bda80896a84
--- a/main.cpp Thu Mar 28 22:32:09 2019 +0000
+++ b/main.cpp Fri Mar 29 00:30:03 2019 +0000
@@ -5,6 +5,8 @@
#include "Levelengine.h"
#include "Gameengine.h"
+Vector2D p;
+Gameengine game;
Levelengine level;
Minerengine miner;
Gamepad pad;
@@ -20,6 +22,7 @@
init();
start_screen();
miner.miner_init();
+
while (1) {
@@ -32,6 +35,8 @@
miner.miner_move();
miner.miner_draw(lcd);
miner.miner_collision(lcd);
+ level.collision_points(lcd, pad);
+ game.collision();
wait(0.1);