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
Spikes/Spikes.h
- Committer:
- lewisgw
- Date:
- 2019-04-10
- Revision:
- 16:331be5c7ed80
File content as of revision 16:331be5c7ed80:
/** Spikes Class * @brief Generates spikes that will end the game if the skateboarder touches * @author Lewis Wooltorton * @date April 2019 */ #ifndef SPIKES_H #define SPIKES_H #include "mbed.h" class Spikes { public: Spikes(); ~Spikes(); void init(); void update_spikes(); int * get_spikes_sprite(); int get_spikes_x(); private: int _x; int _spikes_counter; }; #endif