Hitbox detection?

a collision detection algorithm might be appropriate. take a look at this website for examples and explanations for code

interactive examples on this website

and a point shape collision detection on this website

3 Likes