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: Fire/Fire.h
- Revision:
- 18:304700b5d8f8
- Parent:
- 16:331be5c7ed80
- Child:
- 21:20478f086bc2
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Fire/Fire.h Fri Apr 12 11:30:25 2019 +0000 @@ -0,0 +1,25 @@ +/** Fire Class +* @brief Generates a fire ball that will end the game if the skateboarder touches it * @author Lewis Wooltorton +* @date April 2019 +*/ + +#ifndef FIRE_H +#define FIRE_H + +#include "mbed.h" + +class Fire { + public: + Fire(); + ~Fire(); + + void init(); + void update_fire(); + int * get_fire_sprite(); + int get_fire_x(); + + private: + int _x; + bool _fire_counter; +}; +#endif \ No newline at end of file