Skip to content

Instantly share code, notes, and snippets.

View nsi-xyz's full-sized avatar

Vincent ROBERT nsi-xyz

View GitHub Profile
@nsi-xyz
nsi-xyz / tetris.py
Last active April 13, 2022 20:22
tetris
# Tetris NW 28/04/2020
# https://nsi.xyz/tetris
# par Robert V. & Fedyna K.
from ion import keydown
from kandinsky import *
from random import randint
from time import *
from math import sqrt,log
@nsi-xyz
nsi-xyz / factor_end.py
Last active April 14, 2022 19:50
factor_end
from kandinsky import *
from random import randint
from ion import *
# Factors NumWorks, 13/04/2022
# par Ilyas RAHMOUN & Vincent ROBERT
# https://nsi.xyz/factors <3
level_c,level_m,cursor,avg = 1,1,0,1.0
last_key,retry,in_level = None,False,False
@nsi-xyz
nsi-xyz / fleches.py
Last active April 9, 2022 13:21
fleches
from kandinsky import *
couleur_gris = (196, 196, 196)
couleur_os = (192, 53, 53)
couleur_noir = (42, 42, 42)
couleur_jeux = (148, 113, 222)
# sens 0 = G, 1 = H, 3 = D, 2 = B (comme les codes touches)
def fleches(x, y, sens, couleur=(255,255,255)):
# (x,y) coordonnées du coin supérieur gauche du rectangle 6x12 ou 12x6 contenant la flèche
for i in range(6):
@nsi-xyz
nsi-xyz / factorsmem.py
Last active April 9, 2022 07:35
factors-mem
from math import *
from kandinsky import *
from random import randint
from ion import *
from time import *
grille, isReset = None, None
niveau, pos, cursor, avg = 1, [], 0, 0
ecart = [(-12 if len(str(niveau)) > 1 else -6), -8]
@nsi-xyz
nsi-xyz / factors.py
Last active April 15, 2022 15:34
factors
from kandinsky import *
from random import randint
from ion import *
# Factors 1.1 NumWorks, 14/04/2022
# par Ilyas RAHMOUN & Vincent ROBERT
# https://nsi.xyz/factors <3
l_c,l_m,cursor,avg = 1,1,0,1.0
last_key,retry,in_level = None,False,False
@nsi-xyz
nsi-xyz / avant2021.py
Last active January 1, 2022 16:16
avant2021
from math import ceil
platform = ''
try: from sys import platform
except: pass
def nop(*argv): pass
show, wait = nop, nop
neg_fill_rect = False
has_color = True
@nsi-xyz
nsi-xyz / nsi4ever.py
Last active February 2, 2021 06:14
nsi4ever
from turtle import *
from random import randint
colormode(255)
os = (192,53,53)
def n(x,y):
if -70<x<-60 and -80<y<80:
return True
if -110<x<-70 and -3.75*x-333-15<y<-3.75*x-333:
@nsi-xyz
nsi-xyz / pacman.py
Last active April 22, 2021 20:53
pacman
from kandinsky import fill_rect, draw_string
from ion import keydown
from math import sqrt
from random import randint
from time import monotonic
try:
from kandinsky import get_keys
color = (192, 53, 53)
except:
@nsi-xyz
nsi-xyz / battle.py
Last active November 2, 2020 18:01
battle
from math import *
from kandinsky import *
from ion import keydown
from random import *
from time import sleep
gp = get_pixel
fr = fill_rect
ds = draw_string
@nsi-xyz
nsi-xyz / matrix.py
Last active October 22, 2020 15:42
Matrix
# Matrix v0.1 NM 17/10/2020
# https://nsi.xyz/matrix
# par Robert Vincent (cent20)
from time import sleep
from kandinsky import *
from ion import keydown
from random import randint
print("Matrix")