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
Pup/Pup.h@19:33c77517cb88, 2020-05-21 (annotated)
- Committer:
- el18jgb
- Date:
- Thu May 21 13:54:14 2020 +0000
- Revision:
- 19:33c77517cb88
- Parent:
- 13:cfdfe60a2327
- Child:
- 20:6db651a3cfec
highscore saving and reading from sd card, more testing and better area for collisions based on sprute size;
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| el18jgb | 7:04a7826ff7e4 | 1 | #ifndef PUP_H |
| el18jgb | 7:04a7826ff7e4 | 2 | #define PUP_H |
| el18jgb | 7:04a7826ff7e4 | 3 | |
| el18jgb | 7:04a7826ff7e4 | 4 | #include "mbed.h" |
| el18jgb | 7:04a7826ff7e4 | 5 | #include "N5110.h" |
| el18jgb | 7:04a7826ff7e4 | 6 | #include "Gamepad.h" |
| el18jgb | 7:04a7826ff7e4 | 7 | #include "Aim.h" |
| el18jgb | 7:04a7826ff7e4 | 8 | #include "Heston.h" |
| el18jgb | 7:04a7826ff7e4 | 9 | |
| el18jgb | 7:04a7826ff7e4 | 10 | /** Power up Class |
| el18jgb | 7:04a7826ff7e4 | 11 | @date april 2020 |
| el18jgb | 7:04a7826ff7e4 | 12 | */ |
| el18jgb | 7:04a7826ff7e4 | 13 | |
| el18jgb | 7:04a7826ff7e4 | 14 | class Pup |
| el18jgb | 7:04a7826ff7e4 | 15 | { |
| el18jgb | 7:04a7826ff7e4 | 16 | |
| el18jgb | 7:04a7826ff7e4 | 17 | public: |
| el18jgb | 7:04a7826ff7e4 | 18 | Pup(); |
| el18jgb | 7:04a7826ff7e4 | 19 | ~Pup(); |
| el18jgb | 7:04a7826ff7e4 | 20 | void init(); |
| el18jgb | 7:04a7826ff7e4 | 21 | void draw(N5110 &lcd, bool state); |
| el18jgb | 7:04a7826ff7e4 | 22 | void position(int x, int y); |
| el18jgb | 7:04a7826ff7e4 | 23 | Vector2D get_pos(); |
| el18jgb | 19:33c77517cb88 | 24 | void set_pos(int x, int y); |
| el18jgb | 7:04a7826ff7e4 | 25 | |
| el18jgb | 7:04a7826ff7e4 | 26 | private: |
| el18jgb | 7:04a7826ff7e4 | 27 | |
| el18jgb | 7:04a7826ff7e4 | 28 | int _height; |
| el18jgb | 7:04a7826ff7e4 | 29 | int _width; |
| el18jgb | 7:04a7826ff7e4 | 30 | int _x; |
| el18jgb | 7:04a7826ff7e4 | 31 | int _y; |
| el18jgb | 7:04a7826ff7e4 | 32 | |
| el18jgb | 7:04a7826ff7e4 | 33 | }; |
| el18jgb | 7:04a7826ff7e4 | 34 | |
| el18jgb | 7:04a7826ff7e4 | 35 | #endif |