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: Spikes/Spikes.h
- Revision:
- 16:331be5c7ed80
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Spikes/Spikes.h Wed Apr 10 13:40:58 2019 +0000 @@ -0,0 +1,26 @@ +/** 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 \ No newline at end of file