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.
Character/Character.h@9:62fe47a1374f, 2020-05-23 (annotated)
- Committer:
- Albutt
- Date:
- Sat May 23 13:26:19 2020 +0000
- Revision:
- 9:62fe47a1374f
- Parent:
- 6:546eba371942
- Child:
- 10:71ced616a64f
Multiple Enemies Spawning, Bullets Despawn when hit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Albutt | 2:c25ec0da7636 | 1 | #include "mbed.h" |
Albutt | 2:c25ec0da7636 | 2 | #include "N5110.h" |
Albutt | 2:c25ec0da7636 | 3 | #include "Gamepad.h" |
Albutt | 2:c25ec0da7636 | 4 | |
Albutt | 2:c25ec0da7636 | 5 | |
Albutt | 2:c25ec0da7636 | 6 | class Character |
Albutt | 2:c25ec0da7636 | 7 | { |
Albutt | 2:c25ec0da7636 | 8 | public: |
Albutt | 2:c25ec0da7636 | 9 | Character(); |
Albutt | 2:c25ec0da7636 | 10 | ~Character(); |
Albutt | 2:c25ec0da7636 | 11 | void init(int x,int y); |
Albutt | 2:c25ec0da7636 | 12 | void draw(N5110 &lcd); |
Albutt | 2:c25ec0da7636 | 13 | void update(Direction d,float mag); |
Albutt | 4:b16b6078a432 | 14 | int get_direction(); |
Albutt | 4:b16b6078a432 | 15 | int get_x(); |
Albutt | 4:b16b6078a432 | 16 | int get_y(); |
Albutt | 2:c25ec0da7636 | 17 | |
Albutt | 2:c25ec0da7636 | 18 | private: |
Albutt | 2:c25ec0da7636 | 19 | |
Albutt | 2:c25ec0da7636 | 20 | int _x; |
Albutt | 2:c25ec0da7636 | 21 | int _y; |
Albutt | 2:c25ec0da7636 | 22 | int _speed; |
Albutt | 2:c25ec0da7636 | 23 | int _level; |
Albutt | 2:c25ec0da7636 | 24 | int _dir; |
Albutt | 2:c25ec0da7636 | 25 | }; |