mirror of
https://github.com/litruv/picoGraph.git
synced 2026-07-24 10:46:06 +10:00
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.
This commit is contained in:
17
scripts/types/NumberType.js
Normal file
17
scripts/types/NumberType.js
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* @typedef {import('./TypeRegistry.js').TypeDescriptor} TypeDescriptor
|
||||
*/
|
||||
|
||||
/** @type {TypeDescriptor} */
|
||||
export const NumberType = {
|
||||
id: "number",
|
||||
label: "Number",
|
||||
color: "#3ee581",
|
||||
isVariable: true,
|
||||
isLocalVariable: true,
|
||||
defaultValue: 0,
|
||||
variablePropertyKey: "valueNumber",
|
||||
compatibleWith: [
|
||||
{ type: "color", convert: (v) => Math.floor(Number(v)) % 16 },
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user