Learning Cocos2d-JS Game Development

Learn to create robust and engaging cross-platform HTML5 games using Cocos2d-JS About This BookCreate HTML5 games running both on desktop and mobile devices, played with both mouse and touch controlsAdd advanced features such as realistic physics, particle effects, scrolling, tweaking, sound effects, background music, and more to your gamesBuild exciting cross-platform games and build a memory game, an endless runner and a physics-driven gameWho This Book Is ForIf you are new to game development or have just gotten your teeth into developing games but desire to learn more, then this book is for you. An understanding of the essentials of JavaScript is required.What You Will Learn Discover the basics behind each game genre, from endless runners to puzzles, and from physics games to match games Target different resolutions, screen sizes, screen ratios, and deal with landscape and portrait screens Place and move sprites on the screen, using scrolling and tweening for smooth movements Enhance your game by adding sound effects and background music Create physics-driven games with unmatched realism Create and destroy bodies with a single touch while managing forces, collisions, and gravity Improve your game's visual appeal by adding particles to generate explosions, fire trails, and other appealing effects Manage resources and save memory by packing all your graphic assets in a single file In DetailWhether you are new to game development or an experienced developer, you will be surprised by how easy it is to create HTML5 cross-platform games with Cocos2d-JS. In this book, you will use JavaScript to create spectacular and exciting games of different genres.Without any dreary theory, which often discourages technical book readers, each chapter will guide you through the creation of different games, each packed with new and exciting features.You will begin by learning the basics of a cross-platform game. You'll also learn to animate, rotate, scroll, and tween sprites. You will learn to make your game more enticing by adding your own special touch using features such as music, sound effects, and physics. You'll also learn to protect, sitelock, export, and publish the games you have created. By the end of the book, you'll have created a complete cross-platform game right from scratch, featuring leader boards and third-party adverts, complete with the final polish every game should require.

Author: Emanuele Feronato

Learn more