pygame 2 dimensional movement of an enemy towards the player, how to calculate x and y velocity?
In the game i am currently making i need to make an ennemy move towards a player (here the enemy is a blob) to make this, i already created a function : def calculate_enemy_movement(enemy): and inside of it i put what the function needs to do :