实例介绍
著名移动开发教学网站RayWenderlich 出品的付费电子书。基于Swift 4 最佳的2D iOS游戏开发教程
2D Apple games by tutorials Dedications For my mum, who frequently challenges and always inspires me also for Muffin, my patient and loyal puppy. aroline begbie To my wonderful wife and family, who make it possible to do what I Mike berg To my father who ignited my love of computers. To my daughters Meghan and brynne, and all six of my grandchildren. And to lindsay for all the love and support Michael briscoe To my wife for always being supportive and to our bun in the oven, your parents await your arrival. Kauserali hafizji(a.k.a. Ali) To my father Marin todorov To the authors, editors and leads at raywenderlich. com. Teamwork lets you dream bigger! Ray Wenderlich raywenderlich.com 2D Apple games by tutorials About the authors Caroline Begbie is living the dream as an indie ios developer, educator and explorer. She loves the graphics and animation side of ioS and watches Disney movies"for research Mike Berg is a full time game artist who is fortunate enough to work with many different indie game developers from all over the world When he's not manipulating pixel colors, he loves to eat good food spend time with his is family, play games and be happy Michael briscoe is an independent software developer with over 30 years of programming experience Learning BASIC on a Commodore 64 way back in 1984, he's been hooked on coding ever since He enjoys creating simulations and games for all Apple platforms. You can visit hiswebsiteatskyrocketsoftware.wordpress.com. Kauserali Hafizji(a k a Ali) is a freelance software developer. he is fortunate to have worked on several large projects. He loves creating software that people use everyday whether it's on the web, watch, shone or tv. a good read cool dip in the pool and a hot cheesy meal would be the perfect end to his weekend. You can find out more about Alionhiswebsiteatalihafizji.com Marin Todorov is a part of realm and raywenderlich com he' s also the author of books and apps You can find out more at www.underplot.com RayWenderlichispartofagreatteam-theraywenderlich.com team, a group of over 100 developers and editors from across the world. He and the rest of the team are passionate both about making apps and teaching others the techniques to make them. When Ray's not programming he's probably playing video games, role playing games, or board games raywenderlich.com 4 2D Apple games by tutorials About the editors Kyle gorlick is the tech editor of this book. Kyle creates mobile apps and games. He likes to play volleyball and watch basketball. More info atkylegorlick.com Chris Belanger is the editor of this book. Chris is the book team Lead and lead editor for raywenderlich com If there are words to wrangle or a paragraph to ponder, he's on the case. When he kicks back, you can usually find Chris with guitar in hand, looking for the nearest beach, or exploring the lakes and rivers in his part of the world in a canoe Tammy Coron is the final pass editor of this book. Tammy is an independent creative professional and the host of roundabout Creative Chaos. She's also the co-founder of Day Of The Indie and the founder of just Write Code. For more information visit Tammycoron.com About the artists Mike Berg created the artwork for most of the games in this book Mike is a full time game artist who is fortunate enough to work with many different indie game developers from all over the world. When he's not manipulating pixel colors, he loves to eat good food, spend time with his family, play games and be happy Vinnie Prabhu created all the music and sounds for the games in this book. vinnie is a music composer/ software engineer from Northern Virginia who has created music and sound work for concerts, plays and video games. He's also a staff member on OverClocked ReMix, an online community for music and video game fans. You can find vinnie on Twitter as @palpablevt raywenderlich.com 2D Apple games by tutorials Vicki Wenderlich created many of the illustrations in this book and the artwork for Drop charge vicki is ray 's wife and business partner She is a digital artist who creates illustrations, game art and a lot of other art or design work for the tutorials and books on raywenderlich. com. She also runs gameartguppy. com, which is a website where she creates free and inexpensive art assets for game developers to use in their games. When she's not making art she loves hiking, a good glass of wine and attempting to create the perfect cheese plate. raywenderlich.com 2D Apple games by tutorials Table of contents: Overview Introduction 18 Section I: Getting Started 000000000。。0。@。。 33 Chapter 1: Sprites 34 Chapter 2: Manual Movement. .....................58 Chapter 3: Actions 85 Chapter 4: Scenes 116 Chapter 5: Camera 127 Chapter 6: Labels 138 Section I: Physics and Nodes 154 Chapter 7: Scene Editor.............155 Chapter 8: Beginning Physics 186 Chapter 9: Intermediate Physics 00D 212 Chapter 10: Advanced physics 250 Chapter 11: Crop, Video, and Shape Nodes. 290 Section: Tile Maps… 319 Chapter 12: Beginning Tile Maps 320 Chapter 13: Intermediate Tile Maps.....352 Chapter 14: Saving and Loading Games..381 Section v: Juice 413 Chapter 15: Making Drop Charge 414 raywenderlich.com 2D Apple games by tutorials Chapter 16: Particle Systems .456 Chapter 17: Juice Up Your Game 485 Section V: Other Platforms 513 Chapter 18: macOS Games 514 Chapter 19: tvOS Games 。。。0。0。。。D。。。。。●。。。Q垂 537 Chapter 20: watchES Games 552 Section VI: Advanced Topics 575 Chapter 21: Game Center Achievements..576 Chapter 22: Game Center Leaderboards..601 Chapter 23: Replaykit .619 Section vll: Bonus section 644 Chapter24: Augmented Reality& ARKit……645 Chapter 25: 2D Art for Programmers....672 Conclusion 722 raywenderlich.com 2D Apple games by tutorials Table of contents: Extended Introduction 18 History of this book 19 About this book .19 lOS game development: a history 21 What you need…22 Who this book is for .22 How to use this book 。,。 .23 What's ahead: an overview 。Dd。0D。非。。。4。。。。奋0。D。。。40。·。。。带0D4。。。 23 Section I: Getting started 24 Section II: Physics and nodes 25 Section Ill: Tile Maps 26 Section V: Juice ····.·····4·············4···4·····0·····4········4················0·· 27 Section v: other platforms .·······B·············.····.·······4·········.·.···.··4 28 Section V: Advanced Topics............................. 29 Section VI: Bonus chapters 30 Book source code and forums 31 Book updates 31 cense 31 Acknowledgements 。。。。非。。垂4。0自。非。。非。。。4·。·。。·。带。垂 32 Section I: Getting Started 00000●0000000@。00●●。0@。。。 33 later 1: Sprites 34 Getting started 35 Displaying a sprite 46 Challenges 55 Chapter 2: Manual Movement 58 The Spritekit game loop. 59 Moving the zombie 61 Rotating the zombie 77 Challenges.......................................79 raywenderlich.com 2D Apple games by tutorials Chapter 3: Actions 85 Move action 。·。,。日9。·。。d00。。,。。。d09。。4。。。业。。。9d。0B4.。0。0499。0。。B4。。。9 85 Sequence action 88 Wait-for-duration action .89 Run-block action .90 Reversing actions 91 Repeating actions 4。。·0。。看0。。。。04。D·。。4。。。0D。。。自。。。。。非4。0。。。0。。。.。。。·垂 94 Periodic spawning.....….……95 Remove-from-parent action 97 Animation action 98 Stopping action .100 Scale action 101 Rotate action 103 Group action 104 Collision detection 。。。。4非。。。。·。0非·0。。4d非·。。。非。。非。。。。非44。。。非非。。。。4非4。。● 105 The Spritekit game loop, round 2 卷。。·。。。B布。0。。。。。B。。。。。。。。。。。4。。。。非。。非 108 Sound action 109 Sharing actions 110 Challenges 111 Chapter 4: Scenes.....................116 Win and lose conditions 117 Creating a new scene 119 Transitioning to a scene 121 Creating a custom scene initializer 0。00。。。。B0。。非。。自4。。自00。。。。。自000。。。非。B .122 Background music… 124 Challenges 125 Chapter 5: Camera ●。。。。0。垂。D。。@0。。。●。。。。。。。。。DD0。0●。 127 Lights, camera, action!................ 。。4。。b。。。垂。。·。●。垂 128 A scrolling background ······,.· 130 An endlessly scrolling background 。。。非。。业。。B。非。。业4。4。08600。。。。 132 Fixing the gameplay 134 Challenges 137 raywenderlich.com 10 【实例截图】
【核心代码】
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论