Files
picoGraph/scripts/types/BooleanType.js
Max Litruv Boonzaayer f917cf6ad5 Add initial Pico-8 cartridges for testing
- Created test_cart.p8 with basic drawing functionality and a print statement.
- Created test_unix.p8 with a simple initialization function.
2026-03-21 18:38:43 +11:00

20 lines
494 B
JavaScript

/**
* @typedef {import('./TypeRegistry.js').TypeDescriptor} TypeDescriptor
*/
/** @type {TypeDescriptor} */
export const BooleanType = {
id: "boolean",
label: "Boolean",
color: "#ff4f4f",
isVariable: true,
isLocalVariable: true,
defaultValue: false,
variablePropertyKey: "valueBoolean",
compatibleWith: [
{ type: "string", convert: (v) => v ? "true" : "false" },
{ type: "number", convert: (v) => v ? 1 : 0 },
{ type: "color", convert: (v) => v ? 7 : 0 }
],
};