Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 5
0
    def draw(self, rgb):
        State.draw(self, rgb)

        for character in self.characters:
            character.draw(rgb)
Exemplo n.º 6
0
    def draw(self, rgb):
        State.draw(self, rgb)

        self.sprite.draw(rgb)
Exemplo n.º 7
0
    def draw(self, rgb):
        State.draw(self, rgb)

        for character in self.characters:
            character.draw(rgb)
Exemplo n.º 8
0
    def draw(self, rgb):
        State.draw(self, rgb)

        self.sprite.draw(rgb)