...
This commit is contained in:
150
assets/fruit-shapes.json
Normal file
150
assets/fruit-shapes.json
Normal file
@ -0,0 +1,150 @@
|
||||
{
|
||||
"banana": {
|
||||
"type": "fromPhysicsEditor",
|
||||
"label": "banana",
|
||||
"isStatic": false,
|
||||
"density": 0.1,
|
||||
"restitution": 0.1,
|
||||
"friction": 0.1,
|
||||
"frictionAir": 0.01,
|
||||
"frictionStatic": 0.2,
|
||||
"collisionFilter": {
|
||||
"group": 0,
|
||||
"category": 1,
|
||||
"mask": 255
|
||||
},
|
||||
"fixtures": [
|
||||
{
|
||||
"label": "banana-fixture",
|
||||
"isSensor": false,
|
||||
"vertices": [
|
||||
[ { "x":107, "y":2 }, { "x":95.26110076904297, "y":0.6820602416992188 }, { "x":89, "y":6 }, { "x":94.2380142211914, "y":23.872116088867188 }, { "x":104, "y":22 } ],
|
||||
[ { "x":4, "y":94 }, { "x":1, "y":105 }, { "x":23.985790252685547, "y":119.92895221710205 }, { "x":50, "y":128 }, { "x":27, "y":94 } ],
|
||||
[ { "x":27, "y":94 }, { "x":50, "y":128 }, { "x":79, "y":123 }, { "x":102, "y":110 }, { "x":67, "y":83 } ],
|
||||
[ { "x":67, "y":83 }, { "x":102, "y":110 }, { "x":118.56483459472656, "y":88.44049835205078 }, { "x":126, "y":66 }, { "x":123, "y":40 }, { "x":91, "y":48 } ],
|
||||
[ { "x":123, "y":40 }, { "x":104, "y":22 }, { "x":94.2380142211914, "y":23.872116088867188 }, { "x":91, "y":48 } ]
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"cherries": {
|
||||
"type": "fromPhysicsEditor",
|
||||
"label": "cherries",
|
||||
"isStatic": false,
|
||||
"density": 0.10000000149011612,
|
||||
"restitution": 0.1,
|
||||
"friction": 0.10000000149011612,
|
||||
"frictionAir": 0.009999999776482582,
|
||||
"frictionStatic": 0.5,
|
||||
"collisionFilter": {
|
||||
"group": 0,
|
||||
"category": 1,
|
||||
"mask": 255
|
||||
},
|
||||
"fixtures": [
|
||||
{
|
||||
"label": "cherry-left",
|
||||
"isSensor": false,
|
||||
"circle": {
|
||||
"x": 38.67625899280576,
|
||||
"y": 100.92661870503598,
|
||||
"radius": 25.16224146143038
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "cherry-right",
|
||||
"isSensor": false,
|
||||
"circle": {
|
||||
"x": 97.79568345323742,
|
||||
"y": 102.95251798561152,
|
||||
"radius": 25.16224146143038
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "cherry-stem",
|
||||
"isSensor": false,
|
||||
"vertices": [
|
||||
[ { "x":7, "y":8 }, { "x":32, "y":35 }, { "x":61, "y":36 }, { "x":85.0877685546875, "y":32.59856414794922 }, { "x":77, "y":19 }, { "x":58, "y":5 } ],
|
||||
[ { "x":85, "y":13 }, { "x":77, "y":19 }, { "x":85.0877685546875, "y":32.59856414794922 }, { "x":93, "y":22 } ],
|
||||
[ { "x":85.0877685546875, "y":32.59856414794922 }, { "x":61, "y":36 }, { "x":43, "y":58 }, { "x":41, "y":75 }, { "x":84.16690826416016, "y":53.778419494628906 } ],
|
||||
[ { "x":90, "y":78 }, { "x":84.16690826416016, "y":53.778419494628906 }, { "x":41, "y":75 } ]
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"crate": {
|
||||
"type": "fromPhysicsEditor",
|
||||
"label": "create",
|
||||
"isStatic": false,
|
||||
"density": 0.7999999999999999,
|
||||
"restitution": 0.1,
|
||||
"friction": 0.10000000149011612,
|
||||
"frictionAir": 0.009999999776482582,
|
||||
"frictionStatic": 0.5,
|
||||
"collisionFilter": {
|
||||
"group": 0,
|
||||
"category": 1,
|
||||
"mask": 255
|
||||
},
|
||||
"fixtures": [
|
||||
{
|
||||
"label": "crate-fixture",
|
||||
"isSensor": false,
|
||||
"vertices": [
|
||||
[ { "x":5, "y":9 }, { "x":5.115452766418457, "y":36.0355224609375 }, { "x":8.980462074279785, "y":36.376556396484375 }, { "x":120.61101531982422, "y":38.309059143066406 }, { "x":124, "y":36 }, { "x":124, "y":9 } ],
|
||||
[ { "x":8, "y":128 }, { "x":123, "y":128 }, { "x":123, "y":105 }, { "x":120.15630340576172, "y":104.46891593933105 }, { "x":10.79928970336914, "y":103.67317962646484 }, { "x":7.73001766204834, "y":104.92362403869629 } ],
|
||||
[ { "x":120.15630340576172, "y":104.46891593933105 }, { "x":120.61101531982422, "y":38.309059143066406 }, { "x":8.980462074279785, "y":36.376556396484375 }, { "x":10.79928970336914, "y":103.67317962646484 } ]
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"orange": {
|
||||
"type": "fromPhysicsEditor",
|
||||
"label": "orange",
|
||||
"isStatic": false,
|
||||
"density": 0.1,
|
||||
"restitution": 0.1,
|
||||
"friction": 0.10000000149011612,
|
||||
"frictionAir": 0.009999999776482582,
|
||||
"frictionStatic": 0.5,
|
||||
"collisionFilter": {
|
||||
"group": 0,
|
||||
"category": 1,
|
||||
"mask": 255
|
||||
},
|
||||
"fixtures": [
|
||||
{
|
||||
"label": "orange-fixture",
|
||||
"isSensor": false,
|
||||
"circle": {
|
||||
"x": 64.46043165467627,
|
||||
"y": 67.0388489208633,
|
||||
"radius": 61.12368896735685
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"ground": {
|
||||
"type": "fromPhysicsEditor",
|
||||
"label": "ground",
|
||||
"isStatic": true,
|
||||
"density": 0,
|
||||
"restitution": 0,
|
||||
"friction": 0.10000000149011612,
|
||||
"frictionAir": 0.009999999776482582,
|
||||
"frictionStatic": 0.5,
|
||||
"collisionFilter": {
|
||||
"group": 0,
|
||||
"category": 1,
|
||||
"mask": 255
|
||||
},
|
||||
"fixtures": [
|
||||
{
|
||||
"label": "",
|
||||
"isSensor": false,
|
||||
"vertices": [
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
146
assets/fruit-sprites.json
Normal file
146
assets/fruit-sprites.json
Normal file
@ -0,0 +1,146 @@
|
||||
{
|
||||
"textures": [
|
||||
{
|
||||
"image": "fruit-sprites.png",
|
||||
"format": "RGBA8888",
|
||||
"size": {
|
||||
"w": 1380,
|
||||
"h": 1202
|
||||
},
|
||||
"scale": 1,
|
||||
"frames": [
|
||||
{
|
||||
"filename": "background",
|
||||
"rotated": true,
|
||||
"trimmed": false,
|
||||
"sourceSize": {
|
||||
"w": 1200,
|
||||
"h": 960
|
||||
},
|
||||
"spriteSourceSize": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"w": 1200,
|
||||
"h": 960
|
||||
},
|
||||
"frame": {
|
||||
"x": 1,
|
||||
"y": 1,
|
||||
"w": 1200,
|
||||
"h": 960
|
||||
}
|
||||
},
|
||||
{
|
||||
"filename": "ground",
|
||||
"rotated": true,
|
||||
"trimmed": true,
|
||||
"sourceSize": {
|
||||
"w": 1200,
|
||||
"h": 626
|
||||
},
|
||||
"spriteSourceSize": {
|
||||
"x": 0,
|
||||
"y": 339,
|
||||
"w": 1200,
|
||||
"h": 287
|
||||
},
|
||||
"frame": {
|
||||
"x": 963,
|
||||
"y": 1,
|
||||
"w": 1200,
|
||||
"h": 287
|
||||
}
|
||||
},
|
||||
{
|
||||
"filename": "banana",
|
||||
"rotated": false,
|
||||
"trimmed": true,
|
||||
"sourceSize": {
|
||||
"w": 128,
|
||||
"h": 128
|
||||
},
|
||||
"spriteSourceSize": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"w": 127,
|
||||
"h": 128
|
||||
},
|
||||
"frame": {
|
||||
"x": 1252,
|
||||
"y": 1,
|
||||
"w": 127,
|
||||
"h": 128
|
||||
}
|
||||
},
|
||||
{
|
||||
"filename": "orange",
|
||||
"rotated": false,
|
||||
"trimmed": true,
|
||||
"sourceSize": {
|
||||
"w": 128,
|
||||
"h": 128
|
||||
},
|
||||
"spriteSourceSize": {
|
||||
"x": 1,
|
||||
"y": 5,
|
||||
"w": 127,
|
||||
"h": 123
|
||||
},
|
||||
"frame": {
|
||||
"x": 1252,
|
||||
"y": 131,
|
||||
"w": 127,
|
||||
"h": 123
|
||||
}
|
||||
},
|
||||
{
|
||||
"filename": "cherries",
|
||||
"rotated": true,
|
||||
"trimmed": true,
|
||||
"sourceSize": {
|
||||
"w": 128,
|
||||
"h": 128
|
||||
},
|
||||
"spriteSourceSize": {
|
||||
"x": 5,
|
||||
"y": 3,
|
||||
"w": 120,
|
||||
"h": 125
|
||||
},
|
||||
"frame": {
|
||||
"x": 1252,
|
||||
"y": 256,
|
||||
"w": 120,
|
||||
"h": 125
|
||||
}
|
||||
},
|
||||
{
|
||||
"filename": "crate",
|
||||
"rotated": false,
|
||||
"trimmed": true,
|
||||
"sourceSize": {
|
||||
"w": 128,
|
||||
"h": 128
|
||||
},
|
||||
"spriteSourceSize": {
|
||||
"x": 3,
|
||||
"y": 7,
|
||||
"w": 123,
|
||||
"h": 121
|
||||
},
|
||||
"frame": {
|
||||
"x": 1252,
|
||||
"y": 378,
|
||||
"w": 123,
|
||||
"h": 121
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"meta": {
|
||||
"app": "https://www.codeandweb.com/texturepacker",
|
||||
"version": "3.0",
|
||||
"smartupdate": "$TexturePacker:SmartUpdate:0d0bce26c10ae31fb56fffa698e98974:1f8e7cbe61cf17088e7b8ba8bd089be7:25f385b2bb08c04649fd253213a50a44$"
|
||||
}
|
||||
}
|
BIN
assets/fruit-sprites.png
Normal file
BIN
assets/fruit-sprites.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 75 KiB |
BIN
assets/fruit-sprites.png.orig
Normal file
BIN
assets/fruit-sprites.png.orig
Normal file
Binary file not shown.
After Width: | Height: | Size: 75 KiB |
Reference in New Issue
Block a user