Пример #1
0
    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)
Пример #2
0
    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)
Пример #3
0
    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)
Пример #4
0
    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)
Пример #5
0
    def draw(self, rgb):
        State.draw(self, rgb)

        for character in self.characters:
            character.draw(rgb)
Пример #6
0
    def draw(self, rgb):
        State.draw(self, rgb)

        self.sprite.draw(rgb)
Пример #7
0
    def draw(self, rgb):
        State.draw(self, rgb)

        for character in self.characters:
            character.draw(rgb)
Пример #8
0
    def draw(self, rgb):
        State.draw(self, rgb)

        self.sprite.draw(rgb)