Auto attacking now based on click position. Damage numbers will stop when they reach a certain height. Monsters not counted in range if dead.

This commit is contained in:
2023-06-15 04:53:57 -05:00
parent 3aebde6287
commit 7c542740cc
6 changed files with 45 additions and 13 deletions
+2 -2
View File
@@ -4,8 +4,8 @@
struct DamageNumber{
vf2d pos;
int damage;
float moveUpTime;
float lifeTime;
float lifeTime=0;
const static float MOVE_UP_TIME;
DamageNumber();
DamageNumber(vf2d pos,int damage);
};