Cargando…

Cocos2d cross-platform game development cookbook : develop games for iOS and Android using Cocos2d with the aid of over 70 step-by-step recipes /

Develop games for iOS and Android using Cocos2d with the aid of over 70 step-by-step recipesAbout 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, Text...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Shekar, Siddharth (Autor)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham, UK : Packt Publishing, 2016.
Edición:Second edition.
Colección:Quick answers to common problems.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Cover; Copyright; Credits; About the Author; Acknowledgments; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Sprites and Animations; Chapter 2: Scenes and Menus; Chapter 3: Gestures, Touches, and the Accelerometer; Chapter 4: Physics; Chapter 5: Audio; Chapter 6: AI and A* Pathfinding; Chapter 7: Data Storage and Retrieval; Chapter 8: Effects; Chapter 9: Game Tools; Chapter 10: Swift/SpriteBuilder Basics; Chapter 11: Porting to Android; Index; Introduction; Downloading and installing Cocos2d; The 2D coordinate system; Getting access to MainScene.
  • Adding sprites to scenesCreating a sprite using RenderTexture; Creating a custom sprite class; Animating sprites; Adding actions to sprites; Drawing glPrimitives; Adding the parallax effect; Introduction; Adding a MainMenu Scene; Adding text using CCLabel; Adding buttons with CCMenu; Adding a Gameplay Scene; Transitioning between scenes; Adding transition effects; Adding a Level Selection Scene; Scrolling a Level Selection Scene; Introduction; Understanding swipe; Implementing tap; Adding LongPress; Adding pinch/zoom controls; Adding rotation objects ; Adding panning; Including touches.
  • Creating objects with touchBeganMoving objects with touchMoved; Customizing touches in the sprite class; Adding an accelerometer; Adding a directional pad; Introduction; Adding physics to a game scene; Adding physics objects; Looking at different body types; Adding sprite texture to physics objects; Creating composite bodies; Creating complex shapes; Changing body properties; Applying impulse with the touch control; Applying force with the accelerometer; Collision detection; Adding revolute joints; Adding motor joints; Adding a game loop and scoring; Introduction; Adding background music.
  • Adding audio effectsAdding a mute button; Adding a volume slider; Adding a pause and resume button; Introduction; Patrol enemy behavior; Projectile shooting enemy; Chasing enemy behavior; A* pathfinding; Introduction; Loading the XML file data; Saving to the XML file data; Loading the JSON file data; Loading the PLIST file data; Saving the PLIST file data; Using NSUserDefaults; Introduction; CCEffects; Adding the glass effect; Adding the motion streak effect; Adding the particle effect; Adding 2D lighting; Introduction; Glyph Designer; Particle system; TexturePacker; PhysicsEditor.
  • IntroductionImplementing the Swift syntax; Implementing Cocos2d Swift; SpriteBuilder basics; Introduction; Installing the Android Xcode plugin; Enabling USB debugging on a device; Running the SpriteBuilder project on a device; Porting a project to Android; No Java runtime error; Provision profile error; Blank screen error; Useful resources.