Cocos2d Cross-Platform Game Development Cookbook, 2nd Edition

0
(0)

Cocos2d Cross-Platform Game Development Cookbook, 2nd Edition
 

  • Author:Siddharth Shekar
  • Length: 384 pages
  • Edition: 2
  • Publisher: Packt Publishing
  • Publication Date: 2016-02-22
  • ISBN-10: 1784393231
  • ISBN-13: 9781784393236
  • Sales Rank: #4074786 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    Develop games for iOS and Android using Cocos2d with the aid of over 70 step-by-step recipes

    About This Book

    • Learn to efficiently use Cocos2d to develop cross-platform games, and have them work on iOS as well as Android
    • Get acquainted with industry-wide professional tools such as Glyph Designer, Texture Packer, and Physics Editor, as well as using the Swift/ Sprite builder implementation of Cocos2d
    • Use the easy-to-follow recipes to develop as well as deploy games to the Playstore and the App Store

    Who This Book Is For

    This book is for intermediate game developers and especially the ones who are generally curious to find out what’s new in Cocos2d v 3.3.

    What You Will Learn

    • Build custom sprites with custom animations for the game
    • Build interactivity into your game by adding gestures and touch interactions
    • Understand AI enemy programming and path finding to make games more exciting
    • Add physics to your game to make it more lively and interactive
    • Get familiar with the Swift and Sprite builder implementations along with Objective-C programming
    • Perform hassle-free deployment of games built in iOS onto Android
    • Add effects and particle systems to make the game more colorful

    In Detail

    Cocos2d is the world’s leading game development framework for developing iOS games. With the introduction of Swift and Spritebuilder, it has become easier than ever to develop the games of your dreams without much effort. With Cocos2d, you can also deploy the game on Android, thereby maximizing profit and reducing development and porting costs.

    The book starts off with a detailed look at how to implement sprites and animations into your game to make it livelier. You will then learn to add scenes to the game such as the gameplay scene and options scene and create menus and buttons in these scenes, as well as creating transitions between them. From there on, you will get an understanding of how to program user interactions such as tapping, holding, and swiping. You’ll then add accelerometer inputs and physics to the scene, and make objects respond back to the inputs. A game is practically incomplete without audio being added, so this will be covered next.

    The next section will include ways to add Artificial Intelligence to enemies in the game, allowing them to patrol, chase, and shoot in a projectile manner. You will then learn to use NSUserDefault to save and load game progress, and create and access files using JSON, Plist, and XML files for custom storage and retrieval of data. Then you will learn to add dynamic lighting to your game and will use industry-wide tools such as Texture Packer, Glyph Designer, Physics Editor, Particle Designer, and Sprite Illuminator to create more visually appealing and performance-optimized games.

    Towards the end of the book, we dive into Apple’s latest programming language―Swift, highlighting the major differences between Objective C and Swift. The book culminates with taking your existing game developed for iOS and porting it to Android, showing you how to install the Android Xcode plugin as well.

    Style and approach

    The book is written in an extremely lucid and step-by-step manner; it can be understood easily by anyone. The topics included are broken down into individual chapters so you can refer to the specific chapter to get answers on the subject you are interested in.

    Table of Contents

    Chapter 1. Sprites and Animations
    Chapter 2. Scenes and Menus
    Chapter 3. Gestures, Touches, and the Accelerometer
    Chapter 4. Physics

    中文:

    书名:Cocos2d Cross-Platform Game Development Cookbook, 2nd Edition

    Develop games for iOS and Android using Cocos2d with the aid of over 70 step-by-step recipes

    关于本书

    • 学会高效地使用coCos2d开发跨平台游戏,并让它们在iOS和Android上运行
    • 熟悉行业范围内的专业工具,如字形设计器、纹理打包器和物理编辑器,以及使用Swift/Sprite构建器实现的coCos2d
    • 使用简单易用的方法开发游戏,并将其部署到PlayStore和App Store

    Who This Book Is For

    这本书是为中级游戏开发人员,特别是那些谁通常是好奇地发现什么是新的coCos2dv3.3。

    你将学到什么

    • 使用游戏的自定义动画构建自定义精灵
    • 通过添加手势和触摸交互在游戏中构建互动性
    • 了解AI敌人编程和寻路,让游戏更精彩
    • 在游戏中加入物理元素,让游戏更生动、更具互动性
    • 熟悉Swift和Sprite构建器实现以及Objective-C编程
    • 轻松地将iOS内置的游戏部署到Android上
    • 添加特效和粒子系统,使游戏更加丰富多彩

    In Detail

    CoCos2d是开发iOS游戏的世界领先的游戏开发框架。随着Swift和SpriteBuilder的推出,开发您梦想中的游戏变得比以往任何时候都更容易。有了cocos2d,你还可以在Android上部署游戏,从而实现利润最大化,降低开发和移植成本。

    这本书一开始就详细介绍了如何将精灵和动画应用到游戏中,使游戏更加生动。然后,您将学习向游戏中添加场景,如游戏场景和选项场景,并在这些场景中创建菜单和按钮,以及在它们之间创建过渡。从那时起,您将了解如何编程用户交互,如点击、按住和滑动。然后,您将在场景中添加加速度计输入和物理特性,并使对象对输入做出响应。如果不添加音频,游戏实际上是不完整的,因此接下来将介绍这一点。

    下一节将包括如何将人工智能添加到游戏中的敌人,允许他们巡逻,追逐,和射击的方式。然后,您将学习使用NSUserDefault保存和加载游戏进度,并使用JSON、PLIST和XML文件创建和访问文件,以自定义存储和检索数据。然后,您将学习将动态照明添加到游戏中,并将使用行业范围的工具,如纹理打包器、字形设计器、物理编辑器、粒子设计器和精灵照明器,以创建更具视觉吸引力和性能优化的游戏。

    在这本书的最后,我们深入了解了苹果最新的编程语言–SWIFT,强调了Target C和SWIFT之间的主要区别。这本书的高潮是将你为iOS开发的现有游戏移植到Android上,并向你展示如何安装Android Xcode插件。

    风格和方法

    这本书写得非常清晰和循序渐进,任何人都很容易理解。所包含的主题被分解为单独的章节,因此您可以参考特定的章节来获得关于您感兴趣的主题的答案。

    目录表

    第一章:精灵和动画
    第二章.场景和菜单
    第三章:手势、触摸和加速度计
    第四章:物理学

  • 下载电子版:下载地址
  • 购买纸质版:亚马逊商城

    点击星号评分!

    平均分 0 / 5. 投票数: 0

    还没有投票!请为他投一票。

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册