Cocos2d Cross-Platform Game Development Cookbook

Cocos2d Cross-Platform Game Development Cookbook

Author: Siddharth Shekar

Publisher: Packt Publishing Ltd

Published: 2016-02-22

Total Pages: 384

ISBN-13: 1784390445

DOWNLOAD EBOOK

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.


Cocos2d-x Cookbook

Cocos2d-x Cookbook

Author: Akihiro Matsuura

Publisher: Packt Publishing Ltd

Published: 2015-11-03

Total Pages: 254

ISBN-13: 1783284765

DOWNLOAD EBOOK

Over 50 hands-on recipes to help you efficiently administer and maintain your games with Cocos2d-x About This Book Build exciting games, apps, and other cross-platform GUI based interactive programs with Cocos2d-x Explore the nitty-gritty of the latest Cocos2d-x on the block, version 3.6 A step-by-step guide that shows you the functionalities of Cocos2d-x followed by an explanation of how they work Who This Book Is For If you are a game developer and want to learn more about cross-platform game development in Cocos2d-x, then this book is for you. Knowledge of C++, Xcode, Eclipse, and how to use commands in the terminal are prerequisites for this book. What You Will Learn Install and set up Cocos2d-x for your development environment Build, test, and release game applications for iOS and Android Develop your games for multiple platforms Customize Cocos2d-x for your games Use a physical engine in your games Save and load text, JSON, XML, or other formats Explore the brand new features of Cocos2d-x In Detail Cocos2d-x is a suite of open source, cross-platform game-development tools used by thousands of developers all over the world. Cocos2d-x is a game framework written in C++, with a thin platform-dependent layer. Completely written in C++, the core engine has the smallest footprint and the fastest speed of any other game engine, and is optimized to be run on all kinds of devices. You will begin with the initial setup and installation of Cocos2d before moving on to the fundamentals needed to create a new project. You will then explore and create the sprites, animations, and actions that you will include in the game. Next you will look at strings and create labels, including a label with True Type Font (TTF) font support. Later, you will learn about layer and scene creation and transition. Then you will create the GUI parts essential for a game, such as buttons and switches. After that, you will breathe life into the game with background music and sound effects using the all new Cocos2d-x audio engine. You will then discover how to manage resource files and implement processes that depend on the operating system. Finally, you will polish your game with physics such as gravity and elevation, learn about tools that will help you make games more robust and stable, and get to know best practices to improve the game you have developed. Style and approach This book is an easy-to-follow guide with ample recipes to help you better understand Cocos2d-x.


Unreal Engine Game Development Cookbook

Unreal Engine Game Development Cookbook

Author: John P. Doran

Publisher: Packt Publishing Ltd

Published: 2015-10-30

Total Pages: 326

ISBN-13: 1784395978

DOWNLOAD EBOOK

Over 40 recipes to accelerate the process of learning game design and solving development problems using Unreal Engine About This Book Explore the quickest way to tackle common challenges faced in Unreal Engine Create your own content, levels, light scenes, and materials, and work with Blueprints and C++ scripting An intermediate, fast-paced Unreal Engine guide with targeted recipes to design games within its framework Who This Book Is For This book is for those who are relatively experienced with Unreal Engine 4 and have knowledge of its fundamentals. Working knowledge of C++ is required. What You Will Learn Discover editor functionalities for an in-depth insight into game design Develop environments using terrain for outdoor areas and a workflow for interiors as well using brushes Design various kinds of materials with unique features, such as mirrors and glows Explore the various ways that lighting can be used in the engine Build various level effects using Blueprints, Unreal's visual scripting system Set up a development environment and develop custom functionality with C++ for your games Create healthbars and main menus with animations using Slate, Unreal's UI solution, through the UMG Editor Package and create an installer to get your project out into the world In Detail Unreal Engine is powerful tool with rich functionalities to create games. It equips you with the skills to easily build mobile and desktop games from scratch without worrying about which platform they will run on. You can focus on the individual complexities of game development such as animation and rendering. This book takes you on a journey to jumpstart your game design efforts. You will learn various aspects of the Unreal engine commonly encountered with practical examples of how it can be used, with numerous references for further study. You will start by getting acquainted with Unreal Engine 4 and building out levels for your game. This will be followed by recipes to help you create environments, place meshes, and implement your characters. You will then learn to work with lights, camera, and shadows to include special effects in your game. Moving on, you'll learn Blueprint scripting and C++ programming to enable you to achieve trigger effects and add simple functionalities. By the end of the book, you will see how to create a healthbar and main menu, and then get your game ready to be deployed and published. Style and approach This book offers detailed, easy-to-follow recipes that will help you master a wide range of Unreal Engine 4's features. Every recipe provides step-by-step instructions, with explanations of how these features work, and alternative approaches and research materials so you can learn even more.


iOS Programming Cookbook

iOS Programming Cookbook

Author: Hossam Ghareeb

Publisher: Packt Publishing Ltd

Published: 2017-03-31

Total Pages: 507

ISBN-13: 1786467704

DOWNLOAD EBOOK

Over 50 exciting and powerful recipes to help you unearth the promise of iOS programming About This Book Create high performance iOS apps with a focus on application development APIs and techniques Enrich your UI skills with UIStoryboard, Autolayout, Size classes, and Container view Produce enhanced results with iOS 10 as a result of learning and implementing pro-level practices, techniques, and solutions Who This Book Is For If you are an iOS developer on a quest to develop your perfect iOS app, then this book is for you. It would also prove to be a valuable resource for those who want to get up and running with iOS development through a clear, practical approach. In order to unleash the full potential of this book, basic Swift programming knowledge is necessary. What You Will Learn Build your own custom UIViews through code or the interface builder Implement a dynamic and interactive interface in an iOS app Work on various graphics related elements and the process of using them together to make meaningful shapes. Use the side over and split view to interact with multiple apps concurrently Encrypt JSON calls to make the app more secure Work on web markup feature to enhance search optimization In Detail Do you want to understand all the facets of iOS programming and build complex iOS apps? Then you have come to the right place. This problem-solution guide will help you to eliminate expensive learning curves and focus on specific issues to make you proficient at tasks and the speed-up time involved. Beginning with some advanced UI components such as Stack Views and UICollectionView, you will gradually move on to building an interface efficiently. You will work through adding gesture recognizer and touch elements on table cells for custom actions. You will work with the Photos framework to access and manipulate photos. You will then prepare your app for multitasking and write responsive and highly efficient apps. Next, you will integrate maps and core location services while making your app more secure through various encryption methods. Finally, you will dive deep into the advanced techniques of implementing notifications while working with memory management and optimizing the performance of your apps. By the end of the book, you will master most of the latest iOS 10 frameworks. Style and approach This is the best practical resource on iOS 10 development. This book, with its no nonsense approach and a clear practical focus, will be your best friend on your quest to develop your perfect iOS app. The best thing about this book is that in addition to recipes on iOS programming techniques and app development essentials, it will take you on a complete guided tour of all the new app development APIs that are shipped with iOS 10.


Mastering Android Game Development with Unity

Mastering Android Game Development with Unity

Author: Siddharth Shekar

Publisher: Packt Publishing Ltd

Published: 2017-05-25

Total Pages: 346

ISBN-13: 1785282948

DOWNLOAD EBOOK

Create enthralling Android games with Unity Faster Than Ever Before About This Book Develop complex Android games with the help of Unity's advanced features such as artificial intelligence, high-end physics, and GUI transformations. Create amazing Graphical User Interfaces (GUIs) with Unity's new uGUI system Unravel and deploy exciting games across Android devices Who This Book Is For If you are a Unity 5 developer and want to expand your knowledge of Unity 5 to create high-end complex Android games, then this book is for you. Readers are expected to have a basic understanding of Unity 5, working with its environment, and its basic concepts. What You Will Learn Develop your own Jetpack Joyride clone game Explore the advanced features of Unity 5 by building your own Action Fighting game Develop remarkable Graphical User Interfaces (GUIs) with Unity's new uGUI system Enhance your game by adding stunning particle systems and complex animations Build pleasing virtual worlds with special effects, lights, sky cube maps, and cameras Make your game more realistic by providing music and sound effects Debug and deploy your games on different Android devices In Detail Game engines such as Unity are the power-tools behind the games we know and love. Unity is one of the most widely-used and best loved packages for game development and is used by everyone, from hobbyists to large studios, to create games and interactive experiences for the Web, desktop, mobile, and console. With Unity's intuitive, easy-to-learn toolset and this book, it's never been easier to become a game developer. You will begin with the basic concepts of Android game development, a brief history of Android games, the building blocks of Android games in Unity 5, and the basic flow of games. You will configure an empty project for the Jetpack Joyride Clone Game, add an environment and characters, and control them. Next you will walk through topics such as particle systems, camera management, prefabs, animations, triggers, colliders, and basic GUI systems. You will then cover the basic setup for 3D action fighting games, importing models, textures and controlling them with a virtual on-screen joystick. Later you will set up Scene for 3D Configuration, create basic gameplays, and manage input controls. Next you will learn to create the interface for the main menu, gameplay, game over, achievements, and high score screens. Finally you will polish your game with stats, sounds, and Social Networking, followed by testing the game on Android devices and then publishing it on Google Play, Amazon, and OUYA Stores. Style and approach A step-by-step and detailed guide to developing high-end complex Android games utilizing the advanced concepts of Unity.


CMake Cookbook

CMake Cookbook

Author: Radovan Bast

Publisher: Packt Publishing Ltd

Published: 2018-09-26

Total Pages: 600

ISBN-13: 1788472349

DOWNLOAD EBOOK

Learn CMake through a series of task-based recipes that provide you with practical, simple, and ready-to-use CMake solutions for your code Key FeaturesLearn to configure, build, test, and package software written in C, C++, and FortranProgress from simple to advanced tasks with examples tested on Linux, macOS, and WindowsManage code complexity and library dependencies with reusable CMake building blocksBook Description CMake is cross-platform, open-source software for managing the build process in a portable fashion. This book features a collection of recipes and building blocks with tips and techniques for working with CMake, CTest, CPack, and CDash. CMake Cookbook includes real-world examples in the form of recipes that cover different ways to structure, configure, build, and test small- to large-scale code projects. You will learn to use CMake's command-line tools and master modern CMake practices for configuring, building, and testing binaries and libraries. With this book, you will be able to work with external libraries and structure your own projects in a modular and reusable way. You will be well-equipped to generate native build scripts for Linux, MacOS, and Windows, simplify and refactor projects using CMake, and port projects to CMake. What you will learnConfigure, build, test, and install code projects using CMakeDetect operating systems, processors, libraries, files, and programs for conditional compilationIncrease the portability of your codeRefactor a large codebase into modules with the help of CMakeBuild multi-language projectsKnow where and how to tweak CMake configuration files written by somebody elsePackage projects for distributionPort projects to CMakeWho this book is for If you are a software developer keen to manage build systems using CMake or would like to understand and modify CMake code written by others, this book is for you. A basic knowledge of C++, C, or Fortran is required to understand the topics covered in this book.


Building Android Games with Cocos2d-x

Building Android Games with Cocos2d-x

Author: Raydelto Hernandez

Publisher: Packt Publishing Ltd

Published: 2015-03-30

Total Pages: 160

ISBN-13: 1785282832

DOWNLOAD EBOOK

If you have a basic understanding of the C++ programming language and want to create videogames for the Android platform, then this technology and book is ideal for you.


C++ Game Development By Example

C++ Game Development By Example

Author: Siddharth Shekar

Publisher: Packt Publishing Ltd

Published: 2019-05-03

Total Pages: 406

ISBN-13: 1789537347

DOWNLOAD EBOOK

Explore modern game programming and rendering techniques to build games using C++ programming language and its popular libraries Key FeaturesLearn how you can build basic 2D and complex 3D games with C++Understand shadows, texturing, lighting, and rendering in 3D game development using OpenGLUncover modern graphics programming techniques and GPU compute methods using the Vulkan APIBook Description Although numerous languages are currently being used to develop games, C++ remains the standard for fabricating expert libraries and tool chains for game development. This book introduces you to the world of game development with C++. C++ Game Development By Example starts by touching upon the basic concepts of math, programming, and computer graphics and creating a simple side-scrolling action 2D game. You'll build a solid foundation by studying basic game concepts such as creating game loops, rendering 2D game scenes using SFML, 2D sprite creation and animation, and collision detection. The book will help you advance to creating a 3D physics puzzle game using modern OpenGL and the Bullet physics engine. You'll understand the graphics pipeline, which entails creating 3D objects using vertex and index buffers and rendering them to the scene using vertex and fragment shaders. Finally, you'll create a basic project using the Vulkan library that'll help you get to grips with creating swap chains, image views, render passes, and frame buffers for building high-performance graphics in your games. By the end of this book, you’ll be ready with 3 compelling projects created with SFML, the Vulkan API, and OpenGL, and you'll be able take your game and graphics programming skills to the next level. What you will learnUnderstand shaders and how to write a basic vertex and fragment shaderBuild a Visual Studio project and add SFML to itDiscover how to create sprite animations and a game character classAdd sound effects and background music to your gameGrasp how to integrate Vulkan into Visual StudioCreate shaders and convert them to the SPIR-V binary formatWho this book is for If you’re a developer keen to learn game development with C++ or get up to date with game development, this book is for you. Some knowledge of C++ programming is assumed.


Swift Game Development

Swift Game Development

Author: Siddharth Shekar

Publisher: Packt Publishing Ltd

Published: 2018-09-28

Total Pages: 435

ISBN-13: 1788472802

DOWNLOAD EBOOK

Embrace the mobile gaming revolution by creating popular iOS games with Swift 4.2 Key FeaturesLearn to create games for iPhone and iPad with the latest Swift Programming languageUnderstand the fundamental concepts of game development like game physics, camera action, sprites, controls, among othersBuild Augmented reality games using ARKit for true performanceBook Description Swift is the perfect choice for game development. Developers are intrigued by Swift and want to make use of new features to develop their best games yet. Packed with best practices and easy-to-use examples, this book leads you step by step through the development of your first Swift game. The book starts by introducing Swift's best features – including its new ones for game development. Using SpriteKit, you will learn how to animate sprites and textures. Along the way, you will master physics, animations, and collision effects and how to build the UI aspects of a game. You will then work on creating a 3D game using the SceneKit framework. Further, we will look at how to add monetization and integrate Game Center. With iOS 12, we see the introduction of ARKit 2.0. This new version allows us to integrate shared experiences such as multiplayer augmented reality and persistent AR that is tied to a specific location so that the same information can be replicated on all connected devices. In the next section, we will dive into creating Augmented Reality games using SpriteKit and SceneKit. Then, finally, we will see how to create a Multipeer AR project to connect two devices, and send and receive data back and forth between those devices in real time. By the end of this book, you will be able to create your own iOS games using Swift and publish them on the iOS App Store. What you will learnDeliver powerful graphics, physics, and sound in your game by using SpriteKit and SceneKitSet up a scene using the new capabilities of the scene editor and custom classesMaximize gameplay with little-known tips and strategies for fun, repeatable actionMake use of animations, graphics, and particles to polish your gameUnderstand the current mobile monetization landscapeIntegrate your game with Game CenterDevelop 2D and 3D Augmented Reality games using Apple's new ARKit frameworkPublish your game to the App StoreWho this book is for If you wish to create and publish iOS games using Swift, then this book is for you. No prior game development or experience with Apple ecosystem is needed.


iOS Swift Game Development Cookbook

iOS Swift Game Development Cookbook

Author: Jonathon Manning

Publisher: O'Reilly Media

Published: 2018-10-02

Total Pages: 349

ISBN-13: 1491999055

DOWNLOAD EBOOK

Ready to make amazing games for the iPhone and iPad? With Apple’s Swift programming language, it’s never been easier. This updated cookbook provides detailed recipes for managing a wide range of common iOS game-development issues, ranging from 2D and 3D math, SpriteKit, and OpenGL to augmented reality with ARKit. You get simple, direct solutions to common problems found in iOS game programming. Need to figure out how to give objects physical motion, or want a refresher on gaming-related math problems? This book provides sample projects and straightforward answers. All you need to get started is some familiarity with iOS development in Swift.