MCPcopy Create free account
hub / github.com/ActiveState/code / dessine

Function dessine

recipes/Python/580671_chroma/recipe-580671.py:382–533  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

380# Dessin de l'interface graphique
381
382def dessine():
383 global Xp, Yp, Xt1, Yt1, Xt2, Yt2, Xj, Yj, Xa, Ya, X0, Y0, Xmachin, Ymachin, Xfille, Yfille
384 global Xmario, Ymario, Xluigi, Yluigi, Xbinoclare, Ybinoclare, Xchelou, Ychelou, t1, t2, b,num
385
386 # Textures Environnement
387 ligne, colonne = 0, 0
388 while ligne < 13 :
389 if Decors[ligne][colonne] == 'X' :
390 boite.create_image(colonne*64, ligne*64, image=X, anchor=NW)
391 if Decors[ligne][colonne] == 'A' :
392 boite.create_image(colonne*64, ligne*64, image=A, anchor=NW)
393 if Decors[ligne][colonne] == 'H' :
394 boite.create_image(colonne*64, ligne*64, image=H, anchor=NW)
395 if Decors[ligne][colonne] == ' ' :
396 boite.create_image(colonne*64, ligne*64, image=R, anchor=NW)
397 if Decors[ligne][colonne] == 'B' :
398 boite.create_image(colonne*64, ligne*64, image=B, anchor=NW)
399 if Decors[ligne][colonne] == 'V' :
400 boite.create_image(colonne*64, ligne*64, image=V, anchor=NW)
401 if Decors[ligne][colonne] == 'N' :
402 boite.create_image(colonne*64, ligne*64, image=N, anchor=NW)
403 if Decors[ligne][colonne] == 'M' :
404 boite.create_image(colonne*64, ligne*64, image=M, anchor=NW)
405 if Decors[ligne][colonne] == 'K' :
406 boite.create_image(colonne*64, ligne*64, image=K, anchor=NW)
407 if Decors[ligne][colonne] == 'E' :
408 boite.create_image(colonne*64, ligne*64, image=E, anchor=NW)
409 if Decors[ligne][colonne] == 'I' :
410 boite.create_image(colonne*64, ligne*64, image=I, anchor=NW)
411 if Decors[ligne][colonne] == 'L' :
412 boite.create_image(colonne*64, ligne*64, image=L, anchor=NW)
413 if Decors[ligne][colonne] == 'T' :
414 boite.create_image(colonne*64, ligne*64, image=T, anchor=NW)
415 if Decors[ligne][colonne] == 'G' :
416 boite.create_image(colonne*64, ligne*64, image=G, anchor=NW)
417 if Decors[ligne][colonne] == 'Q' :
418 boite.create_image(colonne*64, ligne*64, image=Q, anchor=NW)
419 if Decors[ligne][colonne] == 'U' :
420 boite.create_image(colonne*64, ligne*64, image=U, anchor=NW)
421 if Decors[ligne][colonne] == 'C' :
422 boite.create_image(colonne*64, ligne*64, image=C, anchor=NW)
423 if Decors[ligne][colonne] == 'J' :
424 boite.create_image(colonne*64, ligne*64, image=J, anchor=NW)
425 if Decors[ligne][colonne] == 'O' :
426 boite.create_image(colonne*64, ligne*64, image=O, anchor=NW)
427 if Decors[ligne][colonne] == '-' :
428 boite.create_image(colonne*64, ligne*64, image=Y, anchor=NW)
429 if Decors[ligne][colonne] == 'W' :
430 boite.create_image(colonne*64, ligne*64, image=W, anchor=NW)
431 if Decors[ligne][colonne] == 'F' :
432 boite.create_image(colonne*64, ligne*64, image=F, anchor=NW)
433 if Decors[ligne][colonne] == 'D' :
434 boite.create_image(colonne*64, ligne*64, image=D, anchor=NW)
435 if Decors[ligne][colonne] == 'S' :
436 boite.create_image(colonne*64, ligne*64, image=S, anchor=NW)
437 if Decors[ligne][colonne] == 'Z' :
438 boite.create_image(colonne*64, ligne*64, image=Z, anchor=NW)
439 if Decors[ligne][colonne] == 'z' :

Callers 1

recipe-580671.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected