Ikenna Adrian Ozoemena 201157039
Dependencies: mbed
Diff: Enemy/Enemy.cpp
- Revision:
- 28:6319e928f0aa
- Parent:
- 20:5b4b3bf5795c
- Child:
- 30:711d722f3cef
--- a/Enemy/Enemy.cpp Thu Apr 18 13:57:41 2019 +0000 +++ b/Enemy/Enemy.cpp Thu Apr 18 20:09:29 2019 +0000 @@ -18,7 +18,18 @@ {0,0,1,1,0,1,1,0,0}, {0,0,0,0,1,0,0,0,0}, }; - +const int shooter[10][11] = { + {0,0,1,0,0,0,0,0,1,0,0}, + {0,1,0,1,0,0,0,1,0,1,0}, + {1,0,0,1,0,1,0,1,0,0,1}, + {1,0,0,1,1,0,1,1,0,0,1}, + {0,1,0,0,0,0,0,0,0,1,0}, + {0,1,0,0,1,1,1,0,0,1,0}, + {0,0,1,0,0,1,0,0,1,0,0}, + {0,0,0,1,0,0,0,1,0,0,0}, + {0,0,0,0,1,0,1,0,0,0,0}, + {0,0,0,0,0,1,0,0,0,0,0}, +}; void Enemy::init(int seeker_xpos,int seeker_ypos) { _seeker_xpos = seeker_xpos;