# orlog_draw.py

Created by fedyna-kevin

Created on November 23, 2020

1.84 KB

emplacements de jeu

###################### Partition de l'espace ############################

from kandinsky import fill_rect, draw_string

x = 0
y = 0
rev = 0

""" Espaces principaux de jeu """

fill_rect(0,0,320,100,(200,)*3)
fill_rect(0,200,320,22,(200,)*3)

""" DEDUIT GRACE A EXPERIMENTATIONS """

def dessine(x,y,rev):
fill_rect(x+20+220*(not rev),y+10+44*rev,60,36,(0,255,0))
fill_rect(x+174,y+20+39*(not rev),126,21,(0,0,255))
fill_rect(x+20,y+20+39*(not rev),126,21,(255,0,0))
fill_rect(x+174,y+84-39*rev,126,5,(255,255,0))
fill_rect(x+150,y+10+44*rev,20,20,(255,180,0))
draw_string("XX",x+150,y+35+44*rev,(255,180,0))
fill_rect(x+182-92*rev,y+10+44*rev,48,36,(0,0,0))
draw_string("vroum vroum ", x+20+158*rev, y+8+42*rev, (0,)*3)
draw_string("vroum vroum ", x+20+158*rev, y+8+42*rev + 16, (0,)*3)
draw_string("vroum vroum ", x+20+158*rev, y+8+42*rev + 32, (0,)*3)

dessine(0,0,0)
dessine(0,95,1)

""" Espaces de vie """

#fill_rect(240,10,60,36,(0,255,0))
#fill_rect(20,154,60,36,(0,255,0))

""" Dés à choisir """

#fill_rect(174,59,126,21,(0,0,255))
#fill_rect(174,120,126,21,(0,0,255))

""" Dés choisis """

#fill_rect(20,59,126,21,(255,0,0))
#fill_rect(20,120,126,21,(255,0,0))

""" selection des dés """

#fill_rect(174,84,126,5,(255,255,0))
#fill_rect(174,145,126,5,(255,255,0))

""" Monnaie """

#fill_rect(150,10,20,20,(255,180,0))
#draw_string("XX",150,35,(255,180,0))
#fill_rect(150,154,20,20,(255,180,0))
#draw_string("XX",150,179,(255,180,0))

""" Dieux """

#fill_rect(182,10,48,36,(0,0,0))
#fill_rect(90,154,48,36,(0,0,0))

""" Texte """

#draw_string("vroum vroum ", 20, 8, (0,)*3)
#draw_string("vroum vroum ", 20, 24, (0,)*3)
#draw_string("vroum vroum ", 20, 40, (0,)*3)
#draw_string("vroum vroum ", 178, 150, (0,)*3)
#draw_string("vroum vroum ", 178, 166, (0,)*3)
#draw_string("vroum vroum ", 178, 182, (0,)*3)