def draw(self, rgb): State.draw(self, rgb) for character in self.characters: character.draw(rgb) if self.explosion: self.explosion.draw(rgb) if self.explosion.ended: self.explosion = None if self.point: rgb.setPixel(self.point, TURQUE)
def draw(self, rgb): State.draw(self, rgb) for y in range(PIXEL_DIM_Y): left, right = self.map[y][0], self.map[y][1] for lx in range(left): pixel = Vector(lx, y) rgb.setPixel(pixel, self.wall_color) for rx in range(right): pixel = Vector(PIXEL_DIM_X - 1 - rx, y) rgb.setPixel(pixel, self.wall_color) self.ship.draw(rgb) for sprite in self.sprites: sprite.draw(rgb)
def draw(self, rgb): State.draw(self, rgb) for character in self.characters: character.draw(rgb)
def draw(self, rgb): State.draw(self, rgb) self.sprite.draw(rgb)