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
/********************************************************************************************** | |
* | |
* 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 |
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
# 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): |