This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
import threading | |
import queue | |
from typing import Callable | |
class GameClient: | |
def __init__(self, host: str, port: int): | |
self.host = socket.gethostbyname(host) if host else None | |
self.port = port |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import annotations | |
import sys | |
import random | |
from dataclasses import dataclass | |
import pygame as pg | |
import glm | |
from glm import vec2 | |
import esper | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"stacks": [ | |
{ | |
"name": "house", | |
"dimentions": { | |
"width": 32, | |
"height": 32 | |
}, | |
"slices": 16, | |
"path": "/Users/kyle/Documents/resources/house_ss.png" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import annotations | |
import pygame as pg | |
from pygame import Vector2 as vec2 | |
import math | |
import heapq | |
import itertools | |
class Game: | |
def __init__(self, width:int, height:int): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import annotations | |
import pygame | |
import glm | |
import random | |
from dataclasses import dataclass, field | |
from glm import vec2, vec4 | |
from typing import Callable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import annotations | |
import cv2 | |
import mediapipe as mp | |
from dataclasses import dataclass, field | |
from glm import vec3 | |
import json | |
mp_drawing = mp.solutions.drawing_utils # type: ignore | |
mp_drawing_styles = mp.solutions.drawing_styles # type: ignore | |
mp_hands = mp.solutions.hands # type: ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate raylib; | |
use raylib::prelude::*; | |
const SHADER: &str = include_str!("res/shader.fs"); | |
pub fn main() { | |
let (w, h) = (1440, 900); | |
let (mut rl, thread) = raylib::init() | |
.size(w, h) | |
.title("raylib [shaders] example - raymarching shader") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use rapier2d::prelude::*; | |
use raylib::prelude::*; | |
pub struct Entity { | |
radius: f32, | |
physics_handle: RigidBodyHandle, | |
} | |
fn main() { | |
let (mut rl, thread) = raylib::init().size(640, 480).title("Hello, World").build(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import annotations | |
import random | |
from dataclasses import dataclass | |
import pygame | |
import pymunk | |
from pygame import Vector2 as vec2 | |
from pygame import _sdl2 as sdl2 | |
from pygame._sdl2.video import Texture |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from dataclasses import dataclass | |
import re | |
import pygame | |
from pygame import Vector2 as vec2 | |
class Game: | |
def __init__(self): | |
pygame.init() | |
self.win_size = vec2(500) |
NewerOlder