-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEnemy.cpp
More file actions
35 lines (35 loc) · 765 Bytes
/
Enemy.cpp
File metadata and controls
35 lines (35 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//#include "Enemy.hpp"
//
//ENEMY::ENEMY(AnimationManager &a, Level &lev, float x, float y) :Entity(a, x, y)
//{
// //option("player", float(1), 100, "stay");
// option("easyenemy", float(0.06), 10, "run");
//}
//
//void ENEMY::update(float time)
//{ //dir 1 â íîðì ñòîðîíó 0 çåðêàëüíî
// if (dir_attack == false) {
// timer += time;
// }
//
// if (timer > 4000 && (dir_attack == false))
// {
// x += dx*time;
// dx *= -1;
// dir = !dir;
// timer = 0;
// }
// if (attack_start == true) {
// anim.set("attack");
// dx = 0;
// attack_start = false;
// dir_attack = true;
// }
// if (Health <= 0) {
// anim.set("dead");
// currentFrame += 0.005*time;
// if (currentFrame > 7) { anim.pause(); life = false; }
// }
// anim.flip(dir);
// anim.tick(time);
//}