{"id":1211,"date":"2016-10-27T23:30:53","date_gmt":"2016-10-27T14:30:53","guid":{"rendered":"http:\/\/androiphone.uvs.jp\/?p=1211"},"modified":"2016-10-27T23:30:53","modified_gmt":"2016-10-27T14:30:53","slug":"iosspritekit-xcode8%e3%81%a7spritekit%e9%96%8b%e7%99%ba%e3%82%92%e5%86%8d%e9%96%8b","status":"publish","type":"post","link":"https:\/\/androiphone.uvs.jp\/?p=1211","title":{"rendered":"[iOS][SpriteKit] Xcode8\u3067SpriteKit\u958b\u767a\u3092\u518d\u958b"},"content":{"rendered":"<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;width:800px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\">&nbsp;<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306f\u8da3\u5473!<\/p>\n<p>\u6c17\u304c\u5411\u304b\u306a\u3044\u3068\u3057\u306a\u3044\u3057\u3001\u3084\u308b\u6c17\u306b\u3082\u306a\u3089\u306a\u3044\u3002\u3084\u3063\u3068\u6700\u8fd1\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3057\u305f\u3044\u75c5\u306b\u306a\u3063\u3066\u304d\u305f\u3002Xcode\u30827\u304b\u30898\u3078\u3001OSX\u3082macOS\u3078\u3001iOS\u308210\u3078\u30fb\u30fb\u30fb<\/p>\n<p>\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3067\u534a\u65e5\u4ee5\u4e0a\u304b\u304b\u308a\u307e\u3057\u305f\u3002\u4ee5\u524d\u4f5c\u308a\u304b\u3051\u3066\u305f\u3044\u305f\u30b2\u30fc\u30e0\u3092\u3001\u6700\u65b0\u306e\u30c7\u30e2\u3092\u307f\u306a\u304c\u3089\u3084\u308a\u76f4\u305d\u3046\u3068\u6c7a\u65ad\u3002\u65e9\u901f\u3001SpriteKit\u306e\u30c7\u30e2\u3092\u307f\u3066\u307f\u308b\u3068\u3001\u30b9\u30c8\u30fc\u30ea\u30fc\u30dc\u30fc\u30c9\u306e\u3088\u3046\u306b\u30b9\u30d7\u30e9\u30a4\u30c8\u3092\u914d\u7f6e\u3057\u3066\u30c7\u30b6\u30a4\u30f3\u304c\u51fa\u6765\u308b\u3068\u306e\u3053\u3068!!\u611f\u52d5\u3067\u3059\u3002\u3081\u3093\u3069\u304f\u3055\u3044\u5ea7\u6a19\u914d\u7f6e\u306a\u3069\u3057\u306a\u304f\u3066\u3082\u3088\u304f\u306a\u3063\u305f!!<\/p>\n<p>\u30b5\u30f3\u30d7\u30eb\u306b\u3066\u3001GameScene\u3068GameScene.sks\u3092\u4f7f\u3063\u305f\u30b5\u30f3\u30d7\u30eb\u304c\u3042\u308a\u3001GameScene\u3092\u751f\u6210\u3059\u308b\u6642\u306bGameViewController\u3067\u30b7\u30fc\u30f3\u751f\u6210\u6642\u306bsks\u3092\u6307\u5b9a\u3057\u7d10\u4ed8\u3051\u3059\u308c\u3070\u3044\u3044\u3002<\/p>\n<p>[obj-c]<br \/>\n    \/\/ Load the SKScene from &#8216;GameScene.sks&#8217;<br \/>\n    GameScene *scene = (GameScene *)[SKScene nodeWithFileNamed:@&quot;GameScene&quot;];<\/p>\n<p>    \/\/ Set the scale mode to scale to fit the window<br \/>\n    scene.scaleMode = SKSceneScaleModeAspectFill;<\/p>\n<p>    SKView *skView = (SKView *)self.view;<\/p>\n<p>    \/\/ Present the scene<br \/>\n    [skView presentScene:scene];<br \/>\n[\/obj-c]<\/p>\n<p>\u30b5\u30f3\u30d7\u30eb\u306f\u4e0a\u306e\u69d8\u306b\u306a\u3063\u3066\u3044\u308b\u3002<\/p>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u30b2\u30fc\u30e0\u8d77\u52d5\u753b\u9762\u306b\u8868\u793a\u3055\u308c\u308b\u8457\u4f5c\u6a29\u60c5\u5831\u3068\u30ed\u30b4\u30b7\u30fc\u30f3\u3092\u8a66\u3057\u306b\u4f5c\u308d\u3046\u3068\u3001CoyRightScene.sks\u3068CopyRigthtScene\u30af\u30e9\u30b9\u3092\u4f5c\u308a\u3001\u4e0a\u306e\u30b3\u30fc\u30c9\u3068\u540c\u3058\u304f\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3057\u305f\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001CopyRigthScene\u304c\u8868\u793a\u3055\u308c\u308b\u307e\u3067\u306fOK\u3060\u304c\u3001\u30b7\u30fc\u30f3\u751f\u6210\u6642\u306b\u547c\u3073\u51fa\u3055\u308c\u308b\u306f\u305a\u306edidMoveToView\u304c\u547c\u3073\u51fa\u3055\u308c\u306a\u3044\u3002\u3044\u308d\u3044\u308d\u3001sks\u30d5\u30a1\u30a4\u30eb\u3092\u6bd4\u3079\u3066\u898b\u305f\u3089\u3001sks\u306eCustumClass\u306b\u30af\u30e9\u30b9\u540d(CopyRightScene)\u3092\u6307\u5b9a\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u304b\u3063\u305f\u3002\u7d50\u69cb\u8ff7\u3063\u305f\u30fb\u30fb\u30fb\u3002<\/p>\n<p><a href=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2016\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2016-10-27-21.35.39.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1220\" src=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2016\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2016-10-27-21.35.39-241x300.png\" alt=\"%e3%82%b9%e3%82%af%e3%83%aa%e3%83%bc%e3%83%b3%e3%82%b7%e3%83%a7%e3%83%83%e3%83%88-2016-10-27-21-35-39\" width=\"241\" height=\"300\" srcset=\"https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2016\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2016-10-27-21.35.39-241x300.png 241w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2016\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2016-10-27-21.35.39.png 355w\" sizes=\"auto, (max-width: 241px) 100vw, 241px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1&nbsp; \u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306f\u8da3\u5473! \u6c17\u304c\u5411\u304b\u306a\u3044\u3068\u3057\u306a\u3044\u3057\u3001\u3084\u308b\u6c17\u306b\u3082\u306a\u3089\u306a\u3044\u3002\u3084\u3063\u3068\u6700\u8fd1\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3057\u305f\u3044\u75c5\u306b\u306a\u3063\u3066\u304d\u305f\u3002Xcode\u30827\u304b\u30898\u3078\u3001OSX\u3082macOS\u3078\u3001iOS\u308210\u3078\u30fb\u30fb\u30fb \u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3067\u534a\u65e5\u4ee5 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"","_original_post":"","footnotes":""},"categories":[7,28,8],"tags":[],"class_list":["post-1211","post","type-post","status-publish","format-standard","hentry","category-ios","category-spritekit","category--ios","ja"],"_links":{"self":[{"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/posts\/1211","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1211"}],"version-history":[{"count":8,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/posts\/1211\/revisions"}],"predecessor-version":[{"id":1221,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/posts\/1211\/revisions\/1221"}],"wp:attachment":[{"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1211"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1211"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}