Android Game Programming by Example
暫譯: Android 遊戲程式設計實例解析

John Horton

  • 出版商: Packt Publishing
  • 出版日期: 2015-06-30
  • 售價: $2,010
  • 貴賓價: 9.5$1,910
  • 語言: 英文
  • 頁數: 378
  • 裝訂: Paperback
  • ISBN: 1785280120
  • ISBN-13: 9781785280122
  • 相關分類: Android
  • 海外代購書籍(需單獨結帳)

商品描述

Harness the power of the Android SDK by building three immersive and captivating games

About This Book

  • Implement the critical main game loop and structure your games to enable an array of advanced features
  • Animate your characters with sprite sheets, add multiple scrolling parallax backgrounds, and implement genuinely tough, playable levels in your games
  • Build super-smooth 60 frames per second with the help of this easy-to-follow, projects-based guide

Who This Book Is For

The book is best suited for existing Android or Java programmers who want to adapt their skills to make exciting Android games.

The book is also for determined readers who might have no Android, game programming or even Java experience, but a reasonable understanding of object oriented programming knowledge is assumed.

What You Will Learn

  • Build simple to advanced game engines for different types of game, with cool features such as sprite sheet character animation and scrolling parallax backgrounds
  • Design and implement genuinely challenging and playable levels
  • Implement the critical main game loop
  • Implement basic and advanced collision detection mechanics
  • Bring to life a challenging enemy AI
  • Make the math behind 2D rotation, velocity, and collisions simple
  • Run your game designs at 60 frames per second or better
  • Process multitouch screen input effectively and efficiently
  • Implement a multitude of other game features such as pickups, firing weapons, HUDs, generating and playing sound FX, scenery, level transition, high scores, and more
  • Implement a flexible and advanced game engine that uses OpenGL ES 2 for fast, smooth frame rates

In Detail

Android gaming is a hot topic these days, but one of the few areas of technology that does not have an abundance of clear and useful documentation online. However, there is an ever-increasing demand for Android games.

This book will help you get up to speed with the essentials of game development with Android. The book begins by teaching you the setup of a game development environment on a fundamental level. Moving on, the book deals with concepts such as building a home screen UI, implementing game objects, and painting the scene at a fixed resolution. Gradually, it builds up to the implementation of a flexible and advanced game engine that uses OpenGL ES 2 for fast, smooth frame rates. This is achieved by starting with a simple game and gradually increasing the complexity of the three complete games built step by step. By the end of the book, you will have successfully built three exciting games over the course of three engrossing and insightful projects.

商品描述(中文翻譯)

透過建立三款沉浸式且引人入勝的遊戲來發揮 Android SDK 的威力

本書介紹


  • 實作關鍵的主要遊戲迴圈,並結構化您的遊戲以啟用一系列進階功能

  • 使用精靈圖集為角色動畫,添加多個滾動視差背景,並在您的遊戲中實作真正具有挑戰性的可玩關卡

  • 在這本易於跟隨的專案導向指南的幫助下,建立超順暢的每秒 60 幀遊戲

本書適合誰閱讀

本書最適合現有的 Android 或 Java 程式設計師,他們希望調整自己的技能來製作令人興奮的 Android 遊戲。

本書也適合那些決心學習的讀者,儘管他們可能沒有 Android、遊戲程式設計或甚至 Java 的經驗,但假設他們對物件導向程式設計有合理的理解。

您將學到什麼

  • 為不同類型的遊戲建立從簡單到進階的遊戲引擎,具備精靈圖集角色動畫和滾動視差背景等酷炫功能
  • 設計並實作真正具有挑戰性且可玩的關卡
  • 實作關鍵的主要遊戲迴圈
  • 實作基本和進階的碰撞檢測機制
  • 讓具有挑戰性的敵人 AI 變得生動
  • 簡化 2D 旋轉、速度和碰撞背後的數學
  • 以每秒 60 幀或更高的速度運行您的遊戲設計
  • 有效且高效地處理多點觸控螢幕輸入
  • 實作多種其他遊戲功能,如拾取物品、發射武器、HUD、生成和播放音效、場景、關卡過渡、高分等
  • 實作一個靈活且進階的遊戲引擎,使用 OpenGL ES 2 以實現快速、流暢的幀率

詳細內容

Android 遊戲目前是一個熱門話題,但在技術領域中,卻是少數幾個沒有大量清晰且有用的線上文檔的領域之一。然而,對 Android 遊戲的需求卻在不斷增加。

本書將幫助您掌握 Android 遊戲開發的基本要素。書中首先教您如何在基本層面上設置遊戲開發環境。接著,書中將處理建立主畫面 UI、實作遊戲物件以及在固定解析度下繪製場景等概念。逐步地,書中將建立一個靈活且進階的遊戲引擎,使用 OpenGL ES 2 以實現快速、流暢的幀率。這是通過從一個簡單的遊戲開始,逐漸增加三款完整遊戲的複雜性,逐步構建而成。到書的結尾,您將成功地在三個引人入勝且富有洞察力的專案中建立三款令人興奮的遊戲。