2D_Engine_Casio_Tool/assets/maps/example.json

92 lines
2.3 KiB
JSON

{
"MapWidth": 2,
"MapHeight": 2,
"BackgroundLayer1": [
1,0,
0,0
],
"BackgroundLayer2": [
0,2,
0,0
],
"BackgroundLayer3": [
0,0,
3,0
],
"Foreground": [
0,0,
0,4
],
"Entities": [
{
"ID": 2034,
"Components": [
{
"Type": "TransformComponent",
"x": 128,
"y": 96,
"w": 32,
"h": 48,
"Speed": 0
},
{
"Type": "SpriteComponent",
"TextureName": "dungeon_door_sheet"
},
{
"Type": "AnimationSystem",
"NbFrames": 15,
"ActualFrame": 8,
"FrameDelayMs": 100,
"Play": false,
"Loop": false,
"Reverse": false
},
{
"Type": "DoorSystem",
"States": [
{
"Channel": 0,
"State": true
}
]
}
]
},
{
"ID": 542,
"StoreInteraction": true,
"Components": [
{
"Type": "TransformComponent",
"Bounds": {
"x": 256,
"y": 384,
"w": 48,
"h": 32
},
"Speed": 0
},
{
"Type": "SpriteComponent",
"TextureName": "lever_sheet"
},
{
"Type": "AnimationSystem",
"NbFrames": 3,
"ActualFrame": 0,
"FrameDelayMs": 300,
"Play": false,
"Loop": false,
"Reverse": false
},
{
"Type": "LeverSystem",
"Channel": 0
}
]
}
]
}