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.
|
|
|
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
|
|
|
|
|
|
|
|
import util.sqlite as sqlite
|
|
|
|
|
|
|
|
from time import sleep
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
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
|
|
|
|
)""")
|
|
|
|
|
|
|
|
#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)
|