Mortal Kombat Game ELEC2645
Dependencies: mbed N5110 ShiftReg Joystick
Diff: Enemy.h
- Revision:
- 1:3bdadf6f6dbd
- Child:
- 5:889ad974b64d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Enemy.h Sat Apr 17 11:38:39 2021 +0000 @@ -0,0 +1,22 @@ +#ifndef ENEMY_H +#define ENEMY_H + +#include "mbed.h" +#include "N5110.h" + +class Enemy +{ +public: + Enemy(); // constructor + void draw(N5110 &lcd, float _x, float _y); // x-coordinate and y-coordinates used to update place of enemy on lcd + void move_right(N5110 &lcd, float _x, float _y); // print move right animation + void move_left(N5110 &lcd, float _x, float _y); // print move left animation + void move_right2(N5110 &lcd, float _x, float _y); // 2nd move right animation to move legs + void move_left2(N5110 &lcd, float _x, float _y); // 2nd move left animation to move legs + void kick_right(N5110 &lcd, float _x, float _y); // enemy kick right + void kick_left(N5110 &lcd, float _x, float _y); // enemy kick left + void sword_left(N5110 &lcd, float _x, float _y); // enemy punch left + void sword_right(N5110 &lcd, float _x, float _y); // enemy punch right +}; + +#endif \ No newline at end of file