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
AlienBullet/AlienBullet.h
- Committer:
- josh_ohara
- Date:
- 2020-05-01
- Revision:
- 18:828e9f6ddfdb
- Parent:
- 17:8b1d16d56ad2
- Child:
- 27:eb755a345b1f
File content as of revision 18:828e9f6ddfdb:
#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
class AlienBullet
{
public:
AlienBullet();
~AlienBullet();
void init(int x, int y);
void render(N5110 &lcd);
void update();
Vector2D get_position();
void set_hit(bool x);
bool get_hit();
private:
int Y;
int X;
int Speed;
bool Hit;
};