Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool estaEnRango(Enemigo* e, Personaje*p){
- int radio = e->radio;
- //Salio
- if (p->x > 100)
- return false;
- if (p->x <= e->x + radio)
- if (p->x >= e->x -radio)
- if (p->y <= e->y + radio)
- if (p->y >= e->y -radio)
- return true;
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement