Book description
Design and develop sophisticated 2D games that are as much fun to make as they are to play. From particle effects and pathfinding to social integration and monetization, this complete tour of Apple's powerful suite of game technologies covers it all. Familiar with Swift but new to game development? No problem. Start with the basics and then layer in the complexity as you work your way through three exciting - and fully playable - games. In the end, you'll know everything you need to go off and create your own video game masterpiece for any Apple platform.
Discover the power of Apple Game Frameworks, Xcode, and Swift by building three exciting games: Gloop Drop - a new twist on a classic arcade game, Val's Revenge - a roguelike dungeon crawler, and Hog - a social player vs. player mobile dice game. With Apple Game Frameworks, you can create high-performance, power-efficient games that work across all Apple platforms, including iOS, macOS, tvOS, and watchOS.
In this book, you'll discover how to...
Design and develop rich 2D gaming experiences using Apple's built-in game frameworks. Harness the power of SpriteKit using Xcode and Swift to create engaging player experiences. Use the visual Scene Editor to build complete scenes. Unleash the power of the Particle Editor to create amazing effects. Use GameplayKit to add advanced features to your games like pathfinding, artificial intelligence, and complex rule systems. Build larger, more complex worlds with tile maps and Xcode's visual Tile Map editor. Bring people together using GameKit and Game Center, Apple's social gaming network. Increase revenue with third-party banner ads and rewarded ads using Google AdMob (TM). Monetize your games with StoreKit and in-app purchases.
So, grab your gear and get your game on - it's time to level up your skills.
What You Need:
Publisher resources
Table of contents
- Foreword
- Acknowledgments
- Preface
- Get Ready for Game Development
-
Part I. Build Your First Game with SpriteKit
- 1. Creating Scenes with Sprites and Nodes
-
2. Adding Animation and Movement with Actions
- Animation in SpriteKit
- Add the Images Resources for the Player
- Create the Player Class
- Load the Textures
- Control Render Order with Z-Position
- Animate the Player with Actions
- Use the Animation Extension
- Move the Player with Actions
- Use Constraints to Limit Movement
- Set the Player’s Direction Using Scales
- Keep the Player’s Speed Consistent
- Next Steps
- 3. Chaining Actions and Using Iterative Design
- 4. Working with Physics and Collision Detection
- 5. Adding Labels and Working with the Game Loop
- 6. Juicing Your Games with Sound and Effects
- Part II. Use the Scene Editor to Build Games
-
Part III. Scale Your Games with GameplayKit
- 11. Building Games with Entities and Components
- 12. Using States and State Machines
-
13. Planning Routes and Creating Believable AI
- Modify the Monster Generator
- Use Agents, Goals, and Behaviors
- Add Agents to Monsters
- Add an Agent to the Player
- Use Multiple Goals
- Add the Player Agent to the Component System
- Add the Monster Entities to the Scene’s Entities Array
- Update Physics for Monsters and Projectiles
- Build a Better Health Component
- Add Pathfinding to Your Game
- Next Steps
- Part IV. Enhance the Player’s Experience
- Part V. Build Social Games with GameKit
-
Part VI. Bonus Content: Monetize Your Games
-
18. Using Ads to Increase Revenue
- Sign up for AdMob and Register Your App
- Create Ad Units
- Download and Integrate the Google Mobile Ads SDK
- Add the AdMob Helper File
- Use the AdMob Helper for Banner Ads
- Add the Continue Game Feature (Player Reward)
- Use the AdMob Helper for Rewarded Ads
- Create Custom Notifications
- Save and Load the Number of Continues
- Next Steps
-
19. Monetizing Your Games with In-App Purchases
- Add In-App Purchase Capability Using Xcode
- Use App Store Connect to Add a New App
- Add In-App Purchase Support to the Project
- Configure Products in Xcode
- Modify the GameData Class to Store Purchases
- Modify the AdMob Helper to Disable Ads
- Modify the GameScene Class to Handle Paid Continues
- Configure the Shop Scene
- Add the Shop Scene to the Main Game Scene
- Interface with StoreKit Using the Store Manager
- Test In-App Purchases
- Next Steps
-
18. Using Ads to Increase Revenue
Product information
- Title: Apple Game Frameworks and Technologies
- Author(s):
- Release date: April 2021
- Publisher(s): Pragmatic Bookshelf
- ISBN: 9781680507843
You might also like
book
Beginning Swift Games Development for iOS: Develop 2D and 3D games Using Apple's SceneKit and SpriteKit
Learn the fundamental elements of the new Swift 3 programming language as applied to game development …
book
Beginning iOS Game Center and GameKit: For iOS, tvOS, and MacOS
Create fun and polished games and gamify your apps with GameKit and Game Center. This fully …
book
Build Location-Based Projects for iOS
Coding is awesome. So is being outside. With location-based iOS apps, you can combine the two …
book
Mastering ARKit: Apple’s Augmented Reality App Development Platform
Embark on a journey to build an augmented reality world. This book puts theory into practical …