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
Aim.h@7:04a7826ff7e4, 2020-05-17 (annotated)
- Committer:
- el18jgb
- Date:
- Sun May 17 17:05:13 2020 +0000
- Revision:
- 7:04a7826ff7e4
- Parent:
- 6:d560ecc21ae6
- Child:
- 8:0b9a824c75fe
game gets harder as peed progressivly gets faster. implemented a cock power up to change speed back down;
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| el18jgb | 5:c37f4ed2cad3 | 1 | #ifndef AIM_H |
| el18jgb | 4:6f898b000797 | 2 | #define AIM_H |
| el18jgb | 1:1144f48b5965 | 3 | |
| el18jgb | 1:1144f48b5965 | 4 | #include "mbed.h" |
| el18jgb | 1:1144f48b5965 | 5 | #include "N5110.h" |
| el18jgb | 1:1144f48b5965 | 6 | #include "Gamepad.h" |
| el18jgb | 7:04a7826ff7e4 | 7 | #include "Heston.h" |
| el18jgb | 1:1144f48b5965 | 8 | |
| el18jgb | 4:6f898b000797 | 9 | /** Aim Class |
| el18jgb | 1:1144f48b5965 | 10 | @date april 2020 |
| el18jgb | 1:1144f48b5965 | 11 | */ |
| el18jgb | 1:1144f48b5965 | 12 | |
| el18jgb | 4:6f898b000797 | 13 | class Aim |
| el18jgb | 1:1144f48b5965 | 14 | { |
| el18jgb | 1:1144f48b5965 | 15 | |
| el18jgb | 1:1144f48b5965 | 16 | public: |
| el18jgb | 4:6f898b000797 | 17 | Aim(); |
| el18jgb | 4:6f898b000797 | 18 | ~Aim(); |
| el18jgb | 1:1144f48b5965 | 19 | void init(); |
| el18jgb | 6:d560ecc21ae6 | 20 | void draw(N5110 &lcd, bool state); |
| el18jgb | 1:1144f48b5965 | 21 | void update(Gamepad &pad); |
| el18jgb | 5:c37f4ed2cad3 | 22 | Vector2D get_pos(); |
| el18jgb | 1:1144f48b5965 | 23 | |
| el18jgb | 1:1144f48b5965 | 24 | private: |
| el18jgb | 1:1144f48b5965 | 25 | |
| el18jgb | 1:1144f48b5965 | 26 | int _height; |
| el18jgb | 1:1144f48b5965 | 27 | int _width; |
| el18jgb | 1:1144f48b5965 | 28 | int _x; |
| el18jgb | 1:1144f48b5965 | 29 | int _y; |
| el18jgb | 6:d560ecc21ae6 | 30 | //int _state; |
| el18jgb | 1:1144f48b5965 | 31 | //int d; |
| el18jgb | 1:1144f48b5965 | 32 | float mag; |
| el18jgb | 1:1144f48b5965 | 33 | int _speed; |
| el18jgb | 1:1144f48b5965 | 34 | |
| el18jgb | 1:1144f48b5965 | 35 | }; |
| el18jgb | 1:1144f48b5965 | 36 | #endif |