Aggiungi supporto per la risoluzione personalizzata e gestione della pausa nel gioco
This commit is contained in:
+2
-2
@@ -96,11 +96,11 @@ class Rat(Unit):
|
||||
if "fuck" in dir(self):
|
||||
self.fuck(unit)
|
||||
|
||||
def die(self, unit=None):
|
||||
def die(self, unit=None, score=10):
|
||||
if not unit:
|
||||
unit = self
|
||||
self.game.units.pop(unit.id)
|
||||
self.game.spawn_unit(Point, unit.position_before)
|
||||
self.game.spawn_unit(Point, unit.position_before, value=score)
|
||||
|
||||
def draw(self):
|
||||
direction = self.calculate_rat_direction()
|
||||
|
||||
Reference in New Issue
Block a user