|
|
|
@ -16,20 +16,20 @@ X1_CADEAU1 = 14
|
|
|
|
|
Y1_CADEAU1 = 110 |
|
|
|
|
X2_CADEAU1 = 22 |
|
|
|
|
Y2_CADEAU1 = 115 |
|
|
|
|
POSITION_PLATEFORME = [[1,0,0,0,0,1],[1,1,1,0,1,0],[1,1,1,0,1,0]] |
|
|
|
|
POSITION_PLATEFORME = [[1,0,0,0,0,1,0,1,0,1],[1,1,1,0,1,0,1,0,1],[1,1,1,0,1,0,1,0,1]] |
|
|
|
|
#Déclaration des classes |
|
|
|
|
class Plateforme: |
|
|
|
|
def __init__(self) -> None: |
|
|
|
|
self.x = 5 |
|
|
|
|
self.y = 5 |
|
|
|
|
self.x = 14 |
|
|
|
|
self.y = 20 |
|
|
|
|
|
|
|
|
|
def afficher(self) -> None: |
|
|
|
|
for colonne in range(1): |
|
|
|
|
for ligne in range (6): |
|
|
|
|
for colonne in range(2): |
|
|
|
|
for ligne in range (9): |
|
|
|
|
if POSITION_PLATEFORME[colonne][ligne] == 1: |
|
|
|
|
x = (self.x*(colonne+1)) |
|
|
|
|
y = (self.y*(ligne+1)) |
|
|
|
|
pyxel.blt(x,y,0,26,28,9,3) |
|
|
|
|
x = (self.x*(ligne+1)) |
|
|
|
|
y = (self.y*(colonne+1)) |
|
|
|
|
pyxel.blt(x,y,0,26,28,14,4) |
|
|
|
|
|
|
|
|
|
class Objet: |
|
|
|
|
def __init__(self,x,y,x1,y1,x2,y2) -> None: |
|
|
|
|