diff options
| author | aleksav013 <aleksav013@gmail.com> | 2021-06-06 04:13:37 +0200 |
|---|---|---|
| committer | aleksav013 <aleksav013@gmail.com> | 2021-06-06 04:13:37 +0200 |
| commit | 3fdf53f3c1fbf58e67ab9570f035756469b99424 (patch) | |
| tree | 3dd0ff504f1b3ccd3cb650ec2964c3642aba6033 /src/Enemy2.cpp | |
| parent | 060ddd25ef18a6289d01283bc76bc4da90bf2a39 (diff) | |
Adding Vampiric UI; Using Valgrind to fix errors
Diffstat (limited to 'src/Enemy2.cpp')
| -rw-r--r-- | src/Enemy2.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Enemy2.cpp b/src/Enemy2.cpp index e89fbb2..a32b8d9 100644 --- a/src/Enemy2.cpp +++ b/src/Enemy2.cpp @@ -21,3 +21,8 @@ void Enemy2::izracunajpoz(float igracx,float igracy,float dt) x+=vx*dt; y+=vy*dt; } +void Enemy2::respawn(int sirina,int visina) +{ + Entity::respawn(sirina,visina); + vx=vy=0; +} |
