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
The attribute self.image of each class is created when each object is instanced, for SnakeUnits and Food. That means there is a lot equal images stored in memory.
Create a image when the first object is created, then reference that object for every instance of the same class created after that.
The text was updated successfully, but these errors were encountered:
The attribute self.image of each class is created when each object is instanced, for SnakeUnits and Food. That means there is a lot equal images stored in memory.
Create a image when the first object is created, then reference that object for every instance of the same class created after that.
The text was updated successfully, but these errors were encountered: