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: Ghost/Ghost.h
- Revision:
- 26:f1d3b7e31091
- Parent:
- 25:31761087a83f
--- a/Ghost/Ghost.h Wed Apr 29 10:53:21 2020 +0000 +++ b/Ghost/Ghost.h Fri May 22 16:27:56 2020 +0000 @@ -39,10 +39,16 @@ int Type; }; +struct Sprite_2D { + float x; + float y; + int type; +}; + struct Map_Data { int number_of_track_lines; int number_of_dotted_lines; - int number_of_flags; + int number_of_sprites; int number_of_walls; int number_of_off_track_squares; int number_of_off_track_triangles; @@ -75,8 +81,9 @@ #ifndef ENUMS #define ENUMS -enum track {Small, Medium, Large}; -enum cars {Basic, Offroad, Drifter, Sportscar, Racecar, Stupid}; +enum track {Small, Medium, Large}; //Track Names +enum cars {Basic, Offroad, Drifter, Sportscar, Racecar, Stupid}; //Car Names (Stupid is now the alien space ship) +enum sprites {Flag, Helicopter, People_Standing_1, People_Standing_2, People_Cheering}; #endif /** Ghost Class