Skip to content

Instantly share code, notes, and snippets.

View EncodeTheCode's full-sized avatar
💭
Coding useful tools for workflow.

EncodeTheCode

💭
Coding useful tools for workflow.
View GitHub Profile
import pygame as g, sys, math
import numpy as n
from pathlib import Path
# Init
g.init()
s = g.display.set_mode((800, 600))
w, h = s.get_size()
g.display.set_caption("3D LOS with NumPy Optimization")
c = g.time.Clock()
import pygame as g, sys, math
import numpy as n
from pathlib import Path
# Init
# Initialize pygame
g.init()
s = g.display.set_mode((800, 600))
w, h = s.get_size()
import pygame as g, sys, math
import numpy as n
# Init
g.init()
s = g.display.set_mode((800, 600))
w, h = s.get_size()
g.display.set_caption("3D LOS with NumPy Optimization")
c = g.time.Clock()
g.event.set_grab(True)
import pygame
import sys
from pathlib import Path
pygame.init()
WIDTH, HEIGHT = 800, 600
screen = pygame.display.set_mode((WIDTH, HEIGHT))
pygame.display.set_caption("Crosshair Ultra-Fast Example")
gfx = Path("gfx")
import pygame
import sys
from pathlib import Path
pygame.init()
WIDTH, HEIGHT = 800, 600
screen = pygame.display.set_mode((WIDTH, HEIGHT))
pygame.display.set_caption("Crosshair Ultra-Fast Example")
gfx = Path("gfx")
import pygame
import sys
# Initialize pygame
pygame.init()
# Create window
WIDTH, HEIGHT = 800, 600
screen = pygame.display.set_mode((WIDTH, HEIGHT))
pygame.display.set_caption("Crosshair Toggle Example")
import pygame
import sys
# Initialize pygame
pygame.init()
# Create window
WIDTH, HEIGHT = 800, 600
screen = pygame.display.set_mode((WIDTH, HEIGHT))
pygame.display.set_caption("Crosshair Toggle Example")
import pygame, sys
pygame.init()
S = pygame.display.set_mode((800, 600))
C = pygame.time.Clock()
# ID→file map
F = {
"w1": "wpn//air_taser.png",
"w2": "wpn//shotgun.png",
import pygame, sys
pygame.init()
S = pygame.display.set_mode((800, 600))
C = pygame.time.Clock()
# ID→file map
F = {
"w1": "wpn//air_taser.png",
"w2": "wpn//shotgun.png",
import pygame, sys
pygame.init()
S = pygame.display.set_mode((800, 600))
C = pygame.time.Clock()
# ID→file map
F = {
"w1": "wpn//air_taser.png",
"w2": "wpn//shotgun.png",