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
Alien/Alien.h
- Committer:
- josh_ohara
- Date:
- 2020-04-01
- Revision:
- 13:b85f14d35be1
- Parent:
- 12:be491ab6e742
- Child:
- 14:e88bcf5c0887
File content as of revision 13:b85f14d35be1:
#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
class Alien
{
public:
void init(int x, int y, int size);
void render(N5110 &lcd);
Vector2D get_position();
void update(N5110 &lcd, int step_x, int remainder_x);
void collision(N5110 &lcd);
private:
int X;
int Y;
bool Alive;
int Speed;
int Size;
int StartX;
int StartY;
};