2D_Engine_Casio_Tool/assets/maps/example.json

76 lines
1.8 KiB
JSON

{
"MapWidth": 3,
"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": "barred_door_sheet"
},
{
"Type": "AnimationSystem",
"NbFrames": 8,
"ActualFrame": 0,
"FrameDelayMs": 100,
"Play": false,
"Loop": false,
"Reverse": false
}
]
},
{
"ID": 2034,
"Components": [
{
"Type": "TransformComponent",
"x": 256,
"y": 192,
"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
}
]
}
]
}