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.
Diff: lib/Donkey/Donkey.h
- Revision:
- 10:28575a6eaa13
- Child:
- 11:b288d01533cc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lib/Donkey/Donkey.h Tue May 07 22:49:13 2019 +0000 @@ -0,0 +1,35 @@ +/* +ELEC2645 Project +Donkey.h +Class file for Donkey Kong in Donkey Kong game. +*/ + +#ifndef DONKEY_H +#define DONKEY_H + +#include "mbed.h" +#include "N5110.h" +#include "Gamepad.h" +#include "main.h" + +class Donkey +{ + + public: + + int donkeykong_x; + int donkeykong_y; + int donkey_kong_speed; + int donkey_direction; + + Donkey(); + + ~Donkey(); + + void donkey_init(); + void donkeykong_movement(Gamepad &pad, N5110 &lcd); + +}; + + +#endif \ No newline at end of file