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: Sprites/Sprites.h
- Revision:
- 39:ddca28745388
- Parent:
- 38:55bb9da08a52
diff -r 55bb9da08a52 -r ddca28745388 Sprites/Sprites.h --- a/Sprites/Sprites.h Sun Apr 14 15:18:58 2019 +0000 +++ b/Sprites/Sprites.h Sun Apr 14 18:26:16 2019 +0000 @@ -82,14 +82,23 @@ double ky[5]; }; +struct enemies { + bool eflag[5]; + double ex[5]; + double ey[5]; + int counter[5]; + int distance[5]; +}; + ////////structs for populating levels////////////////// struct Enemies { - bool eflag; + bool f; double ex; double ey; - int counter; - int distance; + int c; + double v; + int d; }; @@ -144,6 +153,7 @@ void soft_blocks(int x, int y, int z, N5110 &lcd); Vector2D get_pos(); + enemies _enem; keyed _k;