Added Bullet shooting
This commit is contained in:
@@ -54,6 +54,8 @@ struct Monster{
|
||||
int atk;
|
||||
float moveSpd;
|
||||
float size;
|
||||
float attackCooldownTimer=0;
|
||||
float queueShotTimer=0;
|
||||
Key facingDirection;
|
||||
MonsterStrategy strategy;
|
||||
State state=State::NORMAL;
|
||||
@@ -88,6 +90,7 @@ struct Monster{
|
||||
void SetX(float x);
|
||||
void SetY(float y);
|
||||
void PerformJumpAnimation();
|
||||
void PerformShootAnimation();
|
||||
};
|
||||
|
||||
struct MonsterSpawner{
|
||||
|
||||
Reference in New Issue
Block a user