Skip to content

Instantly share code, notes, and snippets.

@naclsn
naclsn / pico8_versions.csv
Last active April 7, 2024 11:37
A simple CSV record of some information gathered from PICO-8 releases.
pico-8 version header version binary mtime archive size binary size
0.0.1 version 3 2015-01-20T19:48:56+01:00 1741 4507
0.0.4 version 4 2015-04-04T23:25:41+02:00 2142 6322
0.0.5 version 4 2015-04-12T00:49:38+02:00 2146 6330
0.1.0 version 4 2015-04-17T23:53:08+02:00 2152 6334
0.1.1 version 4 2015-06-12T01:12:20+02:00 2253 6703
0.1.2 version 5 2015-10-02T21:45:30+02:00 2635 6752
0.1.3 version 5 2015-10-15T23:10:12+02:00 2580 6752
0.1.4 version 5 2016-01-02T23:26:06+01:00 2521 6445
0.1.4b version 5 2016-01-03T23:48:47+01:00 2521 6445
args=args or{...}local a;local setmetatable=setmetatable;local assert=assert;local error=error;local bit=bit;local math=math;local b=bit.tobit;local c=bit.arshift;local d=bit.rshift;local e=bit.lshift;local f=bit.band;local g=bit.bor;local h=bit.bxor;local i=bit.ror;local j=bit.rol;local k=math.huge;local l=math.floor;local m=math.ceil;local n=math.abs;local o=math.max;local p=math.min;local q=math.pow;local r=math.sqrt;local s=math.ldexp;local t=math.frexp;local u=math.log;if jit and jit.version_num<20100 then function t(v)local w=n(v)if v~=0 and w~=k then local x=o(-1023,l(u(w,2)+1))local y=w*q(2,-x)if v<0 then y=-y end;return y,x end;return v,0 end end;local function z(A)if A>=0 then return l(A)end;return m(A)end;local function B(C,D)return (setmetatable({C,D},a))end;local function E(A)local D=b(l(A/2^32))local C=b(A%2^32)return (setmetatable({C,D},a))end;_G.__LONG_INT__=B;_G.__LONG_INT_N__=E;local F={}local G={}local H=setmetatable({},{__mode="k"})local I={}local J={}local K={}local L={arrays={},ptrArrays
@CapsAdmin
CapsAdmin / main.lua
Last active May 17, 2021 23:33
repat until continue goto problem
-- INPUT:
--[[
local exit = false
repeat
if exit then break end
if true then
continue
end
@josefnpat
josefnpat / readme.md
Last active April 7, 2024 11:39
Going from Lua 5.2 to PICO-8's Lua

This information applies to the PICO-8 0.1.6 release.

This document is here to help folks with a proficiency in Lua understand the limitations and discrepencies between Lua and PICO-8's Lua.

You can always view the manual or yellowafterlife's extended 0.1.1 manual.

General

  • anything written in uppercase the PICO-8 editor or .p8 is made lowercase by the editor. → editing the .p8 file directly can work
  • print(function() end) outputs the string function instead of the string function: 0x0000000.