I'm new to python/pygame. I want to define my own class. This class takes a list within a list and a acceleration function. I want to call these functions in another class so that they can be changed/ manipulated.
This is what i have:
Class baddie():
def __init__(self):
self._list=([random.randint(100,210),530])
def accelaration(self,acc):
clock=300-(acc)
I then want the baddie class to be called in the space class. So the user can manipulate the two above functions.
Class space():
b = baddie()
b.accelaration(203)
I also want the user to be able to call the list which takes a random integer and another number, but I don't understand how.
Any suggestions.