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
Subtracting 1 from room.y moves the player one unit north because it checks for a valid tile at room.x (x-axis stays the same) and room.y - 1 (one unit less on the y-axis, which represents going north).
Adding 1 to room.y moves the player one unit south because it checks for a valid tile at the same room.x and room.y + 1 (one unit more on the y-axis, which represents going south).
Why you subtract from north, you must add one to y axis ?
https://github.com/lakshaytalkstomachines/EscapeFromCave/blame/d49e2ae3af4c29d029f61c01cd3fa2096e05d1bb/sources/game.py#L39
and, subtract from south
https://github.com/lakshaytalkstomachines/EscapeFromCave/blame/d49e2ae3af4c29d029f61c01cd3fa2096e05d1bb/sources/game.py#L41C18-L41C18
The text was updated successfully, but these errors were encountered: