19 lines
510 B
Python
19 lines
510 B
Python
from gamedata.objects.base import BaseObject
|
|
|
|
class Manager(BaseObject):
|
|
def __init__(self,game):
|
|
super().__init__(0,0,game)
|
|
|
|
self.score = 0
|
|
self.spawntimer = game.lib.Timer(30) # Time elapsing each lemming spawn
|
|
self.scoreratio = 1 # Points earned per seconds and per lemming
|
|
|
|
def step(self):
|
|
for i in self.game.gameloop.findname("Lemming"):
|
|
self.score+=self.scoreratio*self.game.dt
|
|
print(int(self.score))
|
|
|
|
def draw(self):
|
|
pass
|
|
|