Skip to content

Commit

Permalink
Extended the example project with some nested custom classes
Browse files Browse the repository at this point in the history
Based on Box2D data types.
  • Loading branch information
bjorn committed Sep 9, 2022
1 parent 609cab8 commit 80220a9
Showing 1 changed file with 129 additions and 47 deletions.
176 changes: 129 additions & 47 deletions examples/examples.tiled-project
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,37 @@
"../tests"
],
"propertyTypes": [
{
"color": "#ffa0a0a4",
"id": 10,
"members": [
{
"name": "fixture",
"propertyType": "Fixture",
"type": "class",
"value": {
}
},
{
"name": "type",
"propertyType": "BodyType",
"type": "string",
"value": "Static"
}
],
"name": "Body",
"type": "class",
"useAs": [
"property",
"map",
"layer",
"object",
"tile",
"tileset",
"wangcolor",
"wangset"
]
},
{
"id": 1,
"name": "BodyType",
Expand All @@ -19,6 +50,33 @@
],
"valuesAsFlags": false
},
{
"id": 12,
"name": "CollisionCategories",
"storageType": "int",
"type": "enum",
"values": [
"0",
"1",
"2",
"3",
"4"
],
"valuesAsFlags": true
},
{
"id": 9,
"name": "Direction",
"storageType": "string",
"type": "enum",
"values": [
"Up",
"Right",
"Down",
"Left"
],
"valuesAsFlags": false
},
{
"id": 2,
"name": "EnemyType",
Expand All @@ -32,92 +90,116 @@
"valuesAsFlags": false
},
{
"color": "#ffad7fa8",
"id": 4,
"color": "#ffcdab8f",
"id": 5,
"members": [
{
"name": "friction",
"type": "float",
"value": 1
},
{
"name": "static",
"type": "bool",
"value": false
"name": "direction",
"propertyType": "Direction",
"type": "string",
"value": "Up"
}
],
"name": "Fixture",
"type": "class",
"useAs": [
"object",
"tile"
]
},
{
"color": "#ffeeeeec",
"id": 5,
"members": [
],
"name": "Location",
"name": "Exit",
"type": "class",
"useAs": [
"object",
"tile"
]
},
{
"color": "#ff729fcf",
"id": 6,
"color": "#ffa0a0a4",
"id": 11,
"members": [
{
"name": "categoryBits",
"propertyType": "CollisionCategories",
"type": "int",
"value": 0
},
{
"name": "groupIndex",
"type": "int",
"value": 0
},
{
"name": "maskBits",
"propertyType": "CollisionCategories",
"type": "int",
"value": 0
}
],
"name": "NPC",
"name": "Filter",
"type": "class",
"useAs": [
"property",
"map",
"layer",
"object",
"tile"
"tile",
"tileset",
"wangcolor",
"wangset"
]
},
{
"color": "#ff99c1f1",
"id": 7,
"color": "#ffad7fa8",
"id": 4,
"members": [
{
"name": "disabled",
"type": "bool",
"value": false
"name": "density",
"type": "float",
"value": 0
},
{
"name": "modX",
"type": "int",
"value": 1
"name": "filter",
"propertyType": "Filter",
"type": "class",
"value": {
"categoryBits": 1,
"maskBits": 1
}
},
{
"name": "modY",
"type": "int",
"name": "friction",
"type": "float",
"value": 1
},
{
"name": "noOverlappingOutput",
"name": "isSensor",
"type": "bool",
"value": false
},
{
"name": "offsetX",
"type": "int",
"name": "restitution",
"type": "float",
"value": 0
},
{
"name": "offsetY",
"type": "int",
"name": "restitutionThreshold",
"type": "float",
"value": 0
},
}
],
"name": "Fixture",
"type": "class",
"useAs": [
"property",
"object",
"tile"
]
},
{
"color": "#ff729fcf",
"id": 6,
"members": [
{
"name": "probability",
"type": "float",
"value": 1
"name": "script",
"type": "file",
"value": ""
}
],
"name": "RuleOptions",
"name": "NPC",
"type": "class",
"useAs": [
"object",
Expand Down

0 comments on commit 80220a9

Please sign in to comment.