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.
lib/Donkey/Donkey.h@13:94abfe83a294, 2019-05-08 (annotated)
- Committer:
- Kern_EL17KJTF
- Date:
- Wed May 08 19:49:35 2019 +0000
- Revision:
- 13:94abfe83a294
- Parent:
- 11:b288d01533cc
- Child:
- 20:c4e6941c98e2
Controls Menu Added.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Kern_EL17KJTF | 10:28575a6eaa13 | 1 | /* |
Kern_EL17KJTF | 10:28575a6eaa13 | 2 | ELEC2645 Project |
Kern_EL17KJTF | 10:28575a6eaa13 | 3 | Donkey.h |
Kern_EL17KJTF | 10:28575a6eaa13 | 4 | Class file for Donkey Kong in Donkey Kong game. |
Kern_EL17KJTF | 10:28575a6eaa13 | 5 | */ |
Kern_EL17KJTF | 10:28575a6eaa13 | 6 | |
Kern_EL17KJTF | 10:28575a6eaa13 | 7 | #ifndef DONKEY_H |
Kern_EL17KJTF | 10:28575a6eaa13 | 8 | #define DONKEY_H |
Kern_EL17KJTF | 10:28575a6eaa13 | 9 | |
Kern_EL17KJTF | 10:28575a6eaa13 | 10 | #include "mbed.h" |
Kern_EL17KJTF | 10:28575a6eaa13 | 11 | #include "N5110.h" |
Kern_EL17KJTF | 10:28575a6eaa13 | 12 | #include "Gamepad.h" |
Kern_EL17KJTF | 10:28575a6eaa13 | 13 | |
Kern_EL17KJTF | 11:b288d01533cc | 14 | |
Kern_EL17KJTF | 11:b288d01533cc | 15 | extern int donkeykong_x; |
Kern_EL17KJTF | 11:b288d01533cc | 16 | extern int donkeykong_y; |
Kern_EL17KJTF | 11:b288d01533cc | 17 | extern int donkey_kong_speed; |
Kern_EL17KJTF | 11:b288d01533cc | 18 | extern int donkey_direction; |
Kern_EL17KJTF | 10:28575a6eaa13 | 19 | class Donkey |
Kern_EL17KJTF | 10:28575a6eaa13 | 20 | { |
Kern_EL17KJTF | 10:28575a6eaa13 | 21 | |
Kern_EL17KJTF | 10:28575a6eaa13 | 22 | public: |
Kern_EL17KJTF | 10:28575a6eaa13 | 23 | |
Kern_EL17KJTF | 10:28575a6eaa13 | 24 | Donkey(); |
Kern_EL17KJTF | 10:28575a6eaa13 | 25 | |
Kern_EL17KJTF | 10:28575a6eaa13 | 26 | ~Donkey(); |
Kern_EL17KJTF | 10:28575a6eaa13 | 27 | |
Kern_EL17KJTF | 10:28575a6eaa13 | 28 | void donkey_init(); |
Kern_EL17KJTF | 10:28575a6eaa13 | 29 | void donkeykong_movement(Gamepad &pad, N5110 &lcd); |
Kern_EL17KJTF | 10:28575a6eaa13 | 30 | |
Kern_EL17KJTF | 10:28575a6eaa13 | 31 | }; |
Kern_EL17KJTF | 10:28575a6eaa13 | 32 | |
Kern_EL17KJTF | 10:28575a6eaa13 | 33 | |
Kern_EL17KJTF | 10:28575a6eaa13 | 34 | #endif |