Files

789 lines
20 KiB
JSON

{
"firstLayout": "",
"gdVersion": {
"build": 97,
"major": 4,
"minor": 0,
"revision": 0
},
"properties": {
"folderProject": false,
"linuxExecutableFilename": "",
"macExecutableFilename": "",
"orientation": "landscape",
"packageName": "com.example.gamename",
"projectFile": "/Users/florianrival/Projects/F/GD/GDJS/tests/games/rotated-objects-hitboxes/game.json",
"sizeOnStartupMode": "adaptWidth",
"useExternalSourceFiles": false,
"version": "1.0.0",
"winExecutableFilename": "",
"winExecutableIconFile": "",
"name": "Project",
"author": "",
"windowWidth": 800,
"windowHeight": 600,
"latestCompilationDirectory": "",
"maxFPS": 60,
"minFPS": 10,
"verticalSync": false,
"platformSpecificAssets": {},
"loadingScreen": {
"showGDevelopSplash": false
},
"authorIds": [],
"authorUsernames": [],
"extensions": [
{
"name": "BuiltinObject"
},
{
"name": "BuiltinAudio"
},
{
"name": "BuiltinVariables"
},
{
"name": "BuiltinTime"
},
{
"name": "BuiltinMouse"
},
{
"name": "BuiltinKeyboard"
},
{
"name": "BuiltinJoystick"
},
{
"name": "BuiltinCamera"
},
{
"name": "BuiltinWindow"
},
{
"name": "BuiltinFile"
},
{
"name": "BuiltinNetwork"
},
{
"name": "BuiltinScene"
},
{
"name": "BuiltinAdvanced"
},
{
"name": "Sprite"
},
{
"name": "BuiltinCommonInstructions"
},
{
"name": "BuiltinCommonConversions"
},
{
"name": "BuiltinStringInstructions"
},
{
"name": "BuiltinMathematicalTools"
},
{
"name": "BuiltinExternalLayouts"
}
],
"platforms": [
{
"name": "GDevelop JS platform"
}
],
"currentPlatform": "GDevelop JS platform"
},
"resources": {
"resources": [
{
"alwaysLoaded": false,
"file": "NewObject-1.png",
"kind": "image",
"metadata": "",
"name": "NewObject-1.png",
"smoothed": true,
"userAdded": true
},
{
"alwaysLoaded": false,
"file": "NewObject2-1.png",
"kind": "image",
"metadata": "",
"name": "NewObject2-1.png",
"smoothed": true,
"userAdded": false
},
{
"alwaysLoaded": false,
"file": "Image-1.png",
"kind": "image",
"metadata": "",
"name": "Image-1.png",
"smoothed": true,
"userAdded": true
},
{
"alwaysLoaded": false,
"file": "NewObject2-1-0.png",
"kind": "image",
"metadata": "",
"name": "NewObject2-1-0.png",
"smoothed": true,
"userAdded": false
},
{
"alwaysLoaded": false,
"file": "NewObject2-2.png",
"kind": "image",
"metadata": "",
"name": "NewObject2-2.png",
"smoothed": true,
"userAdded": false
}
],
"resourceFolders": []
},
"objects": [],
"objectsGroups": [],
"variables": [],
"layouts": [
{
"b": 209,
"disableInputWhenNotFocused": true,
"mangledName": "NewScene",
"name": "NewScene",
"oglFOV": 90,
"oglZFar": 500,
"oglZNear": 1,
"r": 209,
"standardSortMethod": true,
"stopSoundsOnStartup": true,
"title": "",
"v": 209,
"uiSettings": {
"grid": false,
"gridB": 255,
"gridG": 180,
"gridHeight": 32,
"gridOffsetX": 0,
"gridOffsetY": 0,
"gridR": 158,
"gridWidth": 32,
"snap": true,
"windowMask": false,
"zoomFactor": 1
},
"objectsGroups": [],
"variables": [],
"instances": [
{
"angle": 45,
"customSize": false,
"height": 0,
"layer": "",
"locked": false,
"name": "DefaultSprite",
"width": 0,
"x": 39,
"y": 32,
"zOrder": 1,
"numberProperties": [],
"stringProperties": [],
"initialVariables": []
},
{
"angle": 45,
"customSize": true,
"height": 66,
"layer": "",
"locked": false,
"name": "CenterTopLeft",
"width": 107,
"x": 80,
"y": 219,
"zOrder": 2,
"numberProperties": [],
"stringProperties": [],
"initialVariables": []
},
{
"angle": 32.0054,
"customSize": true,
"height": 24,
"layer": "",
"locked": false,
"name": "TextObject",
"width": 136,
"x": 346,
"y": 51,
"zOrder": 3,
"numberProperties": [],
"stringProperties": [],
"initialVariables": []
},
{
"angle": 16.9908,
"customSize": true,
"height": 32,
"layer": "",
"locked": false,
"name": "TiledSprite",
"width": 349,
"x": 452,
"y": 61,
"zOrder": 4,
"numberProperties": [],
"stringProperties": [],
"initialVariables": []
},
{
"angle": 0,
"customSize": true,
"height": 48,
"layer": "",
"locked": false,
"name": "CenterTopLeft",
"width": 94,
"x": 177,
"y": 219,
"zOrder": 2,
"numberProperties": [],
"stringProperties": [],
"initialVariables": []
},
{
"angle": 44.3415,
"customSize": true,
"height": 72,
"layer": "",
"locked": false,
"name": "CenterBottomRight",
"width": 104,
"x": 575,
"y": 288,
"zOrder": 5,
"numberProperties": [],
"stringProperties": [],
"initialVariables": []
},
{
"angle": 0,
"customSize": true,
"height": 63,
"layer": "",
"locked": false,
"name": "CenterBottomRight",
"width": 101,
"x": 433,
"y": 254,
"zOrder": 5,
"numberProperties": [],
"stringProperties": [],
"initialVariables": []
},
{
"angle": 38.4969,
"customSize": true,
"height": 63,
"layer": "",
"locked": false,
"name": "OriginMiddleCenterBottomRight",
"width": 90,
"x": 251,
"y": 518,
"zOrder": 6,
"numberProperties": [],
"stringProperties": [],
"initialVariables": []
},
{
"angle": 0,
"customSize": true,
"height": 59,
"layer": "",
"locked": false,
"name": "OriginMiddleCenterBottomRight",
"width": 101,
"x": 96,
"y": 473,
"zOrder": 6,
"numberProperties": [],
"stringProperties": [],
"initialVariables": []
},
{
"angle": 0,
"customSize": false,
"height": 0,
"layer": "",
"locked": false,
"name": "CenterTopLeft",
"width": 0,
"x": 177,
"y": 171,
"zOrder": 2,
"numberProperties": [],
"stringProperties": [],
"initialVariables": []
},
{
"angle": 45,
"customSize": false,
"height": 0,
"layer": "",
"locked": false,
"name": "CenterTopLeft",
"width": 0,
"x": 93,
"y": 153,
"zOrder": 2,
"numberProperties": [],
"stringProperties": [],
"initialVariables": []
},
{
"angle": 0,
"customSize": false,
"height": 0,
"layer": "",
"locked": false,
"name": "CenterBottomRight",
"width": 0,
"x": 434,
"y": 193,
"zOrder": 5,
"numberProperties": [],
"stringProperties": [],
"initialVariables": []
},
{
"angle": 44.3415,
"customSize": false,
"height": 0,
"layer": "",
"locked": false,
"name": "CenterBottomRight",
"width": 0,
"x": 552,
"y": 193,
"zOrder": 5,
"numberProperties": [],
"stringProperties": [],
"initialVariables": []
},
{
"angle": 0,
"customSize": false,
"height": 0,
"layer": "",
"locked": false,
"name": "OriginMiddleCenterBottomRight",
"width": 0,
"x": 77,
"y": 414,
"zOrder": 6,
"numberProperties": [],
"stringProperties": [],
"initialVariables": []
},
{
"angle": 38.4969,
"customSize": false,
"height": 0,
"layer": "",
"locked": false,
"name": "OriginMiddleCenterBottomRight",
"width": 0,
"x": 215,
"y": 424,
"zOrder": 6,
"numberProperties": [],
"stringProperties": [],
"initialVariables": []
},
{
"angle": 45,
"customSize": true,
"height": 71,
"layer": "",
"locked": false,
"name": "CustomHitboxesOriginMiddleCenterBottomRight",
"width": 105,
"x": 647,
"y": 566,
"zOrder": 7,
"numberProperties": [],
"stringProperties": [],
"initialVariables": []
},
{
"angle": 0,
"customSize": true,
"height": 65,
"layer": "",
"locked": false,
"name": "CustomHitboxesOriginMiddleCenterBottomRight",
"width": 112,
"x": 515,
"y": 538,
"zOrder": 7,
"numberProperties": [],
"stringProperties": [],
"initialVariables": []
},
{
"angle": 45,
"customSize": false,
"height": 0,
"layer": "",
"locked": false,
"name": "CustomHitboxesOriginMiddleCenterBottomRight",
"width": 0,
"x": 632,
"y": 451,
"zOrder": 7,
"numberProperties": [],
"stringProperties": [],
"initialVariables": []
},
{
"angle": 0,
"customSize": false,
"height": 0,
"layer": "",
"locked": false,
"name": "CustomHitboxesOriginMiddleCenterBottomRight",
"width": 0,
"x": 510.005,
"y": 450.563,
"zOrder": 7,
"numberProperties": [],
"stringProperties": [],
"initialVariables": []
},
{
"angle": 32.0054,
"customSize": false,
"height": 0,
"layer": "",
"locked": false,
"name": "TextObject",
"width": 0,
"x": 141,
"y": 52,
"zOrder": 3,
"numberProperties": [],
"stringProperties": [],
"initialVariables": []
},
{
"angle": 0,
"customSize": true,
"height": 24,
"layer": "",
"locked": false,
"name": "TextObject",
"width": 127,
"x": 323,
"y": 530,
"zOrder": 8,
"numberProperties": [],
"stringProperties": [],
"initialVariables": []
}
],
"objects": [
{
"name": "DefaultSprite",
"type": "Sprite",
"updateIfNotVisible": false,
"variables": [],
"behaviors": [],
"effects": [],
"animations": [
{
"name": "NewObject",
"useMultipleDirections": false,
"directions": [
{
"looping": false,
"timeBetweenFrames": 1,
"sprites": [
{
"hasCustomCollisionMask": false,
"image": "NewObject-1.png",
"points": [],
"originPoint": {
"name": "origine",
"x": 0,
"y": 0
},
"centerPoint": {
"automatic": true,
"name": "centre",
"x": 0,
"y": 0
},
"customCollisionMask": []
}
]
}
]
}
]
},
{
"name": "CenterBottomRight",
"type": "Sprite",
"updateIfNotVisible": false,
"variables": [],
"behaviors": [],
"effects": [],
"animations": [
{
"name": "NewObject2",
"useMultipleDirections": false,
"directions": [
{
"looping": false,
"timeBetweenFrames": 1,
"sprites": [
{
"hasCustomCollisionMask": false,
"image": "NewObject2-1.png",
"points": [],
"originPoint": {
"name": "origine",
"x": 0,
"y": 0
},
"centerPoint": {
"automatic": false,
"name": "centre",
"x": 64,
"y": 31
},
"customCollisionMask": []
}
]
}
]
}
]
},
{
"name": "CenterTopLeft",
"type": "Sprite",
"updateIfNotVisible": false,
"variables": [],
"behaviors": [],
"effects": [],
"animations": [
{
"name": "NewObject2",
"useMultipleDirections": false,
"directions": [
{
"looping": false,
"timeBetweenFrames": 1,
"sprites": [
{
"hasCustomCollisionMask": false,
"image": "NewObject2-1.png",
"points": [],
"originPoint": {
"name": "origine",
"x": 0,
"y": 0
},
"centerPoint": {
"automatic": false,
"name": "centre",
"x": 0,
"y": 0
},
"customCollisionMask": []
}
]
}
]
}
]
},
{
"bold": false,
"italic": false,
"name": "TextObject",
"smoothed": true,
"type": "TextObject::Text",
"underlined": false,
"variables": [],
"behaviors": [],
"effects": [],
"string": "Text blabl balbalbal",
"font": "",
"characterSize": 20,
"color": {
"b": 255,
"g": 255,
"r": 255
}
},
{
"name": "CustomHitboxesOriginMiddleCenterBottomRight",
"type": "Sprite",
"updateIfNotVisible": false,
"variables": [],
"behaviors": [],
"effects": [],
"animations": [
{
"name": "NewObject2",
"useMultipleDirections": false,
"directions": [
{
"looping": false,
"timeBetweenFrames": 1,
"sprites": [
{
"hasCustomCollisionMask": true,
"image": "NewObject2-2.png",
"points": [],
"originPoint": {
"name": "origine",
"x": 32,
"y": 16
},
"centerPoint": {
"automatic": false,
"name": "centre",
"x": 64,
"y": 31
},
"customCollisionMask": [
[
{
"x": 12.5,
"y": 1
},
{
"x": 41.5,
"y": 2
},
{
"x": 55.5,
"y": 31
},
{
"x": 24.5,
"y": 30
}
]
]
}
]
}
]
}
]
},
{
"name": "OriginMiddleCenterBottomRight",
"type": "Sprite",
"updateIfNotVisible": false,
"variables": [],
"behaviors": [],
"effects": [],
"animations": [
{
"name": "NewObject2",
"useMultipleDirections": false,
"directions": [
{
"looping": false,
"timeBetweenFrames": 1,
"sprites": [
{
"hasCustomCollisionMask": false,
"image": "NewObject2-1.png",
"points": [],
"originPoint": {
"name": "origine",
"x": 32,
"y": 16
},
"centerPoint": {
"automatic": false,
"name": "centre",
"x": 64,
"y": 31
},
"customCollisionMask": []
}
]
}
]
}
]
},
{
"height": 32,
"name": "TiledSprite",
"texture": "Image-1.png",
"type": "TiledSpriteObject::TiledSprite",
"width": 32,
"variables": [],
"behaviors": [],
"effects": []
}
],
"events": [
{
"disabled": false,
"folded": false,
"type": "BuiltinCommonInstructions::Comment",
"color": {
"b": 109,
"g": 230,
"r": 255,
"textB": 0,
"textG": 0,
"textR": 0
},
"comment": "Verify the hitboxes of the objects, in particular the rotated ones and the ones with a center point and/or origin that is not at the default position, and/or that are scaled",
"comment2": ""
}
],
"layers": [
{
"name": "",
"visibility": true,
"cameras": [
{
"defaultSize": true,
"defaultViewport": true,
"height": 0,
"viewportBottom": 1,
"viewportLeft": 0,
"viewportRight": 1,
"viewportTop": 0,
"width": 0
}
],
"effects": []
}
],
"behaviorsSharedData": []
}
],
"externalEvents": [],
"eventsFunctionsExtensions": [],
"externalLayouts": [],
"externalSourceFiles": []
}