Commit db4a5d0d authored by wildfirecode's avatar wildfirecode

1

parent 68000efd
......@@ -78,7 +78,7 @@
</script>
<script src="output.js"></script>
<!-- <div id="debugCanvas" style="position:absolute;opacity: .5;pointer-events: none"></div> -->
<!-- <div id="debugCanvas" style="position:absolute;opacity: .8;pointer-events: none"></div> -->
</body>
</html>
\ No newline at end of file
{"file":"candy2.png","frames":{
"15":{"x":0,"y":106,"w":98,"h":112,"offX":185,"offY":158,"sourceW":500,"sourceH":500},
"14":{"x":100,"y":110,"w":94,"h":114,"offX":187,"offY":157,"sourceW":500,"sourceH":500},
"13":{"x":422,"y":0,"w":78,"h":120,"offX":195,"offY":155,"sourceW":500,"sourceH":500},
"12":{"x":196,"y":207,"w":58,"h":127,"offX":202,"offY":152,"sourceW":500,"sourceH":500},
"11":{"x":256,"y":207,"w":52,"h":130,"offX":204,"offY":151,"sourceW":500,"sourceH":500},
"10":{"x":421,"y":122,"w":69,"h":124,"offX":194,"offY":153,"sourceW":500,"sourceH":500},
"9":{"x":112,"y":0,"w":104,"h":108,"offX":178,"offY":159,"sourceW":500,"sourceH":500},
"8":{"x":311,"y":114,"w":108,"h":88,"offX":179,"offY":167,"sourceW":500,"sourceH":500},
"7":{"x":0,"y":220,"w":75,"h":71,"offX":197,"offY":175,"sourceW":500,"sourceH":500},
"6":{"x":141,"y":226,"w":52,"h":65,"offX":208,"offY":178,"sourceW":500,"sourceH":500},
"5":{"x":77,"y":226,"w":62,"h":70,"offX":201,"offY":176,"sourceW":500,"sourceH":500},
"4":{"x":311,"y":204,"w":99,"h":81,"offX":181,"offY":171,"sourceW":500,"sourceH":500},
"3":{"x":196,"y":112,"w":113,"h":93,"offX":175,"offY":166,"sourceW":500,"sourceH":500},
"2":{"x":0,"y":0,"w":110,"h":104,"offX":178,"offY":161,"sourceW":500,"sourceH":500},
"1":{"x":218,"y":0,"w":102,"h":110,"offX":183,"offY":159,"sourceW":500,"sourceH":500},
"0":{"x":322,"y":0,"w":98,"h":112,"offX":185,"offY":158,"sourceW":500,"sourceH":500}}}
\ No newline at end of file
"礼盒0015":{"x":0,"y":107,"w":68,"h":25,"offX":65,"offY":110,"sourceW":250,"sourceH":250},
"礼盒0014":{"x":138,"y":107,"w":68,"h":25,"offX":65,"offY":110,"sourceW":250,"sourceH":250},
"礼盒0013":{"x":69,"y":27,"w":68,"h":26,"offX":65,"offY":109,"sourceW":250,"sourceH":250},
"礼盒0012":{"x":0,"y":81,"w":68,"h":25,"offX":65,"offY":109,"sourceW":250,"sourceH":250},
"礼盒0011":{"x":0,"y":27,"w":68,"h":26,"offX":65,"offY":109,"sourceW":250,"sourceH":250},
"礼盒0010":{"x":138,"y":0,"w":68,"h":26,"offX":65,"offY":109,"sourceW":250,"sourceH":250},
"礼盒0009":{"x":0,"y":54,"w":68,"h":25,"offX":65,"offY":109,"sourceW":250,"sourceH":250},
"礼盒0008":{"x":69,"y":107,"w":67,"h":25,"offX":66,"offY":110,"sourceW":250,"sourceH":250},
"礼盒0007":{"x":138,"y":133,"w":67,"h":25,"offX":66,"offY":110,"sourceW":250,"sourceH":250},
"礼盒0006":{"x":138,"y":54,"w":68,"h":25,"offX":65,"offY":111,"sourceW":250,"sourceH":250},
"礼盒0005":{"x":138,"y":27,"w":68,"h":25,"offX":65,"offY":111,"sourceW":250,"sourceH":250},
"礼盒0004":{"x":69,"y":81,"w":68,"h":25,"offX":65,"offY":111,"sourceW":250,"sourceH":250},
"礼盒0003":{"x":69,"y":0,"w":68,"h":26,"offX":65,"offY":110,"sourceW":250,"sourceH":250},
"礼盒0002":{"x":69,"y":54,"w":68,"h":25,"offX":65,"offY":110,"sourceW":250,"sourceH":250},
"礼盒0001":{"x":0,"y":0,"w":68,"h":26,"offX":65,"offY":110,"sourceW":250,"sourceH":250},
"礼盒0000":{"x":138,"y":80,"w":68,"h":25,"offX":65,"offY":110,"sourceW":250,"sourceH":250}}}
\ No newline at end of file
{"file":"donut.png","frames":{
"礼盒0015":{"x":167,"y":179,"w":165,"h":168,"offX":134,"offY":144,"sourceW":500,"sourceH":500},
"礼盒0014":{"x":340,"y":0,"w":166,"h":168,"offX":135,"offY":144,"sourceW":500,"sourceH":500},
"礼盒0013":{"x":0,"y":349,"w":163,"h":168,"offX":142,"offY":144,"sourceW":500,"sourceH":500},
"礼盒0012":{"x":312,"y":510,"w":144,"h":169,"offX":157,"offY":144,"sourceW":500,"sourceH":500},
"礼盒0011":{"x":365,"y":681,"w":110,"h":170,"offX":177,"offY":144,"sourceW":500,"sourceH":500},
"礼盒0010":{"x":73,"y":697,"w":68,"h":173,"offX":192,"offY":143,"sourceW":500,"sourceH":500},
"礼盒0009":{"x":0,"y":519,"w":125,"h":175,"offX":160,"offY":142,"sourceW":500,"sourceH":500},
"礼盒0008":{"x":171,"y":0,"w":167,"h":177,"offX":134,"offY":141,"sourceW":500,"sourceH":500},
"礼盒0007":{"x":0,"y":0,"w":169,"h":177,"offX":130,"offY":141,"sourceW":500,"sourceH":500},
"礼盒0006":{"x":127,"y":520,"w":124,"h":175,"offX":149,"offY":142,"sourceW":500,"sourceH":500},
"礼盒0005":{"x":0,"y":696,"w":71,"h":174,"offX":171,"offY":142,"sourceW":500,"sourceH":500},
"礼盒0004":{"x":253,"y":681,"w":110,"h":171,"offX":145,"offY":143,"sourceW":500,"sourceH":500},
"礼盒0003":{"x":165,"y":349,"w":145,"h":169,"offX":132,"offY":144,"sourceW":500,"sourceH":500},
"礼盒0002":{"x":334,"y":340,"w":163,"h":168,"offX":128,"offY":144,"sourceW":500,"sourceH":500},
"礼盒0001":{"x":340,"y":170,"w":165,"h":168,"offX":132,"offY":144,"sourceW":500,"sourceH":500},
"礼盒0000":{"x":0,"y":179,"w":165,"h":168,"offX":134,"offY":144,"sourceW":500,"sourceH":500}}}
\ No newline at end of file
"礼盒0015":{"x":84,"y":90,"w":82,"h":84,"offX":67,"offY":72,"sourceW":250,"sourceH":250},
"礼盒0014":{"x":170,"y":0,"w":83,"h":84,"offX":68,"offY":72,"sourceW":250,"sourceH":250},
"礼盒0013":{"x":0,"y":175,"w":81,"h":84,"offX":71,"offY":72,"sourceW":250,"sourceH":250},
"礼盒0012":{"x":156,"y":255,"w":72,"h":84,"offX":79,"offY":72,"sourceW":250,"sourceH":250},
"礼盒0011":{"x":183,"y":341,"w":55,"h":85,"offX":89,"offY":72,"sourceW":250,"sourceH":250},
"礼盒0010":{"x":37,"y":349,"w":34,"h":86,"offX":96,"offY":72,"sourceW":250,"sourceH":250},
"礼盒0009":{"x":0,"y":260,"w":62,"h":87,"offX":80,"offY":71,"sourceW":250,"sourceH":250},
"礼盒0008":{"x":86,"y":0,"w":83,"h":88,"offX":67,"offY":71,"sourceW":250,"sourceH":250},
"礼盒0007":{"x":0,"y":0,"w":84,"h":88,"offX":65,"offY":71,"sourceW":250,"sourceH":250},
"礼盒0006":{"x":64,"y":260,"w":62,"h":87,"offX":75,"offY":71,"sourceW":250,"sourceH":250},
"礼盒0005":{"x":0,"y":348,"w":35,"h":87,"offX":86,"offY":71,"sourceW":250,"sourceH":250},
"礼盒0004":{"x":127,"y":341,"w":55,"h":85,"offX":73,"offY":72,"sourceW":250,"sourceH":250},
"礼盒0003":{"x":83,"y":175,"w":72,"h":84,"offX":66,"offY":72,"sourceW":250,"sourceH":250},
"礼盒0002":{"x":167,"y":170,"w":81,"h":84,"offX":64,"offY":72,"sourceW":250,"sourceH":250},
"礼盒0001":{"x":170,"y":85,"w":82,"h":84,"offX":66,"offY":72,"sourceW":250,"sourceH":250},
"礼盒0000":{"x":0,"y":90,"w":82,"h":84,"offX":67,"offY":72,"sourceW":250,"sourceH":250}}}
\ No newline at end of file
{"file":"egg.png","frames":{
"礼盒0015":{"x":0,"y":83,"w":63,"h":80,"offX":87,"offY":52,"sourceW":250,"sourceH":250},
"礼盒0014":{"x":131,"y":81,"w":63,"h":80,"offX":87,"offY":51,"sourceW":250,"sourceH":250},
"礼盒0013":{"x":0,"y":0,"w":64,"h":82,"offX":86,"offY":51,"sourceW":250,"sourceH":250},
"礼盒0012":{"x":131,"y":0,"w":65,"h":79,"offX":84,"offY":53,"sourceW":250,"sourceH":250},
"礼盒0011":{"x":0,"y":243,"w":66,"h":72,"offX":83,"offY":59,"sourceW":250,"sourceH":250},
"礼盒0010":{"x":67,"y":314,"w":67,"h":66,"offX":82,"offY":61,"sourceW":250,"sourceH":250},
"礼盒0009":{"x":136,"y":314,"w":66,"h":67,"offX":83,"offY":57,"sourceW":250,"sourceH":250},
"礼盒0008":{"x":129,"y":240,"w":65,"h":73,"offX":85,"offY":52,"sourceW":250,"sourceH":250},
"礼盒0007":{"x":65,"y":0,"w":64,"h":81,"offX":87,"offY":51,"sourceW":250,"sourceH":250},
"礼盒0006":{"x":130,"y":162,"w":65,"h":76,"offX":88,"offY":53,"sourceW":250,"sourceH":250},
"礼盒0005":{"x":0,"y":382,"w":67,"h":66,"offX":87,"offY":58,"sourceW":250,"sourceH":250},
"礼盒0004":{"x":0,"y":316,"w":66,"h":63,"offX":87,"offY":61,"sourceW":250,"sourceH":250},
"礼盒0003":{"x":68,"y":382,"w":64,"h":68,"offX":88,"offY":59,"sourceW":250,"sourceH":250},
"礼盒0002":{"x":0,"y":164,"w":63,"h":75,"offX":88,"offY":55,"sourceW":250,"sourceH":250},
"礼盒0001":{"x":65,"y":163,"w":63,"h":79,"offX":87,"offY":52,"sourceW":250,"sourceH":250},
"礼盒0000":{"x":65,"y":82,"w":63,"h":80,"offX":87,"offY":52,"sourceW":250,"sourceH":250}}}
\ No newline at end of file
{"file":"gift2.png","frames":{
"礼盒0015":{"x":207,"y":375,"w":88,"h":122,"offX":174,"offY":157,"sourceW":500,"sourceH":500},
"礼盒0014":{"x":207,"y":251,"w":90,"h":122,"offX":171,"offY":157,"sourceW":500,"sourceH":500},
"礼盒0013":{"x":326,"y":125,"w":102,"h":124,"offX":165,"offY":156,"sourceW":500,"sourceH":500},
"礼盒0012":{"x":345,"y":0,"w":113,"h":123,"offX":161,"offY":156,"sourceW":500,"sourceH":500},
"礼盒0011":{"x":111,"y":125,"w":108,"h":123,"offX":166,"offY":156,"sourceW":500,"sourceH":500},
"礼盒0010":{"x":299,"y":251,"w":90,"h":121,"offX":171,"offY":156,"sourceW":500,"sourceH":500},
"礼盒0009":{"x":230,"y":0,"w":113,"h":123,"offX":161,"offY":156,"sourceW":500,"sourceH":500},
"礼盒0008":{"x":0,"y":250,"w":102,"h":123,"offX":169,"offY":156,"sourceW":500,"sourceH":500},
"礼盒0007":{"x":221,"y":125,"w":103,"h":124,"offX":164,"offY":156,"sourceW":500,"sourceH":500},
"礼盒0006":{"x":115,"y":0,"w":113,"h":123,"offX":162,"offY":156,"sourceW":500,"sourceH":500},
"礼盒0005":{"x":391,"y":251,"w":89,"h":122,"offX":175,"offY":156,"sourceW":500,"sourceH":500},
"礼盒0004":{"x":0,"y":125,"w":109,"h":123,"offX":162,"offY":156,"sourceW":500,"sourceH":500},
"礼盒0003":{"x":0,"y":0,"w":113,"h":123,"offX":162,"offY":156,"sourceW":500,"sourceH":500},
"礼盒0002":{"x":104,"y":250,"w":101,"h":124,"offX":170,"offY":156,"sourceW":500,"sourceH":500},
"礼盒0001":{"x":299,"y":374,"w":88,"h":123,"offX":177,"offY":157,"sourceW":500,"sourceH":500},
"礼盒0000":{"x":0,"y":375,"w":88,"h":122,"offX":174,"offY":157,"sourceW":500,"sourceH":500}}}
\ No newline at end of file
"礼盒0015":{"x":138,"y":196,"w":44,"h":64,"offX":87,"offY":76,"sourceW":250,"sourceH":250},
"礼盒0014":{"x":0,"y":131,"w":46,"h":64,"offX":85,"offY":76,"sourceW":250,"sourceH":250},
"礼盒0013":{"x":167,"y":66,"w":52,"h":64,"offX":82,"offY":76,"sourceW":250,"sourceH":250},
"礼盒0012":{"x":59,"y":0,"w":57,"h":64,"offX":81,"offY":76,"sourceW":250,"sourceH":250},
"礼盒0011":{"x":57,"y":66,"w":54,"h":64,"offX":83,"offY":76,"sourceW":250,"sourceH":250},
"礼盒0010":{"x":47,"y":131,"w":46,"h":63,"offX":85,"offY":76,"sourceW":250,"sourceH":250},
"礼盒0009":{"x":0,"y":0,"w":58,"h":64,"offX":80,"offY":76,"sourceW":250,"sourceH":250},
"礼盒0008":{"x":165,"y":131,"w":51,"h":64,"offX":85,"offY":76,"sourceW":250,"sourceH":250},
"礼盒0007":{"x":113,"y":66,"w":53,"h":64,"offX":82,"offY":76,"sourceW":250,"sourceH":250},
"礼盒0006":{"x":176,"y":0,"w":57,"h":64,"offX":81,"offY":76,"sourceW":250,"sourceH":250},
"礼盒0005":{"x":184,"y":196,"w":44,"h":63,"offX":88,"offY":76,"sourceW":250,"sourceH":250},
"礼盒0004":{"x":0,"y":66,"w":56,"h":64,"offX":81,"offY":76,"sourceW":250,"sourceH":250},
"礼盒0003":{"x":118,"y":0,"w":57,"h":64,"offX":82,"offY":76,"sourceW":250,"sourceH":250},
"礼盒0002":{"x":113,"y":131,"w":51,"h":64,"offX":85,"offY":76,"sourceW":250,"sourceH":250},
"礼盒0001":{"x":93,"y":196,"w":44,"h":64,"offX":88,"offY":76,"sourceW":250,"sourceH":250},
"礼盒0000":{"x":47,"y":195,"w":44,"h":64,"offX":87,"offY":76,"sourceW":250,"sourceH":250}}}
\ No newline at end of file
{"file":"gift3.png","frames":{
"礼盒0015":{"x":276,"y":391,"w":89,"h":128,"offX":173,"offY":151,"sourceW":500,"sourceH":500},
"礼盒0014":{"x":0,"y":262,"w":92,"h":128,"offX":170,"offY":151,"sourceW":500,"sourceH":500},
"礼盒0013":{"x":333,"y":131,"w":105,"h":128,"offX":164,"offY":151,"sourceW":500,"sourceH":500},
"礼盒0012":{"x":118,"y":0,"w":115,"h":129,"offX":161,"offY":151,"sourceW":500,"sourceH":500},
"礼盒0011":{"x":114,"y":131,"w":109,"h":129,"offX":166,"offY":151,"sourceW":500,"sourceH":500},
"礼盒0010":{"x":94,"y":262,"w":92,"h":126,"offX":170,"offY":151,"sourceW":500,"sourceH":500},
"礼盒0009":{"x":0,"y":0,"w":116,"h":129,"offX":160,"offY":151,"sourceW":500,"sourceH":500},
"礼盒0008":{"x":329,"y":261,"w":102,"h":128,"offX":170,"offY":151,"sourceW":500,"sourceH":500},
"礼盒0007":{"x":225,"y":131,"w":106,"h":128,"offX":163,"offY":151,"sourceW":500,"sourceH":500},
"礼盒0006":{"x":351,"y":0,"w":114,"h":129,"offX":162,"offY":151,"sourceW":500,"sourceH":500},
"礼盒0005":{"x":367,"y":391,"w":89,"h":126,"offX":175,"offY":151,"sourceW":500,"sourceH":500},
"礼盒0004":{"x":0,"y":131,"w":112,"h":129,"offX":161,"offY":151,"sourceW":500,"sourceH":500},
"礼盒0003":{"x":235,"y":0,"w":114,"h":129,"offX":163,"offY":151,"sourceW":500,"sourceH":500},
"礼盒0002":{"x":225,"y":261,"w":102,"h":128,"offX":170,"offY":151,"sourceW":500,"sourceH":500},
"礼盒0001":{"x":185,"y":391,"w":89,"h":128,"offX":176,"offY":151,"sourceW":500,"sourceH":500},
"礼盒0000":{"x":94,"y":390,"w":89,"h":128,"offX":173,"offY":151,"sourceW":500,"sourceH":500}}}
\ No newline at end of file
"礼盒0015":{"x":104,"y":188,"w":44,"h":61,"offX":87,"offY":79,"sourceW":250,"sourceH":250},
"礼盒0014":{"x":104,"y":126,"w":45,"h":61,"offX":86,"offY":79,"sourceW":250,"sourceH":250},
"礼盒0013":{"x":163,"y":63,"w":51,"h":62,"offX":83,"offY":78,"sourceW":250,"sourceH":250},
"礼盒0012":{"x":173,"y":0,"w":56,"h":61,"offX":81,"offY":78,"sourceW":250,"sourceH":250},
"礼盒0011":{"x":56,"y":63,"w":54,"h":61,"offX":83,"offY":78,"sourceW":250,"sourceH":250},
"礼盒0010":{"x":150,"y":126,"w":45,"h":60,"offX":86,"offY":78,"sourceW":250,"sourceH":250},
"礼盒0009":{"x":115,"y":0,"w":56,"h":61,"offX":81,"offY":78,"sourceW":250,"sourceH":250},
"礼盒0008":{"x":0,"y":125,"w":51,"h":61,"offX":85,"offY":78,"sourceW":250,"sourceH":250},
"礼盒0007":{"x":111,"y":63,"w":51,"h":62,"offX":82,"offY":78,"sourceW":250,"sourceH":250},
"礼盒0006":{"x":58,"y":0,"w":56,"h":61,"offX":81,"offY":78,"sourceW":250,"sourceH":250},
"礼盒0005":{"x":196,"y":126,"w":44,"h":61,"offX":88,"offY":78,"sourceW":250,"sourceH":250},
"礼盒0004":{"x":0,"y":63,"w":54,"h":61,"offX":81,"offY":78,"sourceW":250,"sourceH":250},
"礼盒0003":{"x":0,"y":0,"w":56,"h":61,"offX":81,"offY":78,"sourceW":250,"sourceH":250},
"礼盒0002":{"x":52,"y":125,"w":50,"h":62,"offX":85,"offY":78,"sourceW":250,"sourceH":250},
"礼盒0001":{"x":150,"y":187,"w":44,"h":61,"offX":89,"offY":79,"sourceW":250,"sourceH":250},
"礼盒0000":{"x":0,"y":188,"w":44,"h":61,"offX":87,"offY":79,"sourceW":250,"sourceH":250}}}
\ No newline at end of file
{"file":"icecream.png","frames":{
"礼盒0015":{"x":368,"y":435,"w":120,"h":143,"offX":162,"offY":130,"sourceW":500,"sourceH":500},
"礼盒0014":{"x":123,"y":435,"w":121,"h":143,"offX":162,"offY":130,"sourceW":500,"sourceH":500},
"礼盒0013":{"x":0,"y":435,"w":121,"h":143,"offX":162,"offY":130,"sourceW":500,"sourceH":500},
"礼盒0012":{"x":369,"y":290,"w":121,"h":143,"offX":162,"offY":130,"sourceW":500,"sourceH":500},
"礼盒0011":{"x":246,"y":290,"w":121,"h":143,"offX":162,"offY":130,"sourceW":500,"sourceH":500},
"礼盒0010":{"x":123,"y":290,"w":121,"h":143,"offX":162,"offY":130,"sourceW":500,"sourceH":500},
"礼盒0009":{"x":0,"y":290,"w":121,"h":143,"offX":163,"offY":130,"sourceW":500,"sourceH":500},
"礼盒0008":{"x":369,"y":145,"w":121,"h":143,"offX":163,"offY":130,"sourceW":500,"sourceH":500},
"礼盒0007":{"x":246,"y":145,"w":121,"h":143,"offX":163,"offY":130,"sourceW":500,"sourceH":500},
"礼盒0006":{"x":123,"y":145,"w":121,"h":143,"offX":163,"offY":130,"sourceW":500,"sourceH":500},
"礼盒0005":{"x":0,"y":145,"w":121,"h":143,"offX":162,"offY":130,"sourceW":500,"sourceH":500},
"礼盒0004":{"x":369,"y":0,"w":121,"h":143,"offX":162,"offY":130,"sourceW":500,"sourceH":500},
"礼盒0003":{"x":246,"y":0,"w":121,"h":143,"offX":162,"offY":130,"sourceW":500,"sourceH":500},
"礼盒0002":{"x":123,"y":0,"w":121,"h":143,"offX":162,"offY":130,"sourceW":500,"sourceH":500},
"礼盒0001":{"x":0,"y":0,"w":121,"h":143,"offX":162,"offY":130,"sourceW":500,"sourceH":500},
"礼盒0000":{"x":246,"y":435,"w":120,"h":143,"offX":162,"offY":130,"sourceW":500,"sourceH":500}}}
\ No newline at end of file
"礼盒0015":{"x":184,"y":218,"w":60,"h":71,"offX":81,"offY":65,"sourceW":250,"sourceH":250},
"礼盒0014":{"x":62,"y":218,"w":60,"h":71,"offX":81,"offY":65,"sourceW":250,"sourceH":250},
"礼盒0013":{"x":0,"y":218,"w":60,"h":71,"offX":81,"offY":65,"sourceW":250,"sourceH":250},
"礼盒0012":{"x":185,"y":145,"w":60,"h":71,"offX":81,"offY":65,"sourceW":250,"sourceH":250},
"礼盒0011":{"x":123,"y":145,"w":60,"h":71,"offX":81,"offY":65,"sourceW":250,"sourceH":250},
"礼盒0010":{"x":62,"y":145,"w":60,"h":71,"offX":81,"offY":65,"sourceW":250,"sourceH":250},
"礼盒0009":{"x":0,"y":145,"w":60,"h":71,"offX":82,"offY":65,"sourceW":250,"sourceH":250},
"礼盒0008":{"x":185,"y":73,"w":60,"h":71,"offX":82,"offY":65,"sourceW":250,"sourceH":250},
"礼盒0007":{"x":123,"y":73,"w":60,"h":71,"offX":82,"offY":65,"sourceW":250,"sourceH":250},
"礼盒0006":{"x":62,"y":73,"w":60,"h":71,"offX":82,"offY":65,"sourceW":250,"sourceH":250},
"礼盒0005":{"x":0,"y":73,"w":60,"h":71,"offX":81,"offY":65,"sourceW":250,"sourceH":250},
"礼盒0004":{"x":185,"y":0,"w":60,"h":71,"offX":81,"offY":65,"sourceW":250,"sourceH":250},
"礼盒0003":{"x":123,"y":0,"w":60,"h":71,"offX":81,"offY":65,"sourceW":250,"sourceH":250},
"礼盒0002":{"x":62,"y":0,"w":60,"h":71,"offX":81,"offY":65,"sourceW":250,"sourceH":250},
"礼盒0001":{"x":0,"y":0,"w":60,"h":71,"offX":81,"offY":65,"sourceW":250,"sourceH":250},
"礼盒0000":{"x":123,"y":218,"w":60,"h":71,"offX":81,"offY":65,"sourceW":250,"sourceH":250}}}
\ No newline at end of file
......@@ -10,7 +10,7 @@
},
{
"name": "preload",
"keys": "btnRight_png,btnLeft_png,arrow_png,bg2_png,bg3_png,gift2_json,candy2_json,icecream_json,boom_json,donut_json,gift3_json"
"keys": "btnRight_png,btnLeft_png,arrow_png,bg2_png,bg3_png,gift2_json,candy2_json,icecream_json,boom_json,donut_json,gift3_json,egg_json"
}
],
"resources": [
......@@ -304,6 +304,12 @@
"type": "sheet",
"url": "assets/startScene/gift3.json",
"subkeys": "礼盒0015,礼盒0014,礼盒0013,礼盒0012,礼盒0011,礼盒0010,礼盒0009,礼盒0008,礼盒0007,礼盒0006,礼盒0005,礼盒0004,礼盒0003,礼盒0002,礼盒0001,礼盒0000"
},
{
"name": "egg_json",
"type": "sheet",
"url": "assets/startScene/egg.json",
"subkeys": "礼盒0015,礼盒0014,礼盒0013,礼盒0012,礼盒0011,礼盒0010,礼盒0009,礼盒0008,礼盒0007,礼盒0006,礼盒0005,礼盒0004,礼盒0003,礼盒0002,礼盒0001,礼盒0000"
}
]
}
\ No newline at end of file
......@@ -67,7 +67,7 @@ export default class StartScene extends StartSceneBase {
const { seesaw } = createBox(this);
this._seesaw = seesaw;
const reslist = ['boom', 'gift', 'gift2', 'candy', 'candy2', 'coin']
const reslist = ['boom', 'gift', 'gift2', 'candy', 'candy2', 'coin','icecream']
await Promise.all(
reslist.map(res => RES.getResAsync(`${res}_json`))
);
......
......@@ -11,8 +11,8 @@ export default (_this: StartScene) => {
setInterval(() => {
const start = Math.random() > 0.5 ? leftStart : rightStart;
const size = 58;
const maxsize = 58;
const size = 49;
const maxsize = 49;
const baseItem = createItem(size / maxsize);
// const baseItem = createItem(size / maxsize);
let angle;
......
import BaseItem from "../../physics/BaseItem";
import MovieClip from "../../physics/movieclip/MovieClip";
import LabelType from "../LabelType";
const createBoom = (scale) => {
//气泡纹理种气泡的尺寸默认100(总体还包含气泡周围的阴影效果)
const boomTexture = RES.getRes('boom_json');
//炸弹纹理种炸弹的尺寸默认58,不进行缩放
//气泡和炸弹的比例为100/58
const animation = createBoomMovieClip(boomTexture,1*scale);
// const baseItem = new BaseItem(animation, 'boom');
// baseItem.scaleX = baseItem.scaleY = scale;
const animation = createBoomMovieClip(boomTexture, 98 / 98 * scale);
return animation
}
const createBoomMovieClip = (spritesheet, scale = 1) => {
const list = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10'];
const list = ['礼盒0000', '礼盒0001', '礼盒0002', '礼盒0003', '礼盒0004', '礼盒0005', '礼盒0006',
'礼盒0007', '礼盒0008', '礼盒0009', '礼盒0010', '礼盒0011', '礼盒0012', '礼盒0013', '礼盒0014', '礼盒0015'];
const movieclip = new MovieClip({
spritesheet: spritesheet,
frameInterval: 4,
frames: list,
position: [0, 0],
scale: scale,
anchor: [.5, .5]
anchor: [255 / 500, 209 / 500]
});
movieclip.lable = LabelType.Boom
return movieclip
......
......@@ -12,7 +12,8 @@ const createCandy = (scale) => {
}
const createMovieClip = (spritesheet: egret.SpriteSheet, scale = 1) => {
const list = ['1', '2', '3', '4', '5', '6', '7', '8'];
const list = ['礼盒0000', '礼盒0001', '礼盒0002', '礼盒0003', '礼盒0004', '礼盒0005', '礼盒0006',
'礼盒0007', '礼盒0008', '礼盒0009', '礼盒0010', '礼盒0011', '礼盒0012', '礼盒0013', '礼盒0014', '礼盒0015'];
const movieclip = new MovieClip({
spritesheet: spritesheet,
frameInterval: 4,
......
......@@ -9,10 +9,11 @@ const createCandy2 = (scale) => {
}
const createMovieClip = (spritesheet: egret.SpriteSheet, scale = 1) => {
const list = ['1', '2', '3', '4', '5', '6', '7', '8'];
const list = ['礼盒0000', '礼盒0001', '礼盒0002', '礼盒0003', '礼盒0004', '礼盒0005', '礼盒0006',
'礼盒0007', '礼盒0008', '礼盒0009', '礼盒0010', '礼盒0011', '礼盒0012', '礼盒0013', '礼盒0014', '礼盒0015'];
const movieclip = new MovieClip({
spritesheet: spritesheet,
frameInterval: 6,
frameInterval: 4,
frames: list,
position: [0, 0],
scale: scale,
......
......@@ -12,7 +12,8 @@ const createCoin = (scale) => {
}
const createMovieClip = (spritesheet: egret.SpriteSheet, scale = 1) => {
const list = ['1', '2', '3', '4', '5', '6', '7', '8'];
const list = ['礼盒0000', '礼盒0001', '礼盒0002', '礼盒0003', '礼盒0004', '礼盒0005', '礼盒0006',
'礼盒0007', '礼盒0008', '礼盒0009', '礼盒0010', '礼盒0011', '礼盒0012', '礼盒0013', '礼盒0014', '礼盒0015'];
const movieclip = new MovieClip({
spritesheet: spritesheet,
frameInterval: 4,
......
......@@ -9,10 +9,11 @@ const createDonut = (scale) => {
}
const createMovieClip = (spritesheet, scale) => {
const list = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15'];
const list = ['礼盒0000', '礼盒0001', '礼盒0002', '礼盒0003', '礼盒0004', '礼盒0005', '礼盒0006',
'礼盒0007', '礼盒0008', '礼盒0009', '礼盒0010', '礼盒0011', '礼盒0012', '礼盒0013', '礼盒0014', '礼盒0015'];
const movieclip = new MovieClip({
spritesheet: spritesheet,
frameInterval: 8,
frameInterval: 4,
frames: list,
position: [0, 0],
scale: scale,
......
......@@ -9,10 +9,11 @@ const createEgg = (scale) => {
}
const createGiftMovieClip = (spritesheet, scale) => {
const list = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15'];
const list = ['礼盒0000', '礼盒0001', '礼盒0002', '礼盒0003', '礼盒0004', '礼盒0005', '礼盒0006',
'礼盒0007', '礼盒0008', '礼盒0009', '礼盒0010', '礼盒0011', '礼盒0012', '礼盒0013', '礼盒0014', '礼盒0015'];
const movieclip = new MovieClip({
spritesheet: spritesheet,
frameInterval: 8,
frameInterval: 4,
frames: list,
position: [0, 0],
scale: scale,
......
......@@ -9,10 +9,11 @@ const createGift2 = (scale) => {
}
const createGiftMovieClip = (spritesheet, scale) => {
const list = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15'];
const list = ['礼盒0000', '礼盒0001', '礼盒0002', '礼盒0003', '礼盒0004', '礼盒0005', '礼盒0006',
'礼盒0007', '礼盒0008', '礼盒0009', '礼盒0010', '礼盒0011', '礼盒0012', '礼盒0013', '礼盒0014', '礼盒0015'];
const movieclip = new MovieClip({
spritesheet: spritesheet,
frameInterval: 8,
frameInterval: 4,
frames: list,
position: [0, 0],
scale: scale,
......
import MovieClip from "../../physics/movieclip/MovieClip";
import LabelType from "../LabelType";
const createGift3 = (scale) => {
//气泡纹理种气泡的尺寸默认100(总体还包含气泡周围的阴影效果)
const texture = RES.getRes('gift2_json');
const animation = createGiftMovieClip(texture, 1 * scale);//中间物体尺寸140px
return animation
}
const createGiftMovieClip = (spritesheet, scale) => {
const list = ['礼盒0000', '礼盒0001', '礼盒0002', '礼盒0003', '礼盒0004', '礼盒0005', '礼盒0006',
'礼盒0007', '礼盒0008', '礼盒0009', '礼盒0010', '礼盒0011', '礼盒0012', '礼盒0013', '礼盒0014', '礼盒0015'];
const movieclip = new MovieClip({
spritesheet: spritesheet,
frameInterval: 4,
frames: list,
position: [0, 0],
scale: scale,
anchor: [.444, .44]
});
movieclip.lable = LabelType.Gift2
return movieclip
}
export default createGift3
\ No newline at end of file
......@@ -3,20 +3,21 @@ import LabelType from "../LabelType";
const createIceCream = (scale) => {
//气泡纹理种气泡的尺寸默认100(总体还包含气泡周围的阴影效果)
const texture = RES.getRes('gift2_json');
const animation = createMovieClip(texture, 1 * scale);//中间物体尺寸140px
const texture = RES.getRes('icecream_json');
const animation = createMovieClip(texture, 98/118 * scale);//中间物体尺寸140px
return animation
}
const createMovieClip = (spritesheet, scale) => {
const list = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15'];
const list = ['礼盒0000', '礼盒0001', '礼盒0002', '礼盒0003', '礼盒0004', '礼盒0005', '礼盒0006',
'礼盒0007', '礼盒0008', '礼盒0009', '礼盒0010', '礼盒0011', '礼盒0012', '礼盒0013', '礼盒0014', '礼盒0015'];
const movieclip = new MovieClip({
spritesheet: spritesheet,
frameInterval: 8,
frameInterval: 4,
frames: list,
position: [0, 0],
scale: scale,
anchor: [.444, .44]
anchor: [220/500, 202/500]
});
movieclip.lable = LabelType.Gift2
return movieclip
......
......@@ -4,9 +4,11 @@ import createDonut from "./createDonut";
import createEgg from "./createEgg";
import createGift2 from "./createGift2";
import createIceCream from "./createIceCream";
import createGift3 from "./createGift3";
const createItem = (scale) => {
const funcs = [createBoom, createIceCream, createDonut, createCandy2, createGift2, createEgg];
const funcs = [createIceCream];
// const funcs = [createBoom, createIceCream, createDonut, createCandy2, createGift2, createGift3, createEgg];
const i = Math.floor(Math.random() * funcs.length);
const mc = funcs[i](scale);
return mc;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment