iOS-Game-15puzzle:著名的“十五拼图”游戏的简单SpriteKit实现

上传者: 42131342 | 上传时间: 2022-08-03 17:03:59 | 文件大小: 1004KB | 文件类型: ZIP
iOS游戏15拼图 著名的“十五拼图”游戏的简单SpriteKit实现 为了解决该游戏的实现,我们必须主要关注以下问题: 生成一个从0到15的16个数字的随机序列(NSArray),其中0是空图块。 您可以在RandomNumberSeries类(NSArray子类)中找到此实现,在initWithSeriesMax方法中(在我们的示例中)会将16个随机数添加到数组中。 您可以将此类重用于其他用途。 当用户将手指滑向空瓷砖时,检索瓷砖的“训练”。 要解决此问题(请参阅GameScene类中的getTrainTilesFromNode),从触摸的磁贴开始,如果thre是空磁贴,则必须朝着滑动方向看。 空图块之前的所有图块都是“图块列”。 当用户滑动手指时,将一列图块从第一张图块移动到空白图块。 我已通过将空磁贴(最后一个磁贴移动到磁贴列中)从其位置移动到火车磁贴集合中第一个磁贴的位置

文件下载

资源详情

[{"title":"( 47 个子文件 1004KB ) iOS-Game-15puzzle:著名的“十五拼图”游戏的简单SpriteKit实现","children":[{"title":"iOS-Game-15puzzle-master","children":[{"title":"screenshots","children":[{"title":"iOS-Game-15puzzle.gif <span style='color:#111;'> 898.33KB </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false},{"title":"iOS-Game-15puzzle","children":[{"title":"iOS-Game-15puzzle","children":[{"title":"iOS-Game-15puzzleTests","children":[{"title":"Info.plist <span style='color:#111;'> 733B </span>","children":null,"spread":false},{"title":"iOS_Game_15puzzleTests.m <span style='color:#111;'> 954B </span>","children":null,"spread":false}],"spread":true},{"title":"iOS-Game-15puzzleUITests","children":[{"title":"Info.plist <span style='color:#111;'> 733B </span>","children":null,"spread":false},{"title":"iOS_Game_15puzzleUITests.m <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false}],"spread":true},{"title":"iOS-Game-15puzzle.xcodeproj","children":[{"title":"project.xcworkspace","children":[{"title":"contents.xcworkspacedata <span style='color:#111;'> 162B </span>","children":null,"spread":false},{"title":"xcuserdata","children":[{"title":"domenicovacchiano.xcuserdatad","children":[{"title":"UserInterfaceState.xcuserstate <span style='color:#111;'> 23.07KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"project.pbxproj <span style='color:#111;'> 29.90KB </span>","children":null,"spread":false},{"title":"xcuserdata","children":[{"title":"domenicovacchiano.xcuserdatad","children":[{"title":"xcschemes","children":[{"title":"iOS-Game-15puzzle.xcscheme <span style='color:#111;'> 4.25KB </span>","children":null,"spread":false},{"title":"xcschememanagement.plist <span style='color:#111;'> 669B </span>","children":null,"spread":false}],"spread":true},{"title":"xcdebugger","children":[{"title":"Breakpoints_v2.xcbkptlist <span style='color:#111;'> 91B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"swipe.mp3 <span style='color:#111;'> 10.57KB </span>","children":null,"spread":false},{"title":"iOS-Game-15puzzle","children":[{"title":"main.m <span style='color:#111;'> 359B </span>","children":null,"spread":false},{"title":"AppDelegate.h <span style='color:#111;'> 302B </span>","children":null,"spread":false},{"title":"RandomNumberSeries.m <span style='color:#111;'> 996B </span>","children":null,"spread":false},{"title":"RandomNumberSeries.h <span style='color:#111;'> 296B </span>","children":null,"spread":false},{"title":"Info.plist <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"AppDelegate.m <span style='color:#111;'> 2.01KB </span>","children":null,"spread":false},{"title":"Images","children":[{"title":"tile.psd <span style='color:#111;'> 68.18KB </span>","children":null,"spread":false},{"title":"tile_15.png <span style='color:#111;'> 6.10KB </span>","children":null,"spread":false},{"title":"tile_13.png <span style='color:#111;'> 6.39KB </span>","children":null,"spread":false},{"title":"tile_10.png <span style='color:#111;'> 6.12KB </span>","children":null,"spread":false},{"title":"tile_0.png <span style='color:#111;'> 3.12KB </span>","children":null,"spread":false},{"title":"tile_8.png <span style='color:#111;'> 6.04KB </span>","children":null,"spread":false},{"title":"tile_1.png <span style='color:#111;'> 4.45KB </span>","children":null,"spread":false},{"title":"tile_5.png <span style='color:#111;'> 5.65KB </span>","children":null,"spread":false},{"title":"tile_14.png <span style='color:#111;'> 4.87KB </span>","children":null,"spread":false},{"title":"tile_3.png <span style='color:#111;'> 6.02KB </span>","children":null,"spread":false},{"title":"tile_0.psd <span style='color:#111;'> 69.12KB </span>","children":null,"spread":false},{"title":"tile_2.png <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false},{"title":"tile_12.png <span style='color:#111;'> 5.86KB </span>","children":null,"spread":false},{"title":"tile_4.png <span style='color:#111;'> 4.53KB </span>","children":null,"spread":false},{"title":"tile_6.png <span style='color:#111;'> 6.12KB </span>","children":null,"spread":false},{"title":"tile_9.png <span style='color:#111;'> 6.01KB </span>","children":null,"spread":false},{"title":"tile_11.png <span style='color:#111;'> 4.71KB </span>","children":null,"spread":false},{"title":"tile_7.png <span style='color:#111;'> 4.90KB </span>","children":null,"spread":false}],"spread":false},{"title":"GameScene.m <span style='color:#111;'> 7.73KB </span>","children":null,"spread":false},{"title":"GameScene.h <span style='color:#111;'> 182B </span>","children":null,"spread":false},{"title":"Base.lproj","children":[{"title":"LaunchScreen.storyboard <span style='color:#111;'> 1.63KB </span>","children":null,"spread":false},{"title":"Main.storyboard <span style='color:#111;'> 1.57KB </span>","children":null,"spread":false}],"spread":false},{"title":"GameScene.sks <span style='color:#111;'> 2.09KB </span>","children":null,"spread":false},{"title":"GameViewController.h <span style='color:#111;'> 233B </span>","children":null,"spread":false},{"title":"GameViewController.m <span style='color:#111;'> 2.10KB </span>","children":null,"spread":false},{"title":"Assets.xcassets","children":[{"title":"AppIcon.appiconset","children":[{"title":"Contents.json <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false}],"spread":false},{"title":"Spaceship.imageset","children":[{"title":"Contents.json <span style='color:#111;'> 306B </span>","children":null,"spread":false},{"title":"Spaceship.png <span style='color:#111;'> 131.57KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明