Open slackmoehrle opened 8 years ago
Parser adds code for images that are not part of my scene. Example. This code was created (it seems by reading from _assets/ for *.png__):
// BEGIN SpriteFrame loading auto spriteFrameCache = SpriteFrameCache::getInstance(); // Files from .plist // creator_assets/test_polygon.plist processed manually. No need to include it in the assets folder // creator_assets/ui.plist processed manually. No need to include it in the assets folder // Files from .png auto sf_ghosts = SpriteFrame::create("creator_assets/ghosts.png", Rect(1, 0, 196, 130), false, Vec2(-29, 63), Size(256, 256)); spriteFrameCache->addSpriteFrame(sf_ghosts, "ghosts"); auto sf_grossinis_sister2_png = SpriteFrame::create("creator_assets/test_polygon.png", Rect(279, 26, 55, 130), false, Vec2(0, -2), Size(56, 138)); sf_grossinis_sister2_png->setCenterRectInPixels(Rect(17,62,21,32)); spriteFrameCache->addSpriteFrame(sf_grossinis_sister2_png, "grossinis_sister2.png"); auto sf_dialog_bg_png = SpriteFrame::create("creator_assets/ui.png", Rect(75, 177, 46, 46), false, Vec2(0, 0), Size(46, 46)); spriteFrameCache->addSpriteFrame(sf_dialog_bg_png, "dialog_bg.png"); auto sf_dialog_corner_png = SpriteFrame::create("creator_assets/ui.png", Rect(89, 56, 12, 16), true, Vec2(0, 0), Size(12, 16)); spriteFrameCache->addSpriteFrame(sf_dialog_corner_png, "dialog_corner.png"); auto sf_test_polygon = SpriteFrame::create("creator_assets/test_polygon.png", Rect(3, 2, 381, 152), false, Vec2(0, 0.5), Size(387, 157)); spriteFrameCache->addSpriteFrame(sf_test_polygon, "test_polygon"); auto sf_coin_png = SpriteFrame::create("creator_assets/ui.png", Rect(89, 32, 22, 22), false, Vec2(0, 0), Size(22, 22)); spriteFrameCache->addSpriteFrame(sf_coin_png, "coin.png"); auto sf_grossini = SpriteFrame::create("creator_assets/grossini.png", Rect(1, 1, 461, 219), false, Vec2(-24.5, 17.5), Size(512, 256)); spriteFrameCache->addSpriteFrame(sf_grossini, "grossini"); auto sf_arial16 = SpriteFrame::create("creator_assets/arial16.png", Rect(0, 0, 510, 61), false, Vec2(-1, 225.5), Size(512, 512)); spriteFrameCache->addSpriteFrame(sf_arial16, "arial16"); auto sf_ui = SpriteFrame::create("creator_assets/ui.png", Rect(2, 2, 124, 221), false, Vec2(0, 15.5), Size(128, 256)); spriteFrameCache->addSpriteFrame(sf_ui, "ui"); auto sf_user_info_panel_png = SpriteFrame::create("creator_assets/ui.png", Rect(2, 2, 125, 85), true, Vec2(0, 0), Size(125, 85)); spriteFrameCache->addSpriteFrame(sf_user_info_panel_png, "user_info_panel.png"); auto sf_button_actived_png = SpriteFrame::create("creator_assets/ui.png", Rect(113, 55, 21, 13), true, Vec2(0, 0), Size(21, 13)); spriteFrameCache->addSpriteFrame(sf_button_actived_png, "button_actived.png"); auto sf_button_normal_png = SpriteFrame::create("creator_assets/ui.png", Rect(113, 32, 21, 13), true, Vec2(0, 0), Size(21, 13)); spriteFrameCache->addSpriteFrame(sf_button_normal_png, "button_normal.png"); auto sf_island_polygon_png = SpriteFrame::create("creator_assets/test_polygon.png", Rect(1, 1, 287, 152), false, Vec2(16, 7), Size(320, 200)); spriteFrameCache->addSpriteFrame(sf_island_polygon_png, "island_polygon.png"); auto sf_grossini_dance_08 = SpriteFrame::create("creator_assets/grossini_dance_08.png", Rect(17, 7, 51, 109), false, Vec2(0, -1), Size(85, 121)); spriteFrameCache->addSpriteFrame(sf_grossini_dance_08, "grossini_dance_08"); auto sf_crystal_png = SpriteFrame::create("creator_assets/ui.png", Rect(89, 2, 28, 28), false, Vec2(0, 0), Size(30, 30)); spriteFrameCache->addSpriteFrame(sf_crystal_png, "crystal.png"); auto sf_grossinis_sister1_png = SpriteFrame::create("creator_assets/test_polygon.png", Rect(336, 1, 50, 116), false, Vec2(0, -11), Size(52, 139)); sf_grossinis_sister1_png->setCenterRectInPixels(Rect(7,6,34,39)); spriteFrameCache->addSpriteFrame(sf_grossinis_sister1_png, "grossinis_sister1.png"); auto sf_mini_map_bg_png = SpriteFrame::create("creator_assets/ui.png", Rect(2, 129, 71, 71), false, Vec2(0, 0), Size(71, 71)); spriteFrameCache->addSpriteFrame(sf_mini_map_bg_png, "mini_map_bg.png"); auto sf_item_bg_png = SpriteFrame::create("creator_assets/ui.png", Rect(75, 129, 46, 46), false, Vec2(0, 0), Size(46, 46)); spriteFrameCache->addSpriteFrame(sf_item_bg_png, "item_bg.png"); auto sf_iso_test = SpriteFrame::create("creator_assets/iso-test.png", Rect(2, 1, 319, 116), false, Vec2(-94.5, 69), Size(512, 256)); spriteFrameCache->addSpriteFrame(sf_iso_test, "iso-test"); // END SpriteFrame loading return true;
Since I put my assets in assets/Jason Testing it seems they were not brought in, no code created.
Parser adds code for images that are not part of my scene. Example. This code was created (it seems by reading from _assets/ for *.png__):
Since I put my assets in assets/Jason Testing it seems they were not brought in, no code created.