orlog_pre.py

Created by fedyna-kevin

Created on November 28, 2020

1.37 KB


from kandinsky import *

graphics = ((3,5,10,20,104,112,240,192),(15,5,7,9,16,224,96,32),(24,126,255,153,255,153,219,90),(60,66,165,153,153,165,66,60),(4,118,15,20,38,66,70,60),(60,66,153,161,173,153,66,60))
try:
    from kandinsky import get_keys
    os_color = (192,53,53)
except:
    os_color = (255,183,52)

def pixel_art(t,x,y,color=(0,)*3):
    for i in range(8):
        for j in range(8):
            fill_rect(x+j*2, y+i*2, 2, 2, (t[i] >> (7-j)) & 1 and color or (255,)*3)

def pre():
    draw_string("Orlog", 135, 20, os_color)
    draw_string("Le but : tuer l'adversaire",30,50)
    draw_string("Pour attaquer :   ou", 30, 70)
    pixel_art(graphics[0], 185, 70)
    pixel_art(graphics[1], 240, 70)
    draw_string("Pour défendre :",30,90)
    draw_string("bloque", 210, 90)
    draw_string("bloque", 210, 110)
    pixel_art(graphics[2], 185, 90)
    pixel_art(graphics[3], 185, 110)
    pixel_art(graphics[0], 275, 90)
    pixel_art(graphics[1], 275, 110)
    draw_string("Un dé         donne 1",30,130)
    draw_string("entouré", 90,130,os_color)
    pixel_art(graphics[5],245,130,os_color)
    draw_string("  permet de voler",30,150)
    pixel_art(graphics[4],30,150)
    pixel_art(graphics[5],210,150,os_color)
    draw_string("  permet d'invoquer les",30,170)
    draw_string("dieux et leurs capacités",30,190)
    pixel_art(graphics[5],30,170,os_color)
    
pre()

During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our <a href="https://www.numworks.com/legal/cookies-policy/">cookies policy</a>.