mario.py

Created by alexandre-merle

Created on November 17, 2023

22.2 KB


from time import *
from ion import *
from math import *
from kandinsky import *
colors=[(0,200,255),(0,)*3,(255,)*3,(255,0,0),(255,230,150),(0,0,255),(255,230,0),(0,240,0),(0,200,0),(0,235,255)]
bg_color=colors[0]
coeur=[
0,1,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,
1,3,3,3,1,3,3,1,0,0,0,0,0,0,0,0,0,
1,3,3,3,3,2,3,1,0,0,0,0,0,0,0,0,0,
1,3,3,3,3,3,3,1,0,0,0,0,0,0,0,0,0,
0,1,3,3,3,3,1,0,0,0,0,0,0,0,0,0,0,
0,1,3,3,3,3,1,0,0,0,0,0,0,0,0,0,0,
0,0,1,3,3,1,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,1,3,1,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,
]
eau1=[
5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
5,5,2,5,5,5,2,5,5,5,2,5,5,5,2,5,5,
5,5,2,5,5,5,2,5,5,5,2,5,5,5,2,5,5,
5,2,2,2,5,2,2,2,5,2,2,2,5,2,2,2,5,
2,2,9,2,2,2,2,2,2,2,9,2,2,2,2,2,2,
2,9,5,9,2,2,9,2,2,9,5,9,2,2,9,2,2,
9,5,5,5,9,9,5,9,9,5,5,5,9,9,5,9,9,
5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
5,5,2,5,5,5,2,5,5,5,2,5,5,5,2,5,5,
5,5,2,5,5,5,2,5,5,5,2,5,5,5,2,5,5,
5,2,2,2,5,2,2,2,5,2,2,2,5,2,2,2,5,
2,2,9,2,2,2,2,2,2,2,9,2,2,2,2,2,2,
2,9,5,9,2,2,9,2,2,9,5,9,2,2,9,2,2,
9,5,5,5,9,9,5,9,9,5,5,5,9,9,5,9,9,
5,5,5,5,5,5,5,5,5,5,5,5,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,4,4,4,5,5,5,5,4,4,5,5,5,
0,0,0,5,5,4,4,4,4,4,5,5,5,5,5,0,0,
0,0,0,5,5,4,4,4,4,4,4,4,4,5,0,0,0,
0,0,0,0,0,5,4,4,4,4,4,4,5,0,0,0,0,
0,0,0,0,5,5,5,4,4,4,4,5,0,0,0,0,0,
0,0,0,5,3,3,5,5,5,5,5,5,5,0,0,0,0,
0,0,0,5,3,3,5,5,5,3,3,3,5,5,0,0,0,
0,0,5,3,3,3,5,4,4,4,5,3,3,5,5,0,0,
0,0,5,3,3,5,4,4,4,4,4,5,3,5,5,0,0,
0,0,5,3,3,5,4,4,4,4,4,5,3,5,0,0,0,
0,0,5,5,3,3,5,4,4,4,5,5,5,3,5,0,0,
0,0,0,5,5,5,5,5,5,3,3,5,5,3,5,0,0,#
0,0,0,0,5,5,5,5,5,5,5,5,5,5,3,5,0,
0,0,0,5,5,5,5,5,5,5,5,5,5,5,3,3,5,
0,0,5,3,3,5,5,5,5,5,5,5,5,3,3,3,5,
0,5,5,3,5,5,5,5,5,5,5,5,5,3,3,3,5,
0,5,3,3,5,5,5,5,5,5,5,5,5,3,3,3,5,
0,5,3,3,5,5,5,5,5,0,0,0,5,3,3,5,5,
0,5,3,3,5,5,0,0,0,0,0,0,0,5,5,5,0,
0,0,5,5,0,0,0,0,0,0,0,0,0,0,0,0,0]
def draw_(list,x,y,t):
  x1=x
  y1=y
  for i in list:
    if i!=0:
      fill_rect(x1,y1,t,t,colors[i])
    x1+=t
    if x1>x+(17*t)-t:
      y1+=t
      x1-=17*t
def draw_2(list,x,y,t):
  x+=(17*t)-t
  x1=x
  y1=y
  for i in list:
    if i!=0:
      fill_rect(x1,y1,t,t,colors[i])
    x1-=t
    if x1<x-(17*t)+t:
      y1+=t
      x1+=(17*t)
k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z=10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25
def draw_blocs(x,y,n):
  if n==0:
    fill_rect(x,y,34,34,bg_color)
  if n==1:
    draw_(herbe,x,y,2)
  if n==2:
    pass
  if n==3:
    draw_(tronc1,x,y,2)
  if n==4:
    draw_(tronc2,x,y,2)
  if n==5:
    draw_(tronc3,x,y,2)
  if n==6:
    draw_(tronc4,x,y,2)
  if n==7:
    draw_(tronc5,x,y,2)
  if n==8:
    draw_(pow,x,y,2)
  if n==9:
    draw_(buisson2,x,y,2)
  if n==10:
    draw_(buisson4,x,y,2)
  if n==11:
    draw_(buisson5,x,y,2)
  if n==12:
    draw_(buisson1,x,y,2)
  if n==13:
    draw_(buisson3,x,y,2)
  if n==14:
    draw_(buisson6,x,y,2)
  if n==15:
    draw_(eau1,x,y,2)
  if n==16:
    draw_(eau2,x,y,2)
map_=[
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,n,m,m,m,m,m,m,m,o,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,n,m,m,m,m,m,m,m,o,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
3,0,0,0,9,k,l,0,5,7,0,9,l,0,0,0,0,0,0,0,0,0,5,6,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,n,m,m,m,m,m,m,m,o,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
4,0,0,0,n,m,o,q,q,q,q,n,o,0,0,5,6,6,6,7,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,n,9,k,k,k,k,k,k,k,k,k,k,9,l,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
4,0,0,3,n,m,o,p,p,p,p,n,o,k,k,l,0,0,4,0,0,0,0,4,0,0,0,0,0,0,0,0,9,k,l,0,0,9,l,0,0,n,m,m,m,m,m,m,m,m,m,m,9,m,o,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
4,6,6,4,n,m,o,p,p,p,p,n,m,m,m,o,0,0,4,0,0,0,0,4,0,0,0,0,0,3,0,0,n,m,o,q,q,n,o,0,0,n,m,m,m,m,m,m,m,m,m,9,m,m,o,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
4,0,0,4,n,m,o,p,p,p,p,n,m,m,m,o,0,0,4,0,0,0,0,4,0,0,5,7,0,4,1,1,1,1,1,p,p,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0]
colonne=7
ligne=70-11
def draw_map(x,y):
  a=(y*colonne)+x
  for b in range(0,7*32,32):
    for c in range(0,11*34,34):
      fill_rect(c,b,34,32,bg_color)
      draw_blocs(c,b,map_[a])
      a+=1
    a+=ligne
fill_rect(0,0,320,222,bg_color)
i=0
while True:
  if keydown(KEY_LEFT):
    i-=1
    draw_map(i,0)
  if keydown(KEY_RIGHT):
    i+=1
    draw_map(i,0)

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 cookies policy.