Aggiungi gestione dei controlli da tastiera e migliora la logica di spawn delle unità
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from .unit import Unit
|
||||
from .points import Point
|
||||
|
||||
import random
|
||||
import uuid
|
||||
@@ -99,6 +100,7 @@ class Rat(Unit):
|
||||
if not unit:
|
||||
unit = self
|
||||
self.game.units.pop(unit.id)
|
||||
self.game.spawn_unit(Point, unit.position_before)
|
||||
|
||||
def draw(self):
|
||||
direction = self.calculate_rat_direction()
|
||||
|
||||
Reference in New Issue
Block a user