예제 #1
0
    def adapter(self):
        # l = LedRenderer(15, 20)
        data = []
        for i in range(0, 15):
            for j in range(0, 20):
                data.append(self.grid[i][j])

        r = TextRenderer(15, 20)
        g = Grid(r.width, r.height, r)
        g.render(data)
예제 #2
0
from TextRenderer import TextRenderer
from Grids import Grid
import pygame
from Ressource import Ressource


r = TextRenderer(15, 20)
g = Grid(r.width, r.height, r)
ressource = Ressource()

pygame.init()
pygame.display.set_mode((100, 100))
pygame.joystick.init()


g.render(ressource.startbild)
ressource.start()
ressource.color_game()


#dino_jump()
#render_play()
#g.render(ressource.play)

running = True

while running:
    running_game = False
    for i in pygame.event.get():
        if i.type == pygame.QUIT:
            running = False