def update(self, dt): InputWatcher.update() self.ship.update(dt) self.debugRenderer.update() if InputWatcher.wasPressed(pygame.K_SPACE): # HACK CP entity = Entity.EntityList[random.randint(1,4)](self.ship.getWorldDropPosition()) entity.applyImpulse(self.ship.getWorldVelocity()) self.entityList.append(entity)
def update(self): if InputWatcher.wasPressed(pygame.K_BACKSPACE): self.debugFlag = not self.debugFlag