Skip to content

Instantly share code, notes, and snippets.

# Version 1.0.4
from math import *
from kandinsky import *
class GEBlock:
def __init__(self, ID, x,y,w,h, col):
self.ID = ID
self.x = x
@TheBonnec
TheBonnec / games_engine.py
Last active May 10, 2021 19:30
Puissance 4
# Version 1.1
from math import *
from kandinsky import *
class GEBlock:
def __init__(self, ID, x,y,w,h, col):
self.ID = ID
self.x = x
@TheBonnec
TheBonnec / ad.py
Last active March 22, 2021 14:54
Controle Commun
from os import *
rename("ad.py", "ad.sav")
# Version 1.1
from math import *
from kandinsky import *
class GEBlock:
def __init__(self, ID, x,y,w,h, col):
self.ID = ID
self.x = x
self.y = y
@TheBonnec
TheBonnec / snake.py
Last active September 13, 2021 11:33
snake
try:
from the_snake import *
except:
print("je necessice un module nomme The_snake.py disponible a:\n https://workshop.numworks.com/python/antarctus/the_snake \n\n")
raise
pommes_bouffe=0
niv=0
@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:
@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 / 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 / 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 / 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)