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
rec/rect.h
- Committer:
- RickYu
- Date:
- 2018-04-22
- Revision:
- 10:ef01b3076040
- Parent:
- 5:0a116644cce2
- Child:
- 19:362ad1cd6d4a
File content as of revision 10:ef01b3076040:
#ifndef RECT_H #define RECT_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" class rect{ public: rect(); ~rect(); void init(int x,int y); void draw(N5110 &lcd); void update(Direction d,float mag); void add_score(); int get_score(); Vector2D get_pos(); void set_pos(Vector2D p); private: int rect_x; int rect_y; int rect_speed; int rect_score; }; #endif