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: rec/rect.h
- Revision:
- 2:421fb0670c5c
- Child:
- 3:1a134243e2f0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/rec/rect.h Thu Apr 12 22:46:30 2018 +0000 @@ -0,0 +1,30 @@ +#ifndef RECT_H +#define RECT_H + +#include "mbed.h" +#include "N5110.h" +#include "Gamepad.h" +class rect{ + +public: + rect(); + ~rect(); + void init(int x); + void draw(N5110 &lcd); + void update(Direction d,float mag); + Vector2D get_pos(); + +private: + int rect_x; + int rect_y; + int rect_speed; + + int bullet_x; + int bullet_y; + int bullet_speed; + + +}; + + +#endif \ No newline at end of file