Jun-19-2018, 01:20 PM
gDisplay
is an object of type pygame.Surface, you probably meant its width and height(gDisplay.get_width() - playerStartingx),(gDisplay.get_height() - playerStartingy)
Test everything in a Python shell (iPython, Azure Notebook, etc.)
- Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
- Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
- You posted a claim that something you did not test works? Be prepared to eat your hat.