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.
Fork of fy15raf by
Asteroids/Asteroid.h
- Committer:
- RehamFaqehi
- Date:
- 2018-04-24
- Revision:
- 8:13cef7cb872e
- Parent:
- 6:7b733b2a6cf6
- Child:
- 15:658f1216ee84
File content as of revision 8:13cef7cb872e:
#ifndef stone_H #define stone_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" #include "Rocket.h" class Asteroid { public: Asteroid(); ~Asteroid(); void init(float speed); void draw(N5110 &lcd); void update(); Vector2D get_pos(); private: Vector2D _velocity; Vector2D p; int _size; int _x; int _y1; }; #endif