Skip to content Skip to sidebar Skip to footer

What Is Causing This Attributeerror?

I've been looking all over for a solution but haven't found one so here's my code: class snakeGame: def _init_(self): pygame.init() self._isRunning = False

Solution 1:

You need two underscores before and after the init function: __init__. _init_ has no special meaning and isn't being called when your object is constructed.


Post a Comment for "What Is Causing This Attributeerror?"