diff --git a/examples/space-minimap-radar/README.md b/examples/space-minimap-radar/README.md new file mode 100644 index 000000000..8dd35ab56 --- /dev/null +++ b/examples/space-minimap-radar/README.md @@ -0,0 +1,5 @@ +# Space minimap and radar + +Fly a spaceship, collect the stars and reach the station, with a radar and a map of the level to find your way. + +The radar (top right) turns with the ship and shows the enemies and the station. The map (bottom left) shows the whole level. Every object shown on them has the "Minimap marker" behavior: its color, shape (dot, star, square, diamond, triangle) and category are set in the behavior properties. The radar shows only the "Enemy" and "Objective" categories, and keeps the far station on its edge. diff --git a/examples/space-minimap-radar/assets/Enemy ship.png b/examples/space-minimap-radar/assets/Enemy ship.png new file mode 100644 index 000000000..904cee096 Binary files /dev/null and b/examples/space-minimap-radar/assets/Enemy ship.png differ diff --git a/examples/space-minimap-radar/assets/Gold star.png b/examples/space-minimap-radar/assets/Gold star.png new file mode 100644 index 000000000..69c401955 Binary files /dev/null and b/examples/space-minimap-radar/assets/Gold star.png differ diff --git a/examples/space-minimap-radar/assets/Hologram Minimap Marker Diamond.png b/examples/space-minimap-radar/assets/Hologram Minimap Marker Diamond.png new file mode 100644 index 000000000..6d6b32045 Binary files /dev/null and b/examples/space-minimap-radar/assets/Hologram Minimap Marker Diamond.png differ diff --git a/examples/space-minimap-radar/assets/Hologram Minimap Marker Dot.png b/examples/space-minimap-radar/assets/Hologram Minimap Marker Dot.png new file mode 100644 index 000000000..bcee9f738 Binary files /dev/null and b/examples/space-minimap-radar/assets/Hologram Minimap Marker Dot.png differ diff --git a/examples/space-minimap-radar/assets/Hologram Minimap Marker Ring.png b/examples/space-minimap-radar/assets/Hologram Minimap Marker Ring.png new file mode 100644 index 000000000..bf87a7b0e Binary files /dev/null and b/examples/space-minimap-radar/assets/Hologram Minimap Marker Ring.png differ diff --git a/examples/space-minimap-radar/assets/Hologram Minimap Marker Square.png b/examples/space-minimap-radar/assets/Hologram Minimap Marker Square.png new file mode 100644 index 000000000..e6ebb89be Binary files /dev/null and b/examples/space-minimap-radar/assets/Hologram Minimap Marker Square.png differ diff --git a/examples/space-minimap-radar/assets/Hologram Minimap Marker Star.png b/examples/space-minimap-radar/assets/Hologram Minimap Marker Star.png new file mode 100644 index 000000000..f3ab3f48f Binary files /dev/null and b/examples/space-minimap-radar/assets/Hologram Minimap Marker Star.png differ diff --git a/examples/space-minimap-radar/assets/Hologram Minimap Marker Triangle.png b/examples/space-minimap-radar/assets/Hologram Minimap Marker Triangle.png new file mode 100644 index 000000000..161c6c389 Binary files /dev/null and b/examples/space-minimap-radar/assets/Hologram Minimap Marker Triangle.png differ diff --git a/examples/space-minimap-radar/assets/Hologram Panel.png b/examples/space-minimap-radar/assets/Hologram Panel.png new file mode 100644 index 000000000..27af92079 Binary files /dev/null and b/examples/space-minimap-radar/assets/Hologram Panel.png differ diff --git a/examples/space-minimap-radar/assets/Hologram Radar Background.png b/examples/space-minimap-radar/assets/Hologram Radar Background.png new file mode 100644 index 000000000..c33195cb4 Binary files /dev/null and b/examples/space-minimap-radar/assets/Hologram Radar Background.png differ diff --git a/examples/space-minimap-radar/assets/Hologram Radar Sweep.png b/examples/space-minimap-radar/assets/Hologram Radar Sweep.png new file mode 100644 index 000000000..5fe8bf91f Binary files /dev/null and b/examples/space-minimap-radar/assets/Hologram Radar Sweep.png differ diff --git a/examples/space-minimap-radar/assets/Meteor.png b/examples/space-minimap-radar/assets/Meteor.png new file mode 100644 index 000000000..6716d294b Binary files /dev/null and b/examples/space-minimap-radar/assets/Meteor.png differ diff --git a/examples/space-minimap-radar/assets/Player ship.png b/examples/space-minimap-radar/assets/Player ship.png new file mode 100644 index 000000000..7fafdc752 Binary files /dev/null and b/examples/space-minimap-radar/assets/Player ship.png differ diff --git a/examples/space-minimap-radar/assets/Space.png b/examples/space-minimap-radar/assets/Space.png new file mode 100644 index 000000000..3f384f8a5 Binary files /dev/null and b/examples/space-minimap-radar/assets/Space.png differ diff --git a/examples/space-minimap-radar/assets/Station.png b/examples/space-minimap-radar/assets/Station.png new file mode 100644 index 000000000..7b89f74d9 Binary files /dev/null and b/examples/space-minimap-radar/assets/Station.png differ diff --git a/examples/space-minimap-radar/assets/kenvector_future.ttf b/examples/space-minimap-radar/assets/kenvector_future.ttf new file mode 100644 index 000000000..39ebdfaa9 Binary files /dev/null and b/examples/space-minimap-radar/assets/kenvector_future.ttf differ diff --git a/examples/space-minimap-radar/preview.png b/examples/space-minimap-radar/preview.png new file mode 100644 index 000000000..c95f296df Binary files /dev/null and b/examples/space-minimap-radar/preview.png differ diff --git a/examples/space-minimap-radar/space-minimap-radar.json b/examples/space-minimap-radar/space-minimap-radar.json new file mode 100644 index 000000000..65067541e --- /dev/null +++ b/examples/space-minimap-radar/space-minimap-radar.json @@ -0,0 +1,4963 @@ +{ + "firstLayout": "Game", + "gdVersion": { + "build": 279, + "major": 5, + "minor": 6, + "revision": 0 + }, + "properties": { + "adaptGameResolutionAtRuntime": true, + "antialiasingMode": "MSAA", + "antialisingEnabledOnMobile": false, + "folderProject": false, + "orientation": "landscape", + "packageName": "com.example.spaceminimap", + "pixelsRounding": false, + "projectUuid": "47a77cf0-e437-4f46-8f47-5442911ec2d8", + "scaleMode": "linear", + "sizeOnStartupMode": "", + "templateSlug": "", + "version": "1.0.0", + "name": "Space minimap and radar", + "description": "", + "author": "", + "windowWidth": 1280, + "windowHeight": 720, + "latestCompilationDirectory": "", + "maxFPS": 60, + "minFPS": 20, + "verticalSync": false, + "platformSpecificAssets": { + "android-icon-144": "", + "android-icon-192": "", + "android-icon-36": "", + "android-icon-48": "", + "android-icon-72": "", + "android-icon-96": "", + "android-windowSplashScreenAnimatedIcon": "", + "desktop-icon-512": "", + "ios-icon-100": "", + "ios-icon-1024": "", + "ios-icon-114": "", + "ios-icon-120": "", + "ios-icon-144": "", + "ios-icon-152": "", + "ios-icon-167": "", + "ios-icon-180": "", + "ios-icon-20": "", + "ios-icon-29": "", + "ios-icon-40": "", + "ios-icon-50": "", + "ios-icon-57": "", + "ios-icon-58": "", + "ios-icon-60": "", + "ios-icon-72": "", + "ios-icon-76": "", + "ios-icon-80": "", + "ios-icon-87": "" + }, + "loadingScreen": { + "backgroundColor": 0, + "backgroundFadeInDuration": 0.2, + "backgroundImageResourceName": "", + "gdevelopLogoStyle": "light", + "logoAndProgressFadeInDuration": 0.2, + "logoAndProgressLogoFadeInDelay": 0, + "minDuration": 1.5, + "progressBarColor": 16777215, + "progressBarHeight": 20, + "progressBarMaxWidth": 200, + "progressBarMinWidth": 40, + "progressBarWidthPercent": 30, + "showGDevelopSplash": true, + "showProgressBar": true + }, + "watermark": { + "placement": "bottom-left", + "showWatermark": true + }, + "authorIds": [], + "authorUsernames": [], + "categories": [], + "playableDevices": [], + "extensionProperties": [], + "platforms": [ + { + "name": "GDevelop JS platform" + } + ], + "currentPlatform": "GDevelop JS platform" + }, + "resources": { + "resources": [ + { + "file": "assets/Player ship.png", + "kind": "image", + "metadata": "", + "name": "Player ship.png", + "smoothed": true, + "userAdded": true + }, + { + "file": "assets/Enemy ship.png", + "kind": "image", + "metadata": "", + "name": "Enemy ship.png", + "smoothed": true, + "userAdded": true + }, + { + "file": "assets/Gold star.png", + "kind": "image", + "metadata": "", + "name": "Gold star.png", + "smoothed": true, + "userAdded": true + }, + { + "file": "assets/Meteor.png", + "kind": "image", + "metadata": "", + "name": "Meteor.png", + "smoothed": true, + "userAdded": true + }, + { + "file": "assets/Station.png", + "kind": "image", + "metadata": "", + "name": "Station.png", + "smoothed": true, + "userAdded": true + }, + { + "file": "assets/Space.png", + "kind": "image", + "metadata": "", + "name": "Space.png", + "smoothed": true, + "userAdded": true + }, + { + "file": "assets/kenvector_future.ttf", + "kind": "font", + "metadata": "", + "name": "kenvector_future.ttf", + "userAdded": true + }, + { + "file": "assets/Hologram Radar Background.png", + "kind": "image", + "name": "Hologram Radar Background.png", + "userAdded": false, + "smoothed": true, + "metadata": "" + }, + { + "file": "assets/Hologram Radar Sweep.png", + "kind": "image", + "name": "Hologram Radar Sweep.png", + "userAdded": false, + "smoothed": true, + "metadata": "" + }, + { + "file": "assets/Hologram Minimap Marker Dot.png", + "kind": "image", + "name": "Hologram Minimap Marker Dot.png", + "userAdded": false, + "smoothed": true, + "metadata": "" + }, + { + "file": "assets/Hologram Minimap Marker Square.png", + "kind": "image", + "name": "Hologram Minimap Marker Square.png", + "userAdded": false, + "smoothed": true, + "metadata": "" + }, + { + "file": "assets/Hologram Minimap Marker Triangle.png", + "kind": "image", + "name": "Hologram Minimap Marker Triangle.png", + "userAdded": false, + "smoothed": true, + "metadata": "" + }, + { + "file": "assets/Hologram Minimap Marker Diamond.png", + "kind": "image", + "name": "Hologram Minimap Marker Diamond.png", + "userAdded": false, + "smoothed": true, + "metadata": "" + }, + { + "file": "assets/Hologram Minimap Marker Star.png", + "kind": "image", + "name": "Hologram Minimap Marker Star.png", + "userAdded": false, + "smoothed": true, + "metadata": "" + }, + { + "file": "assets/Hologram Minimap Marker Ring.png", + "kind": "image", + "name": "Hologram Minimap Marker Ring.png", + "userAdded": false, + "smoothed": true, + "metadata": "" + }, + { + "file": "assets/Hologram Panel.png", + "kind": "image", + "name": "Hologram Panel.png", + "userAdded": false, + "smoothed": true, + "metadata": "" + } + ], + "resourceFolders": [] + }, + "objects": [], + "objectsFolderStructure": { + "folderName": "__ROOT", + "children": [] + }, + "objectsGroups": [], + "variables": [], + "layouts": [ + { + "b": 28, + "disableInputWhenNotFocused": true, + "mangledName": "Game", + "name": "Game", + "r": 10, + "standardSortMethod": true, + "stopSoundsOnStartup": true, + "title": "", + "v": 12, + "uiSettings": { + "grid": false, + "gridType": "rectangular", + "gridWidth": 32, + "gridHeight": 32, + "gridDepth": 32, + "gridOffsetX": 0, + "gridOffsetY": 0, + "gridOffsetZ": 0, + "gridColor": 10401023, + "gridAlpha": 0.8, + "snap": false, + "zoomFactor": 0.7619362677197657, + "windowMask": false, + "selectedLayer": "", + "gameEditorMode": "instances-editor" + }, + "objectsGroups": [], + "variables": [ + { + "name": "Collected", + "type": "number", + "value": 0 + }, + { + "name": "Hits", + "type": "number", + "value": 0 + } + ], + "instances": [ + { + "angle": 0, + "customSize": true, + "height": 2400, + "layer": "", + "name": "Space", + "persistentUuid": "03fefcdb-fcd7-4e52-9cd5-073ec37e976f", + "width": 3200, + "x": 0, + "y": 0, + "zOrder": -10, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Player", + "persistentUuid": "ca9c630f-c0d8-48bd-9d0e-8925b222c60b", + "width": 0, + "x": 400, + "y": 1200, + "zOrder": 5, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Enemy", + "persistentUuid": "c4d12261-37e5-443e-a974-5fea2330b99f", + "width": 0, + "x": 760, + "y": 1020, + "zOrder": 4, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Enemy", + "persistentUuid": "b48ce329-a241-4541-b38d-268157d00e06", + "width": 0, + "x": 650, + "y": 1450, + "zOrder": 4, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Enemy", + "persistentUuid": "8d4197f8-d608-4301-b417-91a648c6ff18", + "width": 0, + "x": 1600, + "y": 600, + "zOrder": 4, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Enemy", + "persistentUuid": "5f44b358-b35b-4670-9f7e-7445703f0e04", + "width": 0, + "x": 2000, + "y": 1500, + "zOrder": 4, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Enemy", + "persistentUuid": "d6e94e8a-c29f-4a76-b533-bf4c44b6ef1b", + "width": 0, + "x": 2600, + "y": 900, + "zOrder": 4, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Enemy", + "persistentUuid": "7b0cba41-2b3c-4196-afa6-ee4a900b2a4a", + "width": 0, + "x": 1200, + "y": 2000, + "zOrder": 4, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Enemy", + "persistentUuid": "6ffa2bd9-50a4-43b4-a686-726bf9f837ff", + "width": 0, + "x": 2800, + "y": 2000, + "zOrder": 4, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Enemy", + "persistentUuid": "6660b709-6d61-404e-afde-bdced9ea707b", + "width": 0, + "x": 1800, + "y": 250, + "zOrder": 4, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Star", + "persistentUuid": "cd2e152d-9377-4576-a282-733d2fa9b2fd", + "width": 0, + "x": 560, + "y": 1200, + "zOrder": 3, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Star", + "persistentUuid": "4d654801-d66f-42f0-b0ce-8e811ceaa19d", + "width": 0, + "x": 1000, + "y": 500, + "zOrder": 3, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Star", + "persistentUuid": "96c8c77f-93db-46b8-9386-29ae4ff156cc", + "width": 0, + "x": 1400, + "y": 1500, + "zOrder": 3, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Star", + "persistentUuid": "d3262fe0-4bde-4491-9a19-3628c04b27ea", + "width": 0, + "x": 1900, + "y": 900, + "zOrder": 3, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Star", + "persistentUuid": "89bb074a-82c1-4621-8082-a1557ad7fd64", + "width": 0, + "x": 2300, + "y": 300, + "zOrder": 3, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Star", + "persistentUuid": "a8c9be6c-5713-44d8-b313-b440faacbced", + "width": 0, + "x": 2700, + "y": 1300, + "zOrder": 3, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Star", + "persistentUuid": "88c25745-f598-4217-a0ee-0198797fe389", + "width": 0, + "x": 1200, + "y": 2100, + "zOrder": 3, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Star", + "persistentUuid": "f441573a-3adb-4781-8e7d-10f414cd232f", + "width": 0, + "x": 2100, + "y": 2000, + "zOrder": 3, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Star", + "persistentUuid": "259df800-ab2c-49e6-abab-343a8d7e5535", + "width": 0, + "x": 3000, + "y": 2100, + "zOrder": 3, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Star", + "persistentUuid": "4ff47083-ed7a-4ae3-99a4-5c7e9f926bc0", + "width": 0, + "x": 700, + "y": 300, + "zOrder": 3, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Meteor", + "persistentUuid": "f68f4789-90a7-4746-8620-f5da882e5125", + "width": 0, + "x": 900, + "y": 900, + "zOrder": 2, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Meteor", + "persistentUuid": "96030d0e-412d-4d7b-8e8e-e6a64b83dd01", + "width": 0, + "x": 1150, + "y": 1250, + "zOrder": 2, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Meteor", + "persistentUuid": "8f343420-cb57-4763-936c-c11f0c725286", + "width": 0, + "x": 1500, + "y": 300, + "zOrder": 2, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Meteor", + "persistentUuid": "9325cbe5-535d-4d36-98a3-fc7918c508e0", + "width": 0, + "x": 1700, + "y": 1100, + "zOrder": 2, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Meteor", + "persistentUuid": "3001ca58-e553-489b-86ac-d25b00f46ae6", + "width": 0, + "x": 2200, + "y": 700, + "zOrder": 2, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Meteor", + "persistentUuid": "cbe839b9-cf6c-4f29-b873-d7a861c69773", + "width": 0, + "x": 2400, + "y": 1600, + "zOrder": 2, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Meteor", + "persistentUuid": "2fb496cc-8f39-4a8e-8109-5278bb797f1d", + "width": 0, + "x": 900, + "y": 1800, + "zOrder": 2, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Meteor", + "persistentUuid": "e2ee148b-dde7-4212-b1be-e982cd7d5361", + "width": 0, + "x": 1600, + "y": 2000, + "zOrder": 2, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Meteor", + "persistentUuid": "67f4bf80-913c-4cd6-a3ed-c6c1cc5801f6", + "width": 0, + "x": 2900, + "y": 600, + "zOrder": 2, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Meteor", + "persistentUuid": "12dc9e26-81cb-4b9a-891f-327097c26b19", + "width": 0, + "x": 2500, + "y": 2200, + "zOrder": 2, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Meteor", + "persistentUuid": "f67faf29-b8e5-4a64-82a1-f5b9be48165e", + "width": 0, + "x": 300, + "y": 600, + "zOrder": 2, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Meteor", + "persistentUuid": "75769213-4663-4465-95d3-7f54ac7b4703", + "width": 0, + "x": 300, + "y": 2000, + "zOrder": 2, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Meteor", + "persistentUuid": "008adfe1-6262-4da5-aa34-11583347b09a", + "width": 0, + "x": 1300, + "y": 750, + "zOrder": 2, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Meteor", + "persistentUuid": "a2471ff8-a445-4d6d-bb2c-b79fda8bd74a", + "width": 0, + "x": 2000, + "y": 1250, + "zOrder": 2, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Station", + "persistentUuid": "ed44f0d8-1763-41e7-9c03-5629b15ad52c", + "width": 0, + "x": 2950, + "y": 250, + "zOrder": 3, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "UI", + "name": "Radar", + "persistentUuid": "3e9cd9c9-e678-48a0-9fa2-71bc709cdc30", + "width": 0, + "x": 1060, + "y": 20, + "zOrder": 10, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 225, + "layer": "UI", + "name": "LevelMap", + "persistentUuid": "319488ef-4908-4e1a-a465-5e19ffb94b1a", + "width": 300, + "x": 20, + "y": 475, + "zOrder": 10, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "UI", + "name": "StarsText", + "persistentUuid": "67f9169d-58c4-48bc-a7f6-f83a30fdfb19", + "width": 0, + "x": 24, + "y": 20, + "zOrder": 10, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "UI", + "name": "HelpText", + "persistentUuid": "c6ffcab9-e35d-4e62-a6b8-00878c0099f1", + "width": 0, + "x": 24, + "y": 64, + "zOrder": 10, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "UI", + "name": "WinText", + "persistentUuid": "128ed492-20ae-45c4-84d6-f763f03e3d9f", + "width": 0, + "x": 380, + "y": 320, + "zOrder": 10, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + } + ], + "objects": [ + { + "assetStoreId": "", + "name": "Space", + "type": "TiledSpriteObject::TiledSprite", + "variables": [], + "effects": [], + "behaviors": [], + "texture": "Space.png", + "width": 256, + "height": 256 + }, + { + "adaptCollisionMaskAutomatically": true, + "assetStoreId": "", + "name": "Player", + "type": "Sprite", + "updateIfNotVisible": false, + "variables": [], + "effects": [], + "behaviors": [ + { + "name": "TopDownMovement", + "type": "TopDownMovementBehavior::TopDownMovementBehavior", + "rotateObject": true, + "acceleration": 500, + "maxSpeed": 330, + "angularMaxSpeed": 400, + "deceleration": 600, + "allowDiagonals": true, + "angleOffset": 0, + "customIsometryAngle": 30, + "ignoreDefaultControls": false, + "movementAngleOffset": 0, + "viewpoint": "TopDown" + }, + { + "name": "MinimapMarker", + "type": "Minimap::MinimapMarker", + "Color": "80;220;255", + "Shape": "Triangle", + "Size": 16, + "Category": "", + "ShowOnEdge": false, + "RotateWithObject": true, + "IsCenter": true + } + ], + "animations": [ + { + "name": "Idle", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "Player ship.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + } + ] + }, + { + "adaptCollisionMaskAutomatically": true, + "assetStoreId": "", + "name": "Enemy", + "type": "Sprite", + "updateIfNotVisible": false, + "variables": [], + "effects": [], + "behaviors": [ + { + "name": "MinimapMarker", + "type": "Minimap::MinimapMarker", + "Color": "255;70;70", + "Shape": "Dot", + "Size": 12, + "Category": "Enemy", + "ShowOnEdge": false, + "RotateWithObject": false, + "IsCenter": false + } + ], + "animations": [ + { + "name": "Idle", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "Enemy ship.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + } + ] + }, + { + "adaptCollisionMaskAutomatically": true, + "assetStoreId": "", + "name": "Star", + "type": "Sprite", + "updateIfNotVisible": false, + "variables": [], + "effects": [], + "behaviors": [ + { + "name": "MinimapMarker", + "type": "Minimap::MinimapMarker", + "Color": "255;215;0", + "Shape": "Star", + "Size": 14, + "Category": "Item", + "ShowOnEdge": false, + "RotateWithObject": false, + "IsCenter": false + } + ], + "animations": [ + { + "name": "Idle", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "Gold star.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + } + ] + }, + { + "adaptCollisionMaskAutomatically": true, + "assetStoreId": "", + "name": "Meteor", + "type": "Sprite", + "updateIfNotVisible": false, + "variables": [], + "effects": [], + "behaviors": [ + { + "name": "MinimapMarker", + "type": "Minimap::MinimapMarker", + "Color": "170;160;150", + "Shape": "Square", + "Size": 10, + "Category": "Obstacle", + "ShowOnEdge": false, + "RotateWithObject": false, + "IsCenter": false + } + ], + "animations": [ + { + "name": "Idle", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "Meteor.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + } + ] + }, + { + "adaptCollisionMaskAutomatically": true, + "assetStoreId": "", + "name": "Station", + "type": "Sprite", + "updateIfNotVisible": false, + "variables": [], + "effects": [], + "behaviors": [ + { + "name": "MinimapMarker", + "type": "Minimap::MinimapMarker", + "Color": "90;230;110", + "Shape": "Diamond", + "Size": 16, + "Category": "Objective", + "ShowOnEdge": true, + "RotateWithObject": false, + "IsCenter": false + } + ], + "animations": [ + { + "name": "Idle", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "Station.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + } + ] + }, + { + "assetStoreId": "", + "bold": false, + "italic": false, + "name": "StarsText", + "smoothed": true, + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [], + "behaviors": [], + "string": "Stars: 0 / 10", + "font": "kenvector_future.ttf", + "textAlignment": "left", + "characterSize": 28, + "color": { + "r": 255, + "g": 215, + "b": 0 + }, + "content": { + "bold": false, + "isOutlineEnabled": true, + "isShadowEnabled": false, + "italic": false, + "outlineColor": "10;20;40", + "outlineThickness": 3, + "shadowAngle": 90, + "shadowBlurRadius": 2, + "shadowColor": "0;0;0", + "shadowDistance": 4, + "smoothed": true, + "underlined": false, + "text": "Stars: 0 / 10", + "font": "kenvector_future.ttf", + "textAlignment": "left", + "verticalTextAlignment": "top", + "characterSize": 28, + "lineHeight": 0, + "color": "255;215;0" + } + }, + { + "assetStoreId": "", + "bold": false, + "italic": false, + "name": "HelpText", + "smoothed": true, + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [], + "behaviors": [], + "string": "Arrows: fly. Collect the 10 stars, then reach the station.", + "font": "kenvector_future.ttf", + "textAlignment": "left", + "characterSize": 20, + "color": { + "r": 200, + "g": 230, + "b": 255 + }, + "content": { + "bold": false, + "isOutlineEnabled": true, + "isShadowEnabled": false, + "italic": false, + "outlineColor": "10;20;40", + "outlineThickness": 3, + "shadowAngle": 90, + "shadowBlurRadius": 2, + "shadowColor": "0;0;0", + "shadowDistance": 4, + "smoothed": true, + "underlined": false, + "text": "Arrows: fly. Collect the 10 stars, then reach the station.", + "font": "kenvector_future.ttf", + "textAlignment": "left", + "verticalTextAlignment": "top", + "characterSize": 20, + "lineHeight": 0, + "color": "200;230;255" + } + }, + { + "assetStoreId": "", + "bold": false, + "italic": false, + "name": "WinText", + "smoothed": true, + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [], + "behaviors": [], + "string": "Station reached!", + "font": "kenvector_future.ttf", + "textAlignment": "left", + "characterSize": 56, + "color": { + "r": 90, + "g": 230, + "b": 110 + }, + "content": { + "bold": false, + "isOutlineEnabled": true, + "isShadowEnabled": false, + "italic": false, + "outlineColor": "10;20;40", + "outlineThickness": 3, + "shadowAngle": 90, + "shadowBlurRadius": 2, + "shadowColor": "0;0;0", + "shadowDistance": 4, + "smoothed": true, + "underlined": false, + "text": "Station reached!", + "font": "kenvector_future.ttf", + "textAlignment": "left", + "verticalTextAlignment": "top", + "characterSize": 56, + "lineHeight": 0, + "color": "90;230;110" + } + }, + { + "assetStoreId": "", + "name": "Radar", + "type": "Minimap::Minimap", + "variant": "Hologram Radar", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "Shape": "Round", + "Mode": "Follow", + "VisibleRange": 700, + "RotateWithCenter": true, + "Padding": 34, + "SweepSpeed": 120, + "Categories": "Enemy,Objective" + } + }, + { + "assetStoreId": "", + "name": "LevelMap", + "type": "Minimap::Minimap", + "variant": "Hologram Minimap", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "Shape": "Rectangle", + "Mode": "Fixed", + "VisibleRange": 700, + "RotateWithCenter": false, + "Padding": 44, + "SweepSpeed": 0, + "Categories": "", + "AreaX": 0, + "AreaY": 0, + "AreaWidth": 3200, + "AreaHeight": 2400 + } + } + ], + "objectsFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "objectName": "Space" + }, + { + "objectName": "Player" + }, + { + "objectName": "Enemy" + }, + { + "objectName": "Star" + }, + { + "objectName": "Meteor" + }, + { + "objectName": "Station" + }, + { + "objectName": "StarsText" + }, + { + "objectName": "HelpText" + }, + { + "objectName": "WinText" + }, + { + "objectName": "Radar" + }, + { + "objectName": "LevelMap" + } + ] + }, + "events": [ + { + "type": "BuiltinCommonInstructions::Comment", + "color": { + "b": 109, + "g": 230, + "r": 255, + "textB": 0, + "textG": 0, + "textR": 0 + }, + "comment": "The radar (top right) turns with the ship and shows the enemies and the station. The map (bottom left) shows the whole level. The objects shown on them have the \"Minimap marker\" behavior, with a color, a shape and a category." + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "DepartScene" + }, + "parameters": [ + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "Hide" + }, + "parameters": [ + "WinText" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "CenterCameraOnObject" + }, + "parameters": [ + "", + "Player", + "no", + "\"\"", + "0" + ] + }, + { + "type": { + "value": "ClampCamera" + }, + "parameters": [ + "", + "0", + "0", + "3200", + "2400", + "\"\"", + "0" + ] + }, + { + "type": { + "value": "MettreXY" + }, + "parameters": [ + "Player", + "=", + "clamp(Player.X(), 0, 3200 - Player.Width())", + "=", + "clamp(Player.Y(), 0, 2400 - Player.Height())" + ] + }, + { + "type": { + "value": "SeparateFromObjects" + }, + "parameters": [ + "Player", + "Meteor" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Comment", + "color": { + "b": 109, + "g": 230, + "r": 255, + "textB": 0, + "textG": 0, + "textR": 0 + }, + "comment": "The enemies chase the ship when it is near, and patrol otherwise." + }, + { + "type": "BuiltinCommonInstructions::ForEach", + "object": "Enemy", + "conditions": [], + "actions": [], + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "BuiltinCommonInstructions::CompareNumbers" + }, + "parameters": [ + "Enemy.DistanceToPosition(Player.CenterX(), Player.CenterY())", + "<", + "600" + ] + } + ], + "actions": [ + { + "type": { + "value": "RotateTowardPosition" + }, + "parameters": [ + "Enemy", + "Player.CenterX()", + "Player.CenterY()", + "90", + "" + ] + }, + { + "type": { + "value": "AddForceAL" + }, + "parameters": [ + "Enemy", + "Enemy.Angle()", + "140", + "0" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "BuiltinCommonInstructions::CompareNumbers" + }, + "parameters": [ + "Enemy.DistanceToPosition(Player.CenterX(), Player.CenterY())", + ">=", + "600" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetAngle" + }, + "parameters": [ + "Enemy", + "+", + "25 * TimeDelta()" + ] + }, + { + "type": { + "value": "AddForceAL" + }, + "parameters": [ + "Enemy", + "Enemy.Angle()", + "70", + "0" + ] + } + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "CollisionNP" + }, + "parameters": [ + "Player", + "Star", + "", + "", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "Delete" + }, + "parameters": [ + "Star", + "" + ] + }, + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "Collected", + "+", + "1" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "CollisionNP" + }, + "parameters": [ + "Player", + "Enemy", + "", + "", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "MettreXY" + }, + "parameters": [ + "Player", + "=", + "400", + "=", + "1200" + ] + }, + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "Hits", + "+", + "1" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "NumberVariable" + }, + "parameters": [ + "Collected", + ">=", + "10" + ] + }, + { + "type": { + "value": "CollisionNP" + }, + "parameters": [ + "Player", + "Station", + "", + "", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "Show" + }, + "parameters": [ + "WinText" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "TextContainerCapability::TextContainerBehavior::SetValue" + }, + "parameters": [ + "StarsText", + "Text", + "=", + "\"Stars: \" + ToString(Collected) + \" / 10\"" + ] + } + ] + } + ], + "layers": [ + { + "ambientLightColorB": 200, + "ambientLightColorG": 200, + "ambientLightColorR": 200, + "camera2DPlaneMaxDrawingDistance": 5000, + "camera3DFarPlaneDistance": 10000, + "camera3DFieldOfView": 45, + "camera3DNearPlaneDistance": 3, + "cameraType": "", + "followBaseLayerCamera": false, + "isLightingLayer": false, + "isLocked": false, + "name": "", + "renderingType": "", + "visibility": true, + "cameras": [ + { + "defaultSize": true, + "defaultViewport": true, + "height": 0, + "viewportBottom": 1, + "viewportLeft": 0, + "viewportRight": 1, + "viewportTop": 0, + "width": 0 + } + ], + "effects": [] + }, + { + "ambientLightColorB": 200, + "ambientLightColorG": 200, + "ambientLightColorR": 200, + "camera2DPlaneMaxDrawingDistance": 5000, + "camera3DFarPlaneDistance": 10000, + "camera3DFieldOfView": 45, + "camera3DNearPlaneDistance": 3, + "cameraType": "", + "followBaseLayerCamera": false, + "isLightingLayer": false, + "isLocked": false, + "name": "UI", + "renderingType": "", + "visibility": true, + "cameras": [ + { + "defaultSize": true, + "defaultViewport": true, + "height": 0, + "viewportBottom": 1, + "viewportLeft": 0, + "viewportRight": 1, + "viewportTop": 0, + "width": 0 + } + ], + "effects": [] + } + ], + "behaviorsSharedData": [] + } + ], + "externalEvents": [], + "tests": [ + { + "name": "Radar and map show the markers", + "type": "gameplay", + "description": "The radar shows the two enemies near the ship and the far station on its edge; the map shows every object of the level.", + "source": [ + "await harness.goToScene('Game');", + "await harness.stepFrames(10);", + "const shown = o => (harness.getObjects(o)[0].children.Marker || []).filter(m => !m.hidden);", + "harness.assert(shown('Radar').length === 3, 'The radar shows 2 enemies and the station: ' + shown('Radar').length);", + "harness.assert(shown('LevelMap').length === 34, 'The map shows every object: ' + shown('LevelMap').length);", + "await harness.takeScreenshot('game', { width: 1280, format: 'png' });" + ] + }, + { + "name": "Collecting a star", + "type": "gameplay", + "description": "Flying to the right collects the star in front of the ship: the counter goes up and its marker leaves the map.", + "source": [ + "await harness.goToScene('Game');", + "await harness.stepFrames(5);", + "const shown = o => (harness.getObjects(o)[0].children.Marker || []).filter(m => !m.hidden);", + "const before = shown('LevelMap').length;", + "harness.setKeyPressed('Right', true); await harness.stepFrames(50); harness.setKeyPressed('Right', false); await harness.stepFrames(3);", + "harness.assert(harness.getSceneVariable('Collected').value === 1, 'The star is collected: ' + harness.getSceneVariable('Collected').value);", + "harness.assert(shown('LevelMap').length === before - 1, 'Its marker leaves the map: ' + before + ' -> ' + shown('LevelMap').length);" + ] + } + ], + "eventsFunctionsExtensions": [ + { + "author": "", + "category": "User interface", + "extensionNamespace": "", + "fullName": "Minimap and radar", + "gdevelopVersion": ">=5.5.230", + "helpPath": "", + "iconUrl": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PGcgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjIiPjxjaXJjbGUgY3g9IjE2IiBjeT0iMTYiIHI9IjEzIi8+PGNpcmNsZSBjeD0iMTYiIGN5PSIxNiIgcj0iNyIvPjxwYXRoIGQ9Ik0xNiAxNiBMMjUgNyIvPjwvZz48Y2lyY2xlIGN4PSIxNiIgY3k9IjE2IiByPSIyIi8+PGNpcmNsZSBjeD0iMjIiIGN5PSIyMCIgcj0iMiIvPjxjaXJjbGUgY3g9IjEwIiBjeT0iMTEiIHI9IjIiLz48L3N2Zz4=", + "name": "Minimap", + "previewIconUrl": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PGcgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjIiPjxjaXJjbGUgY3g9IjE2IiBjeT0iMTYiIHI9IjEzIi8+PGNpcmNsZSBjeD0iMTYiIGN5PSIxNiIgcj0iNyIvPjxwYXRoIGQ9Ik0xNiAxNiBMMjUgNyIvPjwvZz48Y2lyY2xlIGN4PSIxNiIgY3k9IjE2IiByPSIyIi8+PGNpcmNsZSBjeD0iMjIiIGN5PSIyMCIgcj0iMiIvPjxjaXJjbGUgY3g9IjEwIiBjeT0iMTEiIHI9IjIiLz48L3N2Zz4=", + "shortDescription": "A minimap or a radar showing the player, the enemies, the items... as colored markers.", + "version": "1.0.0", + "description": [ + "Show objects on a minimap (or a radar):", + "1. Add the \"Minimap marker\" behavior to the objects to show, and choose the color, the shape (dot, square, triangle, diamond, star, ring) and the size of their marker. Check \"Center of the minimaps\" on the player.", + "2. Put a minimap on a layer of the interface. It shows the area around the player, or a fixed area of the scene (for example the whole level).", + "", + "A minimap can be round or rectangular, turn with the player like a radar, show only some categories of markers (like \"Enemy\"), and keep far markers on its edge (like a quest objective).", + "", + "Ready-to-use minimaps and radars in many styles are in the asset store [minimaps pack](https://editor.gdevelop.io/?initial-dialog=asset-store&asset-pack=minimaps-and-radars-minimaps)." + ], + "origin": { + "identifier": "Minimap", + "name": "gdevelop-extension-store" + }, + "tags": [ + "minimap", + "radar", + "map", + "marker", + "hud", + "ui" + ], + "authorIds": [ + "R0F5QGNCzgOY5w2cxGeKJOq2UaD2" + ], + "dependencies": [], + "globalVariables": [], + "eventsFunctions": [], + "sceneVariables": [ + { + "name": "MarkerX", + "type": "array", + "children": [] + }, + { + "name": "MarkerY", + "type": "array", + "children": [] + }, + { + "name": "MarkerAngle", + "type": "array", + "children": [] + }, + { + "name": "MarkerSize", + "type": "array", + "children": [] + }, + { + "name": "MarkerOnEdge", + "type": "array", + "children": [] + }, + { + "name": "MarkerRotate", + "type": "array", + "children": [] + }, + { + "name": "MarkerColor", + "type": "array", + "children": [] + }, + { + "name": "MarkerShape", + "type": "array", + "children": [] + }, + { + "name": "MarkerCategory", + "type": "array", + "children": [] + }, + { + "name": "FrameTime", + "type": "number", + "value": 0 + }, + { + "name": "IsStale", + "type": "number", + "value": 0 + }, + { + "name": "HasCenter", + "type": "number", + "value": 0 + }, + { + "name": "CenterX", + "type": "number", + "value": 0 + }, + { + "name": "CenterY", + "type": "number", + "value": 0 + }, + { + "name": "CenterAngle", + "type": "number", + "value": 0 + } + ], + "eventsBasedBehaviors": [ + { + "description": "Show the object on the minimaps (and radars) of the scene, as a marker of a color and a shape.", + "fullName": "Minimap marker", + "helpPath": "", + "iconUrl": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PGcgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjIiPjxjaXJjbGUgY3g9IjE2IiBjeT0iMTYiIHI9IjEzIi8+PGNpcmNsZSBjeD0iMTYiIGN5PSIxNiIgcj0iNyIvPjxwYXRoIGQ9Ik0xNiAxNiBMMjUgNyIvPjwvZz48Y2lyY2xlIGN4PSIxNiIgY3k9IjE2IiByPSIyIi8+PGNpcmNsZSBjeD0iMjIiIGN5PSIyMCIgcj0iMiIvPjxjaXJjbGUgY3g9IjEwIiBjeT0iMTEiIHI9IjIiLz48L3N2Zz4=", + "name": "MinimapMarker", + "objectType": "", + "previewIconUrl": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PGcgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjIiPjxjaXJjbGUgY3g9IjE2IiBjeT0iMTYiIHI9IjEzIi8+PGNpcmNsZSBjeD0iMTYiIGN5PSIxNiIgcj0iNyIvPjxwYXRoIGQ9Ik0xNiAxNiBMMjUgNyIvPjwvZz48Y2lyY2xlIGN4PSIxNiIgY3k9IjE2IiByPSIyIi8+PGNpcmNsZSBjeD0iMjIiIGN5PSIyMCIgcj0iMiIvPjxjaXJjbGUgY3g9IjEwIiBjeT0iMTEiIHI9IjIiLz48L3N2Zz4=", + "eventsFunctions": [ + { + "fullName": "", + "functionType": "Action", + "name": "doStepPreEvents", + "sentence": "", + "events": [ + { + "type": "BuiltinCommonInstructions::Comment", + "color": { + "b": 109, + "g": 230, + "r": 255, + "textB": 0, + "textG": 0, + "textR": 0 + }, + "comment": "The first marker of a frame empties the markers of the previous frame (once the minimaps have read them)." + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "BuiltinCommonInstructions::Or" + }, + "parameters": [], + "subInstructions": [ + { + "type": { + "value": "NumberVariable" + }, + "parameters": [ + "IsStale", + "=", + "1" + ] + }, + { + "type": { + "value": "NumberVariable" + }, + "parameters": [ + "FrameTime", + "!=", + "TimeFromStart()" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::CompareNumbers" + }, + "parameters": [ + "VariableChildCount(MarkerX)", + ">", + "10000" + ] + } + ] + } + ], + "actions": [ + { + "type": { + "value": "ClearVariableChildren" + }, + "parameters": [ + "MarkerX" + ] + }, + { + "type": { + "value": "ClearVariableChildren" + }, + "parameters": [ + "MarkerY" + ] + }, + { + "type": { + "value": "ClearVariableChildren" + }, + "parameters": [ + "MarkerAngle" + ] + }, + { + "type": { + "value": "ClearVariableChildren" + }, + "parameters": [ + "MarkerSize" + ] + }, + { + "type": { + "value": "ClearVariableChildren" + }, + "parameters": [ + "MarkerOnEdge" + ] + }, + { + "type": { + "value": "ClearVariableChildren" + }, + "parameters": [ + "MarkerRotate" + ] + }, + { + "type": { + "value": "ClearVariableChildren" + }, + "parameters": [ + "MarkerColor" + ] + }, + { + "type": { + "value": "ClearVariableChildren" + }, + "parameters": [ + "MarkerShape" + ] + }, + { + "type": { + "value": "ClearVariableChildren" + }, + "parameters": [ + "MarkerCategory" + ] + }, + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "IsStale", + "=", + "0" + ] + }, + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "FrameTime", + "=", + "TimeFromStart()" + ] + }, + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "HasCenter", + "=", + "0" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Comment", + "color": { + "b": 109, + "g": 230, + "r": 255, + "textB": 0, + "textG": 0, + "textR": 0 + }, + "comment": "Add this object to the markers of the frame." + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "PushNumber" + }, + "parameters": [ + "MarkerX", + "Object.CenterX()" + ] + }, + { + "type": { + "value": "PushNumber" + }, + "parameters": [ + "MarkerY", + "Object.CenterY()" + ] + }, + { + "type": { + "value": "PushNumber" + }, + "parameters": [ + "MarkerAngle", + "Object.Angle()" + ] + }, + { + "type": { + "value": "PushNumber" + }, + "parameters": [ + "MarkerSize", + "Size" + ] + }, + { + "type": { + "value": "PushString" + }, + "parameters": [ + "MarkerColor", + "Color" + ] + }, + { + "type": { + "value": "PushString" + }, + "parameters": [ + "MarkerShape", + "Shape" + ] + }, + { + "type": { + "value": "PushString" + }, + "parameters": [ + "MarkerCategory", + "Category" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "ShowOnEdge", + "True", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "PushNumber" + }, + "parameters": [ + "MarkerOnEdge", + "1" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "ShowOnEdge", + "False", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "PushNumber" + }, + "parameters": [ + "MarkerOnEdge", + "0" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "RotateWithObject", + "True", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "PushNumber" + }, + "parameters": [ + "MarkerRotate", + "1" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "RotateWithObject", + "False", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "PushNumber" + }, + "parameters": [ + "MarkerRotate", + "0" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "IsCenter", + "True", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "CenterX", + "=", + "Object.CenterX()" + ] + }, + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "CenterY", + "=", + "Object.CenterY()" + ] + }, + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "CenterAngle", + "=", + "Object.Angle()" + ] + }, + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "HasCenter", + "=", + "1" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "type": "object" + }, + { + "description": "Behavior", + "name": "Behavior", + "supplementaryInformation": "Minimap::MinimapMarker", + "type": "behavior" + } + ], + "objectGroups": [] + }, + { + "fullName": "Marker color", + "functionType": "Action", + "name": "SetColor", + "sentence": "Change the color of the marker of _PARAM0_ to _PARAM2_", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetStringVariable" + }, + "parameters": [ + "Color", + "=", + "Value" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "type": "object" + }, + { + "description": "Behavior", + "name": "Behavior", + "supplementaryInformation": "Minimap::MinimapMarker", + "type": "behavior" + }, + { + "description": "Color", + "name": "Value", + "type": "color" + } + ], + "objectGroups": [], + "description": "Change the color of the marker of the object on the minimaps." + }, + { + "fullName": "Marker shape", + "functionType": "Action", + "name": "SetShape", + "sentence": "Change the shape of the marker of _PARAM0_ to _PARAM2_", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetStringVariable" + }, + "parameters": [ + "Shape", + "=", + "Value" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "type": "object" + }, + { + "description": "Behavior", + "name": "Behavior", + "supplementaryInformation": "Minimap::MinimapMarker", + "type": "behavior" + }, + { + "description": "Shape", + "name": "Value", + "type": "stringWithSelector", + "supplementaryInformation": "[\"Dot\", \"Square\", \"Triangle\", \"Diamond\", \"Star\", \"Ring\"]" + } + ], + "objectGroups": [], + "description": "Change the shape of the marker of the object on the minimaps." + }, + { + "fullName": "Marker size", + "functionType": "ExpressionAndCondition", + "name": "Size", + "sentence": "the marker size", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetReturnNumber" + }, + "parameters": [ + "Size" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "type": "object" + }, + { + "description": "Behavior", + "name": "Behavior", + "supplementaryInformation": "Minimap::MinimapMarker", + "type": "behavior" + } + ], + "objectGroups": [], + "description": "the size of the marker of the object on the minimaps, in pixels.", + "expressionType": { + "type": "number" + } + }, + { + "fullName": "", + "functionType": "ActionWithOperator", + "name": "SetSize", + "sentence": "", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "Size", + "=", + "Value" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "type": "object" + }, + { + "description": "Behavior", + "name": "Behavior", + "supplementaryInformation": "Minimap::MinimapMarker", + "type": "behavior" + } + ], + "objectGroups": [], + "getterName": "Size" + } + ], + "propertyDescriptors": [ + { + "value": "255;255;255", + "type": "Color", + "label": "Color", + "name": "Color" + }, + { + "value": "Dot", + "type": "Choice", + "label": "Shape", + "name": "Shape", + "description": "The shape of the marker. A triangle points in the direction of the object, when \"Rotate with the object\" is checked.", + "choices": [ + { + "label": "Dot", + "value": "Dot" + }, + { + "label": "Square", + "value": "Square" + }, + { + "label": "Triangle", + "value": "Triangle" + }, + { + "label": "Diamond", + "value": "Diamond" + }, + { + "label": "Star", + "value": "Star" + }, + { + "label": "Ring", + "value": "Ring" + } + ] + }, + { + "value": "10", + "type": "Number", + "label": "Size on the minimap", + "name": "Size", + "unit": "Pixel" + }, + { + "value": "", + "type": "String", + "label": "Category", + "name": "Category", + "description": "For example \"Enemy\" or \"Item\". A minimap can show only some categories." + }, + { + "value": "", + "type": "Boolean", + "label": "Show on the edge when out of range", + "name": "ShowOnEdge", + "description": "When the object is too far to be on the minimap, its marker stays on the edge, in its direction (like a quest objective)." + }, + { + "value": "", + "type": "Boolean", + "label": "Rotate with the object", + "name": "RotateWithObject", + "description": "Useful with the triangle shape, to show where the object goes." + }, + { + "value": "", + "type": "Boolean", + "label": "Center of the minimaps", + "name": "IsCenter", + "description": "The minimaps that follow a center follow this object (usually the player). Only one object should have it." + } + ] + } + ], + "eventsBasedObjects": [ + { + "areaMaxX": 200, + "areaMaxY": 200, + "areaMaxZ": 64, + "areaMinX": 0, + "areaMinY": 0, + "areaMinZ": 0, + "assetStoreTag": "minimaps", + "defaultName": "Minimap", + "description": "A minimap or a radar, showing the objects that have the marker behavior as colored dots, squares, arrows... around the player or on a fixed area of the scene.", + "fullName": "Minimap", + "isInnerAreaFollowingParentSize": true, + "isUsingLegacyInstancesRenderer": false, + "name": "Minimap", + "objects": [ + { + "assetStoreId": "", + "bottomMargin": 0, + "height": 200, + "leftMargin": 0, + "name": "Background", + "rightMargin": 0, + "texture": "", + "tiled": false, + "type": "PanelSpriteObject::PanelSprite", + "width": 200, + "variables": [], + "effects": [], + "behaviors": [ + { + "name": "Anchor", + "type": "AnchorBehavior::AnchorBehavior", + "bottomEdgeAnchor": 2, + "leftEdgeAnchor": 1, + "relativeToOriginalWindowSize": true, + "rightEdgeAnchor": 2, + "topEdgeAnchor": 1, + "useLegacyBottomAndRightAnchors": false + } + ] + }, + { + "adaptCollisionMaskAutomatically": true, + "assetStoreId": "", + "name": "Marker", + "type": "Sprite", + "updateIfNotVisible": false, + "variables": [ + { + "name": "Index", + "type": "number", + "value": 0 + } + ], + "effects": [], + "behaviors": [], + "animations": [] + }, + { + "adaptCollisionMaskAutomatically": true, + "assetStoreId": "", + "name": "Sweep", + "type": "Sprite", + "updateIfNotVisible": false, + "variables": [], + "effects": [], + "behaviors": [], + "animations": [] + }, + { + "assetStoreId": "", + "bottomMargin": 0, + "height": 200, + "leftMargin": 0, + "name": "Frame", + "rightMargin": 0, + "texture": "", + "tiled": false, + "type": "PanelSpriteObject::PanelSprite", + "width": 200, + "variables": [], + "effects": [], + "behaviors": [ + { + "name": "Anchor", + "type": "AnchorBehavior::AnchorBehavior", + "bottomEdgeAnchor": 2, + "leftEdgeAnchor": 1, + "relativeToOriginalWindowSize": true, + "rightEdgeAnchor": 2, + "topEdgeAnchor": 1, + "useLegacyBottomAndRightAnchors": false + } + ] + } + ], + "objectsFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "objectName": "Background" + }, + { + "objectName": "Marker" + }, + { + "objectName": "Sweep" + }, + { + "objectName": "Frame" + } + ] + }, + "objectsGroups": [], + "layers": [ + { + "ambientLightColorB": 200, + "ambientLightColorG": 200, + "ambientLightColorR": 200, + "camera2DPlaneMaxDrawingDistance": 5000, + "camera3DFarPlaneDistance": 10000, + "camera3DFieldOfView": 45, + "camera3DNearPlaneDistance": 3, + "cameraType": "", + "followBaseLayerCamera": false, + "isLightingLayer": false, + "isLocked": false, + "name": "", + "renderingType": "", + "visibility": true, + "cameras": [ + { + "defaultSize": true, + "defaultViewport": true, + "height": 0, + "viewportBottom": 1, + "viewportLeft": 0, + "viewportRight": 1, + "viewportTop": 0, + "width": 0 + } + ], + "effects": [] + } + ], + "instances": [ + { + "angle": 0, + "customSize": true, + "height": 200, + "layer": "", + "name": "Background", + "persistentUuid": "d46a9e98-7882-4269-97c7-e28fd9f19963", + "width": 200, + "x": 0, + "y": 0, + "zOrder": 0, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 200, + "layer": "", + "name": "Sweep", + "persistentUuid": "32005f39-9e20-4ad8-bca5-2c1c3604a6ef", + "width": 200, + "x": 0, + "y": 0, + "zOrder": 1, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 200, + "layer": "", + "name": "Frame", + "persistentUuid": "e9217288-789f-4baa-8d70-fd6220017ea0", + "width": 200, + "x": 0, + "y": 0, + "zOrder": 3, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + } + ], + "propertyDescriptors": [ + { + "value": "Round", + "type": "Choice", + "label": "Shape of the minimap", + "name": "Shape", + "description": "Markers are kept inside a circle or a rectangle.", + "choices": [ + { + "label": "Round", + "value": "Round" + }, + { + "label": "Rectangle", + "value": "Rectangle" + } + ] + }, + { + "value": "Follow", + "type": "Choice", + "label": "Shown area", + "name": "Mode", + "description": "\"Follow\": the area around the object whose marker is the center of the minimaps (usually the player). \"Fixed area\": a fixed area of the scene, for example the whole level.", + "choices": [ + { + "label": "Follow the center marker", + "value": "Follow" + }, + { + "label": "Fixed area", + "value": "Fixed" + } + ] + }, + { + "value": "800", + "type": "Number", + "label": "Visible range", + "name": "VisibleRange", + "description": "With \"Follow\": the distance in the scene from the center to the edge of the minimap.", + "unit": "Pixel" + }, + { + "value": "", + "type": "Boolean", + "label": "Rotate with the center object", + "name": "RotateWithCenter", + "description": "With \"Follow\": the minimap turns so that the center object always goes up, like a radar." + }, + { + "value": "0", + "type": "Number", + "label": "X", + "name": "AreaX", + "group": "Fixed area", + "unit": "Pixel" + }, + { + "value": "0", + "type": "Number", + "label": "Y", + "name": "AreaY", + "group": "Fixed area", + "unit": "Pixel" + }, + { + "value": "2000", + "type": "Number", + "label": "Width", + "name": "AreaWidth", + "group": "Fixed area", + "unit": "Pixel" + }, + { + "value": "2000", + "type": "Number", + "label": "Height", + "name": "AreaHeight", + "group": "Fixed area", + "unit": "Pixel" + }, + { + "value": "", + "type": "String", + "label": "Categories shown", + "name": "Categories", + "description": "Leave empty to show every marker, or list categories separated by commas, like \"Enemy,Item\"." + }, + { + "value": "8", + "type": "Number", + "label": "Padding", + "name": "Padding", + "description": "Space between the markers and the border of the minimap.", + "unit": "Pixel" + }, + { + "value": "90", + "type": "Number", + "label": "Speed of the radar sweep", + "name": "SweepSpeed", + "description": "In degrees per second (if the minimap has a sweep).", + "unit": "AngularSpeed" + }, + { + "value": "0", + "type": "Number", + "label": "", + "name": "MarkerCount", + "hidden": true, + "unit": "Dimensionless" + }, + { + "value": "0", + "type": "Number", + "label": "", + "name": "Index", + "hidden": true, + "unit": "Dimensionless" + }, + { + "value": "0", + "type": "Number", + "label": "", + "name": "ViewX", + "hidden": true, + "unit": "Dimensionless" + }, + { + "value": "0", + "type": "Number", + "label": "", + "name": "ViewY", + "hidden": true, + "unit": "Dimensionless" + }, + { + "value": "0", + "type": "Number", + "label": "", + "name": "ViewAngle", + "hidden": true, + "unit": "Dimensionless" + }, + { + "value": "0", + "type": "Number", + "label": "", + "name": "ScaleX", + "hidden": true, + "unit": "Dimensionless" + }, + { + "value": "0", + "type": "Number", + "label": "", + "name": "ScaleY", + "hidden": true, + "unit": "Dimensionless" + }, + { + "value": "0", + "type": "Number", + "label": "", + "name": "HalfWidth", + "hidden": true, + "unit": "Dimensionless" + }, + { + "value": "0", + "type": "Number", + "label": "", + "name": "HalfHeight", + "hidden": true, + "unit": "Dimensionless" + }, + { + "value": "0", + "type": "Number", + "label": "", + "name": "DX", + "hidden": true, + "unit": "Dimensionless" + }, + { + "value": "0", + "type": "Number", + "label": "", + "name": "DY", + "hidden": true, + "unit": "Dimensionless" + }, + { + "value": "0", + "type": "Number", + "label": "", + "name": "MX", + "hidden": true, + "unit": "Dimensionless" + }, + { + "value": "0", + "type": "Number", + "label": "", + "name": "MY", + "hidden": true, + "unit": "Dimensionless" + }, + { + "value": "0", + "type": "Number", + "label": "", + "name": "Distance", + "hidden": true, + "unit": "Dimensionless" + }, + { + "value": "0", + "type": "Number", + "label": "", + "name": "Limit", + "hidden": true, + "unit": "Dimensionless" + }, + { + "value": "", + "type": "Boolean", + "label": "", + "name": "IsInside", + "hidden": true + } + ], + "eventsFunctions": [ + { + "fullName": "", + "functionType": "Action", + "name": "doStepPostEvents", + "sentence": "", + "events": [ + { + "type": "BuiltinCommonInstructions::Comment", + "color": { + "b": 109, + "g": 230, + "r": 255, + "textB": 0, + "textG": 0, + "textR": 0 + }, + "comment": "The area of the scene shown on the minimap." + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "MarkerCount", + "=", + "0" + ] + }, + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "ViewAngle", + "=", + "0" + ] + }, + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "HalfWidth", + "=", + "max(1, Object.Width() / 2 - Padding)" + ] + }, + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "HalfHeight", + "=", + "max(1, Object.Height() / 2 - Padding)" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "NumberVariable" + }, + "parameters": [ + "FrameTime", + "=", + "TimeFromStart()" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "MarkerCount", + "=", + "VariableChildCount(MarkerX)" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "StringVariable" + }, + "parameters": [ + "Mode", + "=", + "\"Follow\"" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "ScaleX", + "=", + "min(HalfWidth, HalfHeight) / max(1, VisibleRange)" + ] + }, + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "ScaleY", + "=", + "ScaleX" + ] + } + ], + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "NumberVariable" + }, + "parameters": [ + "HasCenter", + "=", + "1" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "ViewX", + "=", + "CenterX" + ] + }, + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "ViewY", + "=", + "CenterY" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "NumberVariable" + }, + "parameters": [ + "HasCenter", + "=", + "1" + ] + }, + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "RotateWithCenter", + "True", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "ViewAngle", + "=", + "-CenterAngle - 90" + ] + } + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "StringVariable" + }, + "parameters": [ + "Mode", + "=", + "\"Fixed\"" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "ViewX", + "=", + "AreaX + AreaWidth / 2" + ] + }, + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "ViewY", + "=", + "AreaY + AreaHeight / 2" + ] + }, + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "ScaleX", + "=", + "HalfWidth * 2 / max(1, AreaWidth)" + ] + }, + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "ScaleY", + "=", + "HalfHeight * 2 / max(1, AreaHeight)" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Comment", + "color": { + "b": 109, + "g": 230, + "r": 255, + "textB": 0, + "textG": 0, + "textR": 0 + }, + "comment": "One marker sprite for each marker of the frame: create the missing ones, the others are hidden." + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "BuiltinCommonInstructions::CompareNumbers" + }, + "parameters": [ + "SceneInstancesCount(Marker)", + "<", + "MarkerCount" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "Index", + "=", + "SceneInstancesCount(Marker)" + ] + } + ], + "events": [ + { + "type": "BuiltinCommonInstructions::Repeat", + "repeatExpression": "MarkerCount - Index", + "conditions": [], + "actions": [ + { + "type": { + "value": "Create" + }, + "parameters": [ + "", + "Marker", + "0", + "0", + "" + ] + }, + { + "type": { + "value": "SetNumberObjectVariable" + }, + "parameters": [ + "Marker", + "Index", + "=", + "Index" + ] + }, + { + "type": { + "value": "SetZOrder" + }, + "parameters": [ + "Marker", + "=", + "2" + ] + }, + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "Index", + "+", + "1" + ] + } + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::ForEach", + "object": "Marker", + "conditions": [], + "actions": [ + { + "type": { + "value": "Hide" + }, + "parameters": [ + "Marker" + ] + } + ], + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "NumberObjectVariable" + }, + "parameters": [ + "Marker", + "Index", + "<", + "MarkerCount" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetBooleanVariable" + }, + "parameters": [ + "IsInside", + "True", + "" + ] + } + ], + "events": [ + { + "type": "BuiltinCommonInstructions::Comment", + "color": { + "b": 109, + "g": 230, + "r": 255, + "textB": 0, + "textG": 0, + "textR": 0 + }, + "comment": "Only the categories shown on this minimap." + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "StringVariable" + }, + "parameters": [ + "Categories", + "!=", + "\"\"" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::CompareNumbers" + }, + "parameters": [ + "StrFind(\",\" + Categories + \",\", \",\" + MarkerCategory[Marker.Index] + \",\")", + "=", + "-1" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetBooleanVariable" + }, + "parameters": [ + "IsInside", + "False", + "" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Comment", + "color": { + "b": 109, + "g": 230, + "r": 255, + "textB": 0, + "textG": 0, + "textR": 0 + }, + "comment": "Position on the minimap, relative to its center (turned when the minimap rotates)." + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "DX", + "=", + "MarkerX[Marker.Index] - ViewX" + ] + }, + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "DY", + "=", + "MarkerY[Marker.Index] - ViewY" + ] + }, + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "MX", + "=", + "(DX * cos(ToRad(ViewAngle)) - DY * sin(ToRad(ViewAngle))) * ScaleX" + ] + }, + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "MY", + "=", + "(DX * sin(ToRad(ViewAngle)) + DY * cos(ToRad(ViewAngle))) * ScaleY" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Comment", + "color": { + "b": 109, + "g": 230, + "r": 255, + "textB": 0, + "textG": 0, + "textR": 0 + }, + "comment": "A marker out of the minimap is hidden, or kept on its edge." + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "StringVariable" + }, + "parameters": [ + "Shape", + "=", + "\"Round\"" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "Limit", + "=", + "min(HalfWidth, HalfHeight)" + ] + }, + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "Distance", + "=", + "sqrt(MX * MX + MY * MY)" + ] + } + ], + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "NumberVariable" + }, + "parameters": [ + "Distance", + ">", + "Limit" + ] + } + ], + "actions": [], + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "BuiltinCommonInstructions::CompareNumbers" + }, + "parameters": [ + "MarkerOnEdge[Marker.Index]", + "=", + "1" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "MX", + "=", + "MX * Limit / Distance" + ] + }, + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "MY", + "=", + "MY * Limit / Distance" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "BuiltinCommonInstructions::CompareNumbers" + }, + "parameters": [ + "MarkerOnEdge[Marker.Index]", + "=", + "0" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetBooleanVariable" + }, + "parameters": [ + "IsInside", + "False", + "" + ] + } + ] + } + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "StringVariable" + }, + "parameters": [ + "Shape", + "=", + "\"Rectangle\"" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Or" + }, + "parameters": [], + "subInstructions": [ + { + "type": { + "value": "BuiltinCommonInstructions::CompareNumbers" + }, + "parameters": [ + "abs(MX)", + ">", + "HalfWidth" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::CompareNumbers" + }, + "parameters": [ + "abs(MY)", + ">", + "HalfHeight" + ] + } + ] + } + ], + "actions": [], + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "BuiltinCommonInstructions::CompareNumbers" + }, + "parameters": [ + "MarkerOnEdge[Marker.Index]", + "=", + "1" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "MX", + "=", + "clamp(MX, -HalfWidth, HalfWidth)" + ] + }, + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "MY", + "=", + "clamp(MY, -HalfHeight, HalfHeight)" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "BuiltinCommonInstructions::CompareNumbers" + }, + "parameters": [ + "MarkerOnEdge[Marker.Index]", + "=", + "0" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetBooleanVariable" + }, + "parameters": [ + "IsInside", + "False", + "" + ] + } + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "IsInside", + "True", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "Show" + }, + "parameters": [ + "Marker" + ] + }, + { + "type": { + "value": "AnimatableCapability::AnimatableBehavior::SetName" + }, + "parameters": [ + "Marker", + "Animation", + "=", + "MarkerShape[Marker.Index]" + ] + }, + { + "type": { + "value": "ChangeColor" + }, + "parameters": [ + "Marker", + "MarkerColor[Marker.Index]" + ] + }, + { + "type": { + "value": "ResizableCapability::ResizableBehavior::SetSize" + }, + "parameters": [ + "Marker", + "Resizable", + "MarkerSize[Marker.Index]", + "MarkerSize[Marker.Index]" + ] + }, + { + "type": { + "value": "SetCenter" + }, + "parameters": [ + "Marker", + "=", + "Object.Width() / 2 + MX", + "=", + "Object.Height() / 2 + MY" + ] + }, + { + "type": { + "value": "SetAngle" + }, + "parameters": [ + "Marker", + "=", + "0" + ] + } + ], + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "BuiltinCommonInstructions::CompareNumbers" + }, + "parameters": [ + "MarkerRotate[Marker.Index]", + "=", + "1" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetAngle" + }, + "parameters": [ + "Marker", + "=", + "MarkerAngle[Marker.Index] + ViewAngle" + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Comment", + "color": { + "b": 109, + "g": 230, + "r": 255, + "textB": 0, + "textG": 0, + "textR": 0 + }, + "comment": "The markers are read: the first marker of the next frame empties them." + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "IsStale", + "=", + "1" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "NumberVariable" + }, + "parameters": [ + "SweepSpeed", + "!=", + "0" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetAngle" + }, + "parameters": [ + "Sweep", + "+", + "SweepSpeed * TimeDelta()" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "supplementaryInformation": "Minimap::Minimap", + "type": "object" + } + ], + "objectGroups": [] + }, + { + "fullName": "Visible range", + "functionType": "ExpressionAndCondition", + "name": "VisibleRange", + "sentence": "the visible range", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetReturnNumber" + }, + "parameters": [ + "VisibleRange" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "supplementaryInformation": "Minimap::Minimap", + "type": "object" + } + ], + "objectGroups": [], + "description": "the distance in the scene from the center to the edge of the minimap (when it follows the center marker).", + "expressionType": { + "type": "number" + } + }, + { + "fullName": "", + "functionType": "ActionWithOperator", + "name": "SetVisibleRange", + "sentence": "", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "VisibleRange", + "=", + "max(1, Value)" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "supplementaryInformation": "Minimap::Minimap", + "type": "object" + } + ], + "objectGroups": [], + "getterName": "VisibleRange" + }, + { + "fullName": "Show a fixed area", + "functionType": "Action", + "name": "ShowFixedArea", + "sentence": "Show the area _PARAM1_;_PARAM2_ of size _PARAM3_x_PARAM4_ on _PARAM0_", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetStringVariable" + }, + "parameters": [ + "Mode", + "=", + "\"Fixed\"" + ] + }, + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "AreaX", + "=", + "X" + ] + }, + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "AreaY", + "=", + "Y" + ] + }, + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "AreaWidth", + "=", + "max(1, Width)" + ] + }, + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "AreaHeight", + "=", + "max(1, Height)" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "supplementaryInformation": "Minimap::Minimap", + "type": "object" + }, + { + "description": "X", + "name": "X", + "type": "expression" + }, + { + "description": "Y", + "name": "Y", + "type": "expression" + }, + { + "description": "Width", + "name": "Width", + "type": "expression" + }, + { + "description": "Height", + "name": "Height", + "type": "expression" + } + ], + "objectGroups": [], + "description": "Show a fixed area of the scene on the minimap, for example the whole level." + }, + { + "fullName": "Follow the center marker", + "functionType": "Action", + "name": "FollowCenter", + "sentence": "_PARAM0_ follows the center marker", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetStringVariable" + }, + "parameters": [ + "Mode", + "=", + "\"Follow\"" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "supplementaryInformation": "Minimap::Minimap", + "type": "object" + } + ], + "objectGroups": [], + "description": "Show the area around the object whose marker is the center of the minimaps." + }, + { + "fullName": "Categories shown", + "functionType": "Action", + "name": "SetCategories", + "sentence": "Show the categories _PARAM1_ on _PARAM0_", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetStringVariable" + }, + "parameters": [ + "Categories", + "=", + "Value" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "supplementaryInformation": "Minimap::Minimap", + "type": "object" + }, + { + "description": "Categories", + "name": "Value", + "type": "string" + } + ], + "objectGroups": [], + "description": "Change the categories of markers shown on the minimap: categories separated by commas, or an empty text to show every marker." + }, + { + "fullName": "Shown markers", + "functionType": "Expression", + "name": "ShownMarkerCount", + "sentence": "", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "Index", + "=", + "0" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::ForEach", + "object": "Marker", + "conditions": [ + { + "type": { + "value": "Visible" + }, + "parameters": [ + "Marker" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "Index", + "+", + "1" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetReturnNumber" + }, + "parameters": [ + "Index" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "supplementaryInformation": "Minimap::Minimap", + "type": "object" + } + ], + "objectGroups": [], + "description": "The number of markers shown on the minimap.", + "expressionType": { + "type": "number" + } + } + ], + "variants": [ + { + "areaMaxX": 200, + "areaMaxY": 200, + "areaMaxZ": 64, + "areaMinX": 0, + "areaMinY": 0, + "areaMinZ": 0, + "name": "Hologram Radar", + "objects": [ + { + "assetStoreId": "", + "bottomMargin": 66, + "height": 200, + "leftMargin": 66, + "name": "Background", + "rightMargin": 66, + "texture": "Hologram Radar Background.png", + "tiled": false, + "type": "PanelSpriteObject::PanelSprite", + "width": 200, + "variables": [], + "effects": [], + "behaviors": [ + { + "name": "Anchor", + "type": "AnchorBehavior::AnchorBehavior", + "bottomEdgeAnchor": 2, + "leftEdgeAnchor": 1, + "relativeToOriginalWindowSize": true, + "rightEdgeAnchor": 2, + "topEdgeAnchor": 1, + "useLegacyBottomAndRightAnchors": false + } + ], + "topMargin": 66 + }, + { + "adaptCollisionMaskAutomatically": true, + "assetStoreId": "", + "name": "Marker", + "type": "Sprite", + "updateIfNotVisible": false, + "variables": [ + { + "name": "Index", + "type": "number", + "value": 0 + } + ], + "effects": [], + "behaviors": [], + "animations": [ + { + "name": "Dot", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "Hologram Minimap Marker Dot.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + }, + { + "name": "Square", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "Hologram Minimap Marker Square.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + }, + { + "name": "Triangle", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "Hologram Minimap Marker Triangle.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + }, + { + "name": "Diamond", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "Hologram Minimap Marker Diamond.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + }, + { + "name": "Star", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "Hologram Minimap Marker Star.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + }, + { + "name": "Ring", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "Hologram Minimap Marker Ring.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + } + ] + }, + { + "adaptCollisionMaskAutomatically": true, + "assetStoreId": "", + "name": "Sweep", + "type": "Sprite", + "updateIfNotVisible": false, + "variables": [], + "effects": [], + "behaviors": [], + "animations": [ + { + "name": "Idle", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "Hologram Radar Sweep.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 100.0, + "y": 100.0 + }, + "centerPoint": { + "automatic": false, + "name": "centre", + "x": 100.0, + "y": 100.0 + }, + "customCollisionMask": [] + } + ] + } + ] + } + ] + }, + { + "assetStoreId": "", + "bottomMargin": 0, + "height": 200, + "leftMargin": 0, + "name": "Frame", + "rightMargin": 0, + "texture": "", + "tiled": false, + "type": "PanelSpriteObject::PanelSprite", + "width": 200, + "variables": [], + "effects": [], + "behaviors": [ + { + "name": "Anchor", + "type": "AnchorBehavior::AnchorBehavior", + "bottomEdgeAnchor": 2, + "leftEdgeAnchor": 1, + "relativeToOriginalWindowSize": true, + "rightEdgeAnchor": 2, + "topEdgeAnchor": 1, + "useLegacyBottomAndRightAnchors": false + } + ] + } + ], + "objectsFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "objectName": "Background" + }, + { + "objectName": "Marker" + }, + { + "objectName": "Sweep" + }, + { + "objectName": "Frame" + } + ] + }, + "objectsGroups": [], + "layers": [ + { + "ambientLightColorB": 200, + "ambientLightColorG": 200, + "ambientLightColorR": 200, + "camera2DPlaneMaxDrawingDistance": 5000, + "camera3DFarPlaneDistance": 10000, + "camera3DFieldOfView": 45, + "camera3DNearPlaneDistance": 3, + "cameraType": "", + "followBaseLayerCamera": false, + "isLightingLayer": false, + "isLocked": false, + "name": "", + "renderingType": "", + "visibility": true, + "cameras": [ + { + "defaultSize": true, + "defaultViewport": true, + "height": 0, + "viewportBottom": 1, + "viewportLeft": 0, + "viewportRight": 1, + "viewportTop": 0, + "width": 0 + } + ], + "effects": [] + } + ], + "instances": [ + { + "angle": 0, + "customSize": true, + "height": 200, + "layer": "", + "name": "Background", + "persistentUuid": "90ed3845-c214-48e1-a96d-ef9fe46119f6", + "width": 200, + "x": 0, + "y": 0, + "zOrder": 0, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 200, + "layer": "", + "name": "Sweep", + "persistentUuid": "f5a2c0ab-1edf-4d2b-a7dc-426dec8df9ea", + "width": 200, + "x": 100.0, + "y": 100.0, + "zOrder": 1, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + } + ] + }, + { + "areaMaxX": 300, + "areaMaxY": 220, + "areaMaxZ": 64, + "areaMinX": 0, + "areaMinY": 0, + "areaMinZ": 0, + "name": "Hologram Minimap", + "objects": [ + { + "assetStoreId": "", + "bottomMargin": 64, + "height": 378, + "leftMargin": 64, + "name": "Background", + "rightMargin": 64, + "texture": "Hologram Panel.png", + "tiled": false, + "type": "PanelSpriteObject::PanelSprite", + "width": 405, + "variables": [], + "effects": [], + "behaviors": [ + { + "name": "Anchor", + "type": "AnchorBehavior::AnchorBehavior", + "bottomEdgeAnchor": 2, + "leftEdgeAnchor": 1, + "relativeToOriginalWindowSize": true, + "rightEdgeAnchor": 2, + "topEdgeAnchor": 1, + "useLegacyBottomAndRightAnchors": false + } + ], + "topMargin": 64 + }, + { + "adaptCollisionMaskAutomatically": true, + "assetStoreId": "", + "name": "Marker", + "type": "Sprite", + "updateIfNotVisible": false, + "variables": [ + { + "name": "Index", + "type": "number", + "value": 0 + } + ], + "effects": [], + "behaviors": [], + "animations": [ + { + "name": "Dot", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "Hologram Minimap Marker Dot.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + }, + { + "name": "Square", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "Hologram Minimap Marker Square.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + }, + { + "name": "Triangle", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "Hologram Minimap Marker Triangle.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + }, + { + "name": "Diamond", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "Hologram Minimap Marker Diamond.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + }, + { + "name": "Star", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "Hologram Minimap Marker Star.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + }, + { + "name": "Ring", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "Hologram Minimap Marker Ring.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + } + ] + }, + { + "adaptCollisionMaskAutomatically": true, + "assetStoreId": "", + "name": "Sweep", + "type": "Sprite", + "updateIfNotVisible": false, + "variables": [], + "effects": [], + "behaviors": [], + "animations": [] + }, + { + "assetStoreId": "", + "bottomMargin": 0, + "height": 200, + "leftMargin": 0, + "name": "Frame", + "rightMargin": 0, + "texture": "", + "tiled": false, + "type": "PanelSpriteObject::PanelSprite", + "width": 200, + "variables": [], + "effects": [], + "behaviors": [ + { + "name": "Anchor", + "type": "AnchorBehavior::AnchorBehavior", + "bottomEdgeAnchor": 2, + "leftEdgeAnchor": 1, + "relativeToOriginalWindowSize": true, + "rightEdgeAnchor": 2, + "topEdgeAnchor": 1, + "useLegacyBottomAndRightAnchors": false + } + ] + } + ], + "objectsFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "objectName": "Background" + }, + { + "objectName": "Marker" + }, + { + "objectName": "Sweep" + }, + { + "objectName": "Frame" + } + ] + }, + "objectsGroups": [], + "layers": [ + { + "ambientLightColorB": 200, + "ambientLightColorG": 200, + "ambientLightColorR": 200, + "camera2DPlaneMaxDrawingDistance": 5000, + "camera3DFarPlaneDistance": 10000, + "camera3DFieldOfView": 45, + "camera3DNearPlaneDistance": 3, + "cameraType": "", + "followBaseLayerCamera": false, + "isLightingLayer": false, + "isLocked": false, + "name": "", + "renderingType": "", + "visibility": true, + "cameras": [ + { + "defaultSize": true, + "defaultViewport": true, + "height": 0, + "viewportBottom": 1, + "viewportLeft": 0, + "viewportRight": 1, + "viewportTop": 0, + "width": 0 + } + ], + "effects": [] + } + ], + "instances": [ + { + "angle": 0, + "customSize": true, + "height": 220, + "layer": "", + "name": "Background", + "persistentUuid": "0f2309cd-bce8-400f-a64f-93ccf1011486", + "width": 300, + "x": 0, + "y": 0, + "zOrder": 0, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + } + ] + } + ] + } + ] + } + ], + "externalLayouts": [] +} \ No newline at end of file diff --git a/examples/space-minimap-radar/thumbnail.png b/examples/space-minimap-radar/thumbnail.png new file mode 100644 index 000000000..80314d6f3 Binary files /dev/null and b/examples/space-minimap-radar/thumbnail.png differ