You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
811 B

2 years ago
from game.personnage import *
from game.core import Game
import graphics.layers as layers
from graphics.engine import Screen
import graphics.key_listener as listener
2 years ago
import util.sqlite as sqlite
2 years ago
from time import sleep
if __name__ == "__main__":
2 years ago
sqlite.build_thread().start()
sqlite.db.execute(
"""CREATE TABLE IF NOT EXISTS personnages (
id INT IDENTITY(1,1) PRIMARY KEY,
nom VARCHAR(20) NOT NULL,
pdv INT NOT NULL,
exp INT NOT NULL,
cat VARCHAR(20) NOT NULL,
expcoef INT NOT NULL
)""")
2 years ago
#Initialise la partie graphique
game = Game()
screen = Screen(game)
layers.StartPopUp(1)
layers.GUI(2)
listener.build_thread(screen).start()
while True:
screen.draw()
sleep(0.4)