Skip to content

Instantly share code, notes, and snippets.

from math import *
from kandinsky import fill_rect as drawRect,draw_string as drawTxt,get_pixel as getPxl
from ion import keydown as key
from time import monotonic as cTime,sleep
from random import randint as rInt,seed as rSeed
TARG_SPF=0.02 #50fps
BG_COL,PL_COL,PTF_COL,NMY_COL,NMY_COL2,BLACK=(75,40,40),(240,10,10),(200,100,100),(0,150,255),(0,50,200),(0,0,0)
NAME,AUTH,START_MSG,EDITOR_URL=" R U | N "," by F | M E ","Press [OK] to start","/python/fime/ruin_lvl_maker"
class Entity():
def __init__(it,x,y,w,h,drawFonc):
from micropython import *;from math import *;from kandinsky import *;from os import *;from ion import *;from time import *;from random import *;from matplotlib.pyplot import *
kbd_intr(KEY_ZERO)
bg=255
ccl={
0:color(0,0,0),
1:color(160,50,50),
2:color(255,0,0),
3:color(0,0,255)
#4:color(jn1.bg,jn1.bg,jn1.bg)
}
@TheBonnec
TheBonnec / dynausor.py
Last active August 3, 2022 12:53
Dynausor
from games_engine_beta import *
from kandinsky import *
from random import *
from time import *
from ion import *
from os import *
global state, pts, theme, bg1, bg2, green, darkGreen, black
state = "menu"
pts = 0
_C=" Saison 2 : l'automne du monde "
_B=' -war just beggin...- '
_A=' -Wood Ungear Liquid 3- '
from math import *
from kandinsky import *
from ion import *
from time import *
from random import *
posxz=[]
posyz=[]
_H=' winner '
_G='HP : '
_F=' critic ! '
_E=' score : '
_D=' '
_C=' : '
_B=False
_A=True
from math import *
from kandinsky import *
@TheBonnec
TheBonnec / flappy_bird.py
Last active August 27, 2022 09:55
Real engine
from real_engine import *
from random import *
from time import *
from ion import *
# Colors
white = (255,255,255)
dark = (40, 40, 48)
black = (0,0,0)
@TheBonnec
TheBonnec / echec.py
Last active September 27, 2021 07:24
Echec
from math import *
from kandinsky import *
# ---------- Couleurs ----------
black = (0,30,40)
gray = (180,180,200)
white = (255,255,255)
blue = (70,120,180)
@TheBonnec
TheBonnec / doodlejump.py
Created September 13, 2021 13:51
Doodle jump
"""
Doodle Man !
A doodle jump clone (eco +).
Written by Fime
08/01/2021 - V1.0
"""
from random import randint
from ion import keydown as kDwn
from time import monotonic as mntnc,sleep
from kandinsky import fill_rect as rect, draw_string as text
@TheBonnec
TheBonnec / flappybird.py
Created September 13, 2021 13:44
flappy bird
from kandinsky import fill_rect as krect, draw_string as text
from ion import keydown
from random import randint
from time import *
# Code by Fime, nsi.xyz/jetpackbird
SCREEN_W=320
SCREEN_H=222
GAME_W=200
@TheBonnec
TheBonnec / altrys.py
Created September 13, 2021 13:42
Altrys
# partie du script à ne pas modifier pour participer
# voir plus bas à compter de la ligne 202
from kandinsky import set_pixel, fill_rect, draw_string
from ion import keydown
from math import pi, cos, sin, ceil
try:
from kandinsky import draw_line
except: