Mortal Kombat Game ELEC2645
Dependencies: mbed N5110 ShiftReg Joystick
Diff: Enemy.h
- Revision:
- 8:e2e2eb4ea0ca
- Parent:
- 7:737fb0c3dbef
- Child:
- 12:b4477a312158
--- a/Enemy.h Thu Apr 22 01:24:12 2021 +0000 +++ b/Enemy.h Thu Apr 22 18:33:23 2021 +0000 @@ -10,13 +10,13 @@ Enemy(); // constructor int get_x(); // get x co-ordinate int get_y(); // get y co-ordinate - void init(N5110 &lcd); + void init(); void set_x(int x); // set x co-ordinate void set_y(int y); // set y co-ordinate void add_x(int x); // add to the x co-ordinate void add_y(int y); // add to the y co-ordinate - void draw(N5110 &lcd); + void draw(N5110 &lcd, int input); void move_right(N5110 &lcd); // print move right animation void move_left(N5110 &lcd); // print move left animation void move_right2(N5110 &lcd); // 2nd move right animation to move legs