I'm trying to get my head wraped around classes any help would be great.
Example code
Example code
class Game(): def __init__(self): # code that will be running # I know this throws error # How do I get these vars print(playerX) print(playerY) def player(playerX, playerY): playerX = 480 playeY = 50 # More player stuff def main(): # code for main to work if __name__ == "__main__": main()
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags