Skip to content

Instantly share code, notes, and snippets.

@chriscamacho
chriscamacho / raymath.py
Created September 22, 2020 10:54
port of raymath to python
# just a few functions from raymath
from raylib.static import rl, ffi
import math
PI = 3.14159265358979323846
DEG2RAD = (PI/180.0)
RAD2DEG = (180.0/PI)
def Clamp(value: float, minv: float, maxv: float):
@chriscamacho
chriscamacho / compo.c
Last active June 16, 2020 20:08
Raylib 32x32 competition template
/**********************************************************************************************
*
* raylib 32x32 game/demo competition
*
* Competition consist in developing a videogame in a 32x32 pixels screen size.
*
* RULES:
*
* 1) Use only raylib (and included libraries), no external libraries allowed
* 2) The submission should consist of just one source file