Extracted from Lucas-C/ImagGameJams