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: EnemySpawner/EnemySpawner.h
- Revision:
- 1:3916f272663e
- Child:
- 3:97cd7b3d89d0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/EnemySpawner/EnemySpawner.h Sun Apr 21 19:02:21 2019 +0000 @@ -0,0 +1,26 @@ +#ifndef ENEMYSPAWNER_H +#define ENEMYSPAWNER_H + +#include "mbed.h" +#include "Gamepad.h" +#include "Enemy.h" + + +class EnemySpawner +{ + +public: + EnemySpawner(); + ~EnemySpawner(); + + Enemy* init(int level); + void update(int fps); + +private: + float _minTimeBetweenSpawns; + float _timeIntoLevel; + Enemy *_enemies; + int _level; +}; + +#endif \ No newline at end of file