- using 1 func for grid collision checking with func arguments in
  player and obstacle systems.
- moving obstacles now kill player if business ends points toward him
  on contact
- added retry in popup menu
This commit is contained in:
2024-03-21 13:25:06 +01:00
parent 1d16fcb73f
commit e93c08f81f
9 changed files with 201 additions and 90 deletions

View File

@@ -11,7 +11,7 @@
"iid": "267e9380-d7b0-11ee-a97e-35bec9c19d52",
"jsonVersion": "1.5.3",
"appBuildId": 473703,
"nextUid": 31,
"nextUid": 33,
"identifierStyle": "Capitalize",
"toc": [],
"worldLayout": "Free",
@@ -3502,6 +3502,121 @@
}
],
"__neighbours": []
},
{
"identifier": "Level_13",
"iid": "df3a04b0-d7b0-11ee-b56f-5371345878c2",
"uid": 32,
"worldX": 480,
"worldY": 1632,
"worldDepth": 0,
"pxWid": 640,
"pxHei": 480,
"__bgColor": "#696A79",
"bgColor": null,
"useAutoIdentifier": true,
"bgRelPath": "../sprites/background-lila.png",
"bgPos": "Cover",
"bgPivotX": 0.5,
"bgPivotY": 0.5,
"__smartColor": "#ADADB5",
"__bgPos": { "topLeftPx": [0,0], "scale": [1,1], "cropRect": [0,0,640,480] },
"externalRelPath": null,
"fieldInstances": [
{ "__identifier": "level", "__type": "Int", "__value": 13, "__tile": null, "defUid": 11, "realEditorValues": [{ "id": "V_Int", "params": [13] }] },
{ "__identifier": "description", "__type": "String", "__value": "test", "__tile": null, "defUid": 12, "realEditorValues": [{
"id": "V_String",
"params": ["test"]
}] },
{ "__identifier": "background", "__type": "String", "__value": "background-lila", "__tile": null, "defUid": 13, "realEditorValues": [] },
{ "__identifier": "minmoves", "__type": "Int", "__value": 7, "__tile": null, "defUid": 14, "realEditorValues": [] }
],
"layerInstances": [
{
"__identifier": "Entities",
"__type": "Entities",
"__cWid": 20,
"__cHei": 15,
"__gridSize": 32,
"__opacity": 1,
"__pxTotalOffsetX": 0,
"__pxTotalOffsetY": 0,
"__tilesetDefUid": null,
"__tilesetRelPath": null,
"iid": "df3a04b1-d7b0-11ee-b56f-31d2a4bd4c5c",
"levelId": 32,
"layerDefUid": 5,
"pxOffsetX": 0,
"pxOffsetY": 0,
"visible": true,
"optionalRules": [],
"intGridCsv": [],
"autoLayerTiles": [],
"seed": 1934321,
"overrideTilesetUid": null,
"gridTiles": [],
"entityInstances": [
{
"__identifier": "PlayerPrimary",
"__grid": [9,7],
"__pivot": [0,0],
"__tags": [],
"__tile": { "tilesetUid": 1, "x": 32, "y": 96, "w": 32, "h": 32 },
"__smartColor": "#2F3BBE",
"iid": "f00cf6d0-d7b0-11ee-b56f-4d0f006a98b4",
"width": 32,
"height": 32,
"defUid": 3,
"px": [288,224],
"fieldInstances": [],
"__worldX": 768,
"__worldY": 1856
},
{
"__identifier": "ObstacleEast",
"__grid": [12,7],
"__pivot": [0,0],
"__tags": [],
"__tile": { "tilesetUid": 1, "x": 64, "y": 32, "w": 32, "h": 32 },
"__smartColor": "#D77643",
"iid": "f5429510-d7b0-11ee-b56f-4d263bc512ec",
"width": 32,
"height": 32,
"defUid": 8,
"px": [384,224],
"fieldInstances": [],
"__worldX": 864,
"__worldY": 1856
}
]
},
{
"__identifier": "Tiles",
"__type": "Tiles",
"__cWid": 20,
"__cHei": 15,
"__gridSize": 32,
"__opacity": 1,
"__pxTotalOffsetX": 0,
"__pxTotalOffsetY": 0,
"__tilesetDefUid": 1,
"__tilesetRelPath": "../sprites/map.png",
"iid": "df3a04b2-d7b0-11ee-b56f-99f67bd5211d",
"levelId": 32,
"layerDefUid": 2,
"pxOffsetX": 0,
"pxOffsetY": 0,
"visible": true,
"optionalRules": [],
"intGridCsv": [],
"autoLayerTiles": [],
"seed": 2843103,
"overrideTilesetUid": null,
"gridTiles": [{ "px": [352,320], "src": [64,0], "f": 0, "t": 2, "d": [211], "a": 1 }],
"entityInstances": []
}
],
"__neighbours": []
}
],
"worlds": [],