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.
Dependencies: mbed
Diff: Enemy/Enemy1.h
- Revision:
- 21:7d4827af00d6
- Parent:
- 18:ba4159ab4da7
- Child:
- 22:8e38efeae0c9
--- a/Enemy/Enemy1.h Wed May 08 18:36:45 2019 +0000
+++ b/Enemy/Enemy1.h Wed May 08 23:17:35 2019 +0000
@@ -15,14 +15,27 @@
{1,1,1,1,1,1,1}
};
+
+const int enemy_1[7][7] = {
+ {1,1,1,1,0,0,0},
+ {0,0,0,1,0,0,0},
+ {0,0,0,1,0,0,0},
+ {0,0,0,1,0,0,0},
+ {0,0,0,1,0,0,0},
+ {0,0,0,1,0,0,0},
+ {1,1,1,1,1,1,1}
+
+ };
class Enemy1{
public:
void init(int x,int y);
- void drawSprite(N5110 &lcd);
- void movement(N5110 &lcd);
+ void drawSpriteA(N5110 &lcd);
+ void drawSprite1(N5110 &lcd);
+ void movementA(N5110 &lcd);
+ void movement1(N5110 &lcd);
int get_x_enem();
int get_y_enem();
bool northCollision(int x, int y, N5110 &lcd);