Free games for graphing calculators: NumWorks, TI-Nspire CX, Casio fx-CG50 and soon TI-84 Plus CE. Balatro, Celeste, Hollow Knight, Minecraft and more.
C calculatorcalculator-gamescasiochesscrossy-roaddrive-madfx-cg50gamesgeometry-dashgraphing-calculatorndlessnumworksnumworks-appsnumworks-calculatornumworks-gamenumworks-gamestetristi-84-plus-ceti-nspire
/* NumPowder: The Powder Toy's elements, their numbers and properties (generated by tools/gen_elements.py
* from the original's element files: do not edit). */
#ifndef NP_ELEMENTS_H
#define NP_ELEMENTS_H
#include "simdefs.h"
enum {
PT_NONE = 0,
PT_DUST = 1,
PT_WATR = 2,
PT_OIL = 3,
PT_FIRE = 4,
PT_STNE = 5,
PT_LAVA = 6,
PT_GUNP = 7,
PT_NITR = 8,
PT_CLNE = 9,
PT_GAS = 10,
PT_PLEX = 11,
PT_GOO = 12,
PT_ICEI = 13,
PT_METL = 14,
PT_SPRK = 15,
PT_SNOW = 16,
PT_WOOD = 17,
PT_NEUT = 18,
PT_PLUT = 19,
PT_PLNT = 20,
PT_ACID = 21,
PT_VOID = 22,
PT_WTRV = 23,
PT_CNCT = 24,
PT_DSTW = 25,
PT_SALT = 26,
PT_SLTW = 27,
PT_DMND = 28,
PT_BMTL = 29,
PT_BRMT = 30,
PT_PHOT = 31,
PT_URAN = 32,
PT_WAX = 33,
PT_MWAX = 34,
PT_PSCN = 35,
PT_NSCN = 36,
PT_LNTG = 37,
PT_INSL = 38,
PT_BHOL = 39,
PT_WHOL = 40,
PT_RBDM = 41,
PT_LRBD = 42,
PT_NTCT = 43,
PT_SAND = 44,
PT_GLAS = 45,
PT_PTCT = 46,
PT_BGLA = 47,
PT_THDR = 48,
PT_PLSM = 49,
PT_ETRD = 50,
PT_NICE = 51,
PT_NBLE = 52,
PT_BTRY = 53,
PT_LCRY = 54,
PT_STKM = 55,
PT_SWCH = 56,
PT_SMKE = 57,
PT_DESL = 58,
PT_COAL = 59,
PT_LO2 = 60,
PT_O2 = 61,
PT_INWR = 62,
PT_YEST = 63,
PT_DYST = 64,
PT_THRM = 65,
PT_GLOW = 66,
PT_BRCK = 67,
PT_CFLM = 68,
PT_FIRW = 69,
PT_FUSE = 70,
PT_FSEP = 71,
PT_AMTR = 72,
PT_BCOL = 73,
PT_PCLN = 74,
PT_HSWC = 75,
PT_IRON = 76,
PT_MORT = 77,
PT_LIFE = 78,
PT_DLAY = 79,
PT_CO2 = 80,
PT_DRIC = 81,
PT_CBNW = 82,
PT_STOR = 83,
PT_PVOD = 84,
PT_CONV = 85,
PT_CAUS = 86,
PT_LIGH = 87,
PT_TESC = 88,
PT_DEST = 89,
PT_SPNG = 90,
PT_RIME = 91,
PT_FOG = 92,
PT_BCLN = 93,
PT_LOVE = 94,
PT_DEUT = 95,
PT_WARP = 96,
PT_PUMP = 97,
PT_FWRK = 98,
PT_PIPE = 99,
PT_FRZZ = 100,
PT_FRZW = 101,
PT_GRAV = 102,
PT_BIZR = 103,
PT_BIZRG = 104,
PT_BIZRS = 105,
PT_INST = 106,
PT_ISOZ = 107,
PT_ISZS = 108,
PT_PRTI = 109,
PT_PRTO = 110,
PT_PSTE = 111,
PT_PSTS = 112,
PT_ANAR = 113,
PT_VINE = 114,
PT_INVIS = 115,
PT_E116 = 116,
PT_SPAWN2 = 117,
PT_SPAWN = 118,
PT_SHLD1 = 119,
PT_SHLD2 = 120,
PT_SHLD3 = 121,
PT_SHLD4 = 122,
PT_LOLZ = 123,
PT_WIFI = 124,
PT_FILT = 125,
PT_ARAY = 126,
PT_BRAY = 127,
PT_STKM2 = 128,
PT_BOMB = 129,
PT_C5 = 130,
PT_SING = 131,
PT_QRTZ = 132,
PT_PQRT = 133,
PT_EMP = 134,
PT_BREC = 135,
PT_ELEC = 136,
PT_ACEL = 137,
PT_DCEL = 138,
PT_BANG = 139,
PT_IGNT = 140,
PT_BOYL = 141,
PT_GEL = 142,
PT_TRON = 143,
PT_TTAN = 144,
PT_EXOT = 145,
PT_EMBR = 146,
PT_H2 = 147,
PT_SOAP = 148,
PT_NBHL = 149,
PT_NWHL = 150,
PT_MERC = 151,
PT_PBCN = 152,
PT_GPMP = 153,
PT_CLST = 154,
PT_WIRE = 155,
PT_GBMB = 156,
PT_FIGH = 157,
PT_FRAY = 158,
PT_RPEL = 159,
PT_PPIP = 160,
PT_DTEC = 161,
PT_DMG = 162,
PT_TSNS = 163,
PT_VIBR = 164,
PT_BVBR = 165,
PT_CRAY = 166,
PT_PSTN = 167,
PT_FRME = 168,
PT_GOLD = 169,
PT_TUNG = 170,
PT_PSNS = 171,
PT_PROT = 172,
PT_VIRS = 173,
PT_VRSS = 174,
PT_VRSG = 175,
PT_GRVT = 176,
PT_DRAY = 177,
PT_CRMC = 178,
PT_HEAC = 179,
PT_SAWD = 180,
PT_POLO = 181,
PT_RFRG = 182,
PT_RFGL = 183,
PT_LSNS = 184,
PT_LDTC = 185,
PT_SLCN = 186,
PT_PTNM = 187,
PT_VSNS = 188,
PT_ROCK = 189,
PT_LITH = 190,
PT_RSST = 191,
PT_RSSS = 192,
PT_BASE = 193,
PT_SEED = 194,
PT_COUNT = 195
};
typedef struct {
const char * Identifier;
const char * Name;
uint32_t Colour;
uint8_t MenuVisible;
uint8_t MenuSection;
uint8_t Enabled;
float Advection;
float AirDrag;
float AirLoss;
float Loss;
float Collision;
float Gravity;
float NewtonianGravity;
float Diffusion;
float HotAir;
int8_t Falldown;
int16_t Flammable;
int16_t Explosive;
int16_t Meltable;
int16_t Hardness;
uint32_t PhotonReflectWavelengths;
int16_t Weight;
uint8_t HeatConduct;
float HeatCapacity;
const char * Description;
uint32_t Properties;
uint32_t CarriesTypeIn;
float LowPressure;
int16_t LowPressureTransition;
float HighPressure;
int16_t HighPressureTransition;
float LowTemperature;
int16_t LowTemperatureTransition;
float HighTemperature;
int16_t HighTemperatureTransition;
struct { float temp; int life, ctype, tmp, tmp2, tmp3, tmp4; } DefaultProperties;
int (*Update)(UPDATE_FUNC_ARGS);
int (*Graphics)(GRAPHICS_FUNC_ARGS);
void (*Create)(ELEMENT_CREATE_FUNC_ARGS);
bool (*CreateAllowed)(ELEMENT_CREATE_ALLOWED_FUNC_ARGS);
void (*ChangeType)(ELEMENT_CHANGETYPE_FUNC_ARGS);
bool (*CtypeDraw)(CTYPEDRAW_FUNC_ARGS);
} Element;
extern const Element elements[PT_NUM];
#endif