template: global, more xlog
This commit is contained in:
parent
ac045c3e0e
commit
6498472d7a
1 changed files with 2 additions and 1 deletions
|
@ -41,7 +41,7 @@ class Player(Obj):
|
|||
|
||||
# Afficher le texte d'information
|
||||
def print_debug(self, lines):
|
||||
lines.append("Player {}".format(self.oid))
|
||||
lines.append("Player {} pos=({}, {}) speed=({}, {})".format(self.oid, self.pos[0], self.pos[1], self.speed[0], self.speed[1]))
|
||||
|
||||
screen = pygame.display.set_mode(size) # définir la taille de la fenêtre
|
||||
clock = pygame.time.Clock()
|
||||
|
@ -54,6 +54,7 @@ removable = [] # identifiants des objets à supprimer
|
|||
|
||||
# Supprimer les objets à supprimer
|
||||
def remove_objects():
|
||||
global removable, objects, players
|
||||
for oid in removable:
|
||||
if oid in objects:
|
||||
objects.pop(oid)
|
||||
|
|
Loading…
Reference in a new issue