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.
Diff: Level/Level.h
- Revision:
- 7:68e06dda79f7
- Parent:
- 6:2ca1516ec1e2
- Child:
- 8:21b6d4dbce44
--- a/Level/Level.h Wed Apr 10 11:03:07 2019 +0000 +++ b/Level/Level.h Wed Apr 17 12:39:46 2019 +0000 @@ -6,7 +6,12 @@ #include "Gamepad.h" #include "Bitmap.h" -#define GRAVITY 2 + +struct Block { + Vector2D first; + Vector2D second; +}; + /*Level Class*/ @@ -15,13 +20,13 @@ public: Level(); ~Level(); - void init(Vector2D blocks [][2],int number_of_blocks); + void init(Block blocks [],int number_of_blocks); void render(N5110 &lcd); private: - Vector2D _blocks [][2] ; + Block _blocks [2] ; int _number_of_blocks; };