diff --git "a/projectfolders/BlankTemplate/eventSheets/Actions/aEnemies \360\237\221\276.json" "b/projectfolders/BlankTemplate/eventSheets/Actions/_aEnemies \360\237\221\276.json" similarity index 60% rename from "projectfolders/BlankTemplate/eventSheets/Actions/aEnemies \360\237\221\276.json" rename to "projectfolders/BlankTemplate/eventSheets/Actions/_aEnemies \360\237\221\276.json" index 68ed079..87be644 100644 --- "a/projectfolders/BlankTemplate/eventSheets/Actions/aEnemies \360\237\221\276.json" +++ "b/projectfolders/BlankTemplate/eventSheets/Actions/_aEnemies \360\237\221\276.json" @@ -1,5 +1,5 @@ { - "name": "aEnemies 👾", + "name": "_aEnemies 👾", "events": [], "sid": 878190083165609 } \ No newline at end of file diff --git "a/projectfolders/BlankTemplate/eventSheets/Functions/fUtilities \360\237\247\260.json" "b/projectfolders/BlankTemplate/eventSheets/Functions/fUtilities \360\237\247\260.json" index 4627b1d..042dc96 100644 --- "a/projectfolders/BlankTemplate/eventSheets/Functions/fUtilities \360\237\247\260.json" +++ "b/projectfolders/BlankTemplate/eventSheets/Functions/fUtilities \360\237\247\260.json" @@ -56,6 +56,94 @@ } ] }, + { + "functionName": "toggleLayer", + "functionDescription": "", + "functionCategory": "", + "functionReturnType": "none", + "functionCopyPicked": false, + "functionIsAsync": false, + "functionParameters": [ + { + "name": "layerName", + "type": "string", + "initialValue": "", + "comment": "", + "sid": 383761321401365 + } + ], + "eventType": "function-block", + "conditions": [], + "actions": [], + "sid": 725868792420929, + "children": [ + { + "eventType": "block", + "conditions": [ + { + "id": "layer-is-visible", + "objectClass": "System", + "sid": 908801748603377, + "parameters": { + "layer": "layerName" + } + } + ], + "actions": [ + { + "id": "set-layer-visible", + "objectClass": "System", + "sid": 281814701868354, + "parameters": { + "layer": "layerName", + "visibility": "invisible" + } + }, + { + "id": "set-layer-interactive", + "objectClass": "System", + "sid": 157471086757443, + "parameters": { + "layer": "layerName", + "interactive": false + } + } + ], + "sid": 922971262908364 + }, + { + "eventType": "block", + "conditions": [ + { + "id": "else", + "objectClass": "System", + "sid": 739332937534315 + } + ], + "actions": [ + { + "id": "set-layer-visible", + "objectClass": "System", + "sid": 137848120911428, + "parameters": { + "layer": "layerName", + "visibility": "visible" + } + }, + { + "id": "set-layer-interactive", + "objectClass": "System", + "sid": 186163961158381, + "parameters": { + "layer": "layerName", + "interactive": true + } + } + ], + "sid": 899862841752459 + } + ] + }, { "functionName": "mapValue", "functionDescription": "", @@ -171,7 +259,7 @@ "sid": 875967104905781 }, { - "functionName": "berp", + "functionName": "expDecay", "functionDescription": "", "functionCategory": "", "functionReturnType": "number", @@ -279,6 +367,177 @@ "sid": 117563489929905 } ] + }, + { + "functionName": "distance3D", + "functionDescription": "", + "functionCategory": "", + "functionReturnType": "number", + "functionCopyPicked": false, + "functionIsAsync": false, + "functionParameters": [ + { + "name": "x1", + "type": "number", + "initialValue": "0", + "comment": "", + "sid": 590421255056591 + }, + { + "name": "y1", + "type": "number", + "initialValue": "0", + "comment": "", + "sid": 643921034614564 + }, + { + "name": "z1", + "type": "number", + "initialValue": "0", + "comment": "", + "sid": 121037892189490 + }, + { + "name": "x2", + "type": "number", + "initialValue": "0", + "comment": "", + "sid": 511290319926693 + }, + { + "name": "y2", + "type": "number", + "initialValue": "0", + "comment": "", + "sid": 988772735295340 + }, + { + "name": "z2", + "type": "number", + "initialValue": "0", + "comment": "", + "sid": 356084965613438 + } + ], + "eventType": "function-block", + "conditions": [], + "actions": [ + { + "id": "set-function-return-value", + "objectClass": "Functions", + "sid": 268312568073306, + "parameters": { + "value": "sqrt((x2-x1)^2 + (y2-y1)^2 + (z2-z1)^2)" + } + } + ], + "sid": 603412078347250 + }, + { + "functionName": "formatTime", + "functionDescription": "", + "functionCategory": "", + "functionReturnType": "string", + "functionCopyPicked": false, + "functionIsAsync": false, + "functionParameters": [ + { + "name": "seconds", + "type": "number", + "initialValue": "0", + "comment": "", + "sid": 522193307353509 + } + ], + "eventType": "function-block", + "conditions": [], + "actions": [], + "sid": 905055554994244, + "children": [ + { + "eventType": "variable", + "name": "hours", + "type": "number", + "initialValue": "0", + "comment": "", + "isStatic": false, + "isConstant": false, + "sid": 702372864472884 + }, + { + "eventType": "variable", + "name": "minutes", + "type": "number", + "initialValue": "0", + "comment": "", + "isStatic": false, + "isConstant": false, + "sid": 873362813365633 + }, + { + "eventType": "block", + "conditions": [], + "actions": [ + { + "id": "set-eventvar-value", + "objectClass": "System", + "sid": 923326540158736, + "parameters": { + "variable": "hours", + "value": "seconds / 3600" + } + }, + { + "id": "set-eventvar-value", + "objectClass": "System", + "sid": 790445611546321, + "parameters": { + "variable": "minutes", + "value": "seconds / 60" + } + }, + { + "id": "set-function-return-value", + "objectClass": "Functions", + "sid": 454702085137188, + "parameters": { + "value": "(hours >= 1 ? int(hours) & \":\" : \"\") & (minutes >= 1 ? zeropad(int(minutes), 2) & \":\" : \"\") & zeropad((seconds % 60), 2)" + } + } + ], + "sid": 456305179917809 + } + ] + }, + { + "functionName": "getDevInfo", + "functionDescription": "", + "functionCategory": "", + "functionReturnType": "string", + "functionCopyPicked": false, + "functionIsAsync": false, + "functionParameters": [ + { + "name": "divider", + "type": "string", + "initialValue": " | ", + "comment": "", + "sid": 843055132204122 + } + ], + "eventType": "function-block", + "conditions": [], + "actions": [ + { + "id": "set-function-return-value", + "objectClass": "Functions", + "sid": 956911014940082, + "parameters": { + "value": "StringSub(\"Build {1}{0}{2} FPS{0}{3} CPU{0}{4}% GPU{0}{5}% objects\", divider, projectversion, fps, round(cpuutilisation * 100), round(gpuutilisation * 100), objectcount)" + } + } + ], + "sid": 562801702725526 } ], "sid": 622480337843055 diff --git "a/projectfolders/BlankTemplate/eventSheets/Values/vMacros \360\237\227\203\357\270\217.json" "b/projectfolders/BlankTemplate/eventSheets/Values/vMacros \360\237\227\203\357\270\217.json" index fbb0d43..c5fc487 100644 --- "a/projectfolders/BlankTemplate/eventSheets/Values/vMacros \360\237\227\203\357\270\217.json" +++ "b/projectfolders/BlankTemplate/eventSheets/Values/vMacros \360\237\227\203\357\270\217.json" @@ -1,6 +1,36 @@ { "name": "vMacros 🗃️", "events": [ + { + "eventType": "variable", + "name": "NOTHING", + "type": "number", + "initialValue": "-1", + "comment": "", + "isStatic": false, + "isConstant": true, + "sid": 995028409310032 + }, + { + "eventType": "variable", + "name": "NO", + "type": "number", + "initialValue": "0", + "comment": "", + "isStatic": false, + "isConstant": true, + "sid": 346906574628140 + }, + { + "eventType": "variable", + "name": "YES", + "type": "number", + "initialValue": "1", + "comment": "", + "isStatic": false, + "isConstant": true, + "sid": 499582822760795 + }, { "eventType": "group", "disabled": false, @@ -8,40 +38,6 @@ "description": "", "isActiveOnStart": false, "children": [ - { - "eventType": "comment", - "text": "Basics" - }, - { - "eventType": "variable", - "name": "NOTHING", - "type": "number", - "initialValue": "-1", - "comment": "", - "isStatic": false, - "isConstant": true, - "sid": 458778205145273 - }, - { - "eventType": "variable", - "name": "NO", - "type": "number", - "initialValue": "0", - "comment": "", - "isStatic": false, - "isConstant": true, - "sid": 714189115847289 - }, - { - "eventType": "variable", - "name": "YES", - "type": "number", - "initialValue": "1", - "comment": "", - "isStatic": false, - "isConstant": true, - "sid": 839259088565645 - }, { "eventType": "comment", "text": "Animations" diff --git a/projectfolders/BlankTemplate/layouts/#ObjectTemplates.json b/projectfolders/BlankTemplate/layouts/#ObjectTemplates.json index b400717..31f27af 100644 --- a/projectfolders/BlankTemplate/layouts/#ObjectTemplates.json +++ b/projectfolders/BlankTemplate/layouts/#ObjectTemplates.json @@ -36,6 +36,10 @@ "global": false } ], + "scene-graphs-folder-root": { + "items": [], + "subfolders": [] + }, "sid": 281279063636915, "nonworld-instances": [], "effectTypes": [], diff --git a/projectfolders/BlankTemplate/layouts/Level.json b/projectfolders/BlankTemplate/layouts/Level.json index e367638..c3f140a 100644 --- a/projectfolders/BlankTemplate/layouts/Level.json +++ b/projectfolders/BlankTemplate/layouts/Level.json @@ -70,6 +70,10 @@ "global": false } ], + "scene-graphs-folder-root": { + "items": [], + "subfolders": [] + }, "sid": 188382131432771, "nonworld-instances": [], "effectTypes": [], diff --git a/projectfolders/BlankTemplate/objectTypes/Input/Keyboard.json b/projectfolders/BlankTemplate/objectTypes/Input/Keyboard.json index 3a73778..6a198ce 100644 --- a/projectfolders/BlankTemplate/objectTypes/Input/Keyboard.json +++ b/projectfolders/BlankTemplate/objectTypes/Input/Keyboard.json @@ -5,6 +5,8 @@ "singleglobal-inst": { "type": "Keyboard", "properties": {}, - "uid": 3 + "uid": 3, + "sid": 227347035448181, + "tags": "" } } \ No newline at end of file diff --git a/projectfolders/BlankTemplate/objectTypes/Utilities/Browser.json b/projectfolders/BlankTemplate/objectTypes/Utilities/Browser.json index 64081a2..797f82f 100644 --- a/projectfolders/BlankTemplate/objectTypes/Utilities/Browser.json +++ b/projectfolders/BlankTemplate/objectTypes/Utilities/Browser.json @@ -5,6 +5,8 @@ "singleglobal-inst": { "type": "Browser", "properties": {}, - "uid": 2 + "uid": 2, + "sid": 618936409232718, + "tags": "" } } \ No newline at end of file diff --git a/projectfolders/BlankTemplate/objectTypes/Utilities/GlobalTimer.json b/projectfolders/BlankTemplate/objectTypes/Utilities/GlobalTimer.json index 48e9d90..bf7bd09 100644 --- a/projectfolders/BlankTemplate/objectTypes/Utilities/GlobalTimer.json +++ b/projectfolders/BlankTemplate/objectTypes/Utilities/GlobalTimer.json @@ -24,6 +24,7 @@ "originalSource": "", "exportFormat": "lossless", "exportQuality": 0.8, + "fileType": "image/png", "imageSpriteId": 7051568, "useCollisionPoly": true, "duration": 1, diff --git a/projectfolders/BlankTemplate/project.c3proj b/projectfolders/BlankTemplate/project.c3proj index efa8a5f..0aca089 100644 --- a/projectfolders/BlankTemplate/project.c3proj +++ b/projectfolders/BlankTemplate/project.c3proj @@ -1,6 +1,6 @@ { "projectFormatVersion": 1, - "savedWithRelease": 38802, + "savedWithRelease": 40702, "name": "FodiTemplate", "runtime": "c3", "useWorker": "auto", @@ -131,7 +131,7 @@ }, { "items": [ - "aEnemies 👾" + "_aEnemies 👾" ], "subfolders": [], "name": "Actions" @@ -240,7 +240,7 @@ }, "properties": { "description": "", - "version": "9", + "version": "12", "author": "Lasermagnet Games", "authorEmail": "games@lasermagnet.com", "authorWebsite": "https://lasermagnet.com", @@ -276,7 +276,6 @@ "gpuPreference": "high-performance", "scriptsType": "module", "framerateMode": "vsync", - "compositingMode": "standard", "sampling": "nearest", "downscaling": "medium", "renderingMode": "auto",