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: CrossyChicken/CrossyChicken.h
- Revision:
- 17:67dbdfcdcec2
- Parent:
- 15:b15bf9357cd9
- Child:
- 18:6be4c3c94a3d
--- a/CrossyChicken/CrossyChicken.h Wed May 13 23:07:05 2020 +0000 +++ b/CrossyChicken/CrossyChicken.h Thu May 14 01:07:27 2020 +0000 @@ -18,10 +18,13 @@ //RIGHT }; -struct RoadObjects +struct Water { char sprite; int row; + float speed; + int x; + int y; }; class CrossyChicken { @@ -29,6 +32,12 @@ Level *local_level; int row_number; + + std::vector<Water> row_water_one; // multiple water objects + std::vector<Water> row_water_two; // multiple water objects + std::vector<Water> row_water_three; // multiple water objects + std::vector<Water>::size_type it; // iterator used to fill the vector + CrossyChicken(Level *level); public: