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.cpp
- Committer:
- josh_ohara
- Date:
- 2020-03-26
- Revision:
- 8:86cb9a9f8a73
- Parent:
- 6:5bea67cc96f9
- Child:
- 9:8e695df3cc36
File content as of revision 8:86cb9a9f8a73:
// #include "Alien.h" // void Alien::init(int y, int size) { // X = WIDTH/2 - Size/2, // Y = y, // Size = size, // Speed = 0.2, // } // void Alien::draw(N5110 &lcd) { // lcd.drawRect(X, Y, Size, Size, FILL_BLACK); // } // Vector2D Alien::get_position() { // Vector2D p = {X,Y}; // return p; // } // void Alien::update() { // X+=Speed; // }