You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when Pacman hits the corners it stops but, as an example, if it hits the right corner, if you press the right key it moves right which should not and if you press up or down it moves and stops but it should continue moving upward or downward.
The text was updated successfully, but these errors were encountered:
I found it hard to handle the case when the man hits, say the top wall, and still moves continuously to right or left if there is only one variable controlling movement. But the code would look so much more elegant with one moving. Want to know if there is a way to do it. I am now trying to make the man face the right direction...
when Pacman hits the corners it stops but, as an example, if it hits the right corner, if you press the right key it moves right which should not and if you press up or down it moves and stops but it should continue moving upward or downward.
The text was updated successfully, but these errors were encountered: