LibGDX Game Development By Example

James Cook

  • 出版商: Packt Publishing
  • 出版日期: 2015-08-29
  • 售價: $1,940
  • 貴賓價: 9.5$1,843
  • 語言: 英文
  • 頁數: 280
  • 裝訂: Paperback
  • ISBN: 1785281445
  • ISBN-13: 9781785281440
  • 下單後立即進貨 (約3~4週)

商品描述

Learn how to create your very own game using the libGDX cross-platform framework

About This Book

  • Learn the core features of libGDX to develop your own exciting games
  • Explore game development concepts through example projects
  • Target games for major app stores quickly and easily with libGDX's cross-platform functionality

Who This Book Is For

This book is intended for those who wish to learn the concepts of game development using libGDX. An understanding of Java and other programming languages would definitely be helpful, although it is not a must.

What You Will Learn

  • Create and configure a libGDX project to get started with making games
  • Get to grips with a simple game loop that will drive your games
  • Manage game assets to reduce code duplication and speed up development
  • Pack game assets together into single assets to increase your game's performance
  • Display textures on the screen and manipulate them with play input
  • Play various types of sounds that a game can generate
  • Design and modify a game user interface with libGDX's built-in tools
  • Develop a game that will run across various platforms

In Detail

LibGDX is a cross-platform game development framework in Java that makes game programming easier and fun to do. It currently supports Windows, Linux, Mac OS X, Android, and HTML5.

With a vast feature set on offer, there isn't a game that can't be made using libGDX. It allows you to write your code once and deploy it to multiple platforms without modification. With cross-platform delivery at its heart, a game can be made to target the major markets quickly and cost effectively.

This book starts with a simple game through which the game update cycle is explained, including loading textures onto your screen, moving them around, and responding to input. From there you'll move on to more advanced concepts such as creating a formal game structure with a menu screen, adding a game screen and loading screen, sprite sheets, and animations. You'll explore how to introduce a font to optimize text, and with the help of a game that you'll create, you'll familiarise yourself with the 2D tile map API to create worlds that scroll as the characters move.

In the final sample game of the book, you'll implement a basic version of an Angry Birds clone, which will allow you to use the physic library box2D that libGDX provides access to. An overview of exporting games to different platforms is then provided.

Finally, you will discover how to integrate third-party services into games and take a sneak peak at the Social Media API to get a basic understanding of how it fits into the libGDX ecosystem.

Style and approach

With this book you'll learn game development with libGDX through example game projects. You'll finish the book with a thorough understanding of libGDX game development, along with completed games that you'll have built yourself.

商品描述(中文翻譯)

學習如何使用 libGDX 跨平台框架創建您自己的遊戲

關於本書
- 學習 libGDX 的核心功能,以開發您自己的精彩遊戲
- 通過示例項目探索遊戲開發概念
- 利用 libGDX 的跨平台功能快速輕鬆地針對主要應用商店開發遊戲

本書適合誰
本書旨在幫助希望學習使用 libGDX 進行遊戲開發概念的人。了解 Java 和其他程式語言將非常有幫助,雖然不是必須的。

您將學到什麼
- 創建和配置 libGDX 項目,以開始製作遊戲
- 理解驅動您遊戲的簡單遊戲循環
- 管理遊戲資源以減少代碼重複並加快開發速度
- 將遊戲資源打包成單一資源,以提高遊戲性能
- 在螢幕上顯示紋理並通過玩家輸入進行操作
- 播放遊戲可以生成的各種類型的聲音
- 使用 libGDX 的內建工具設計和修改遊戲用戶界面
- 開發可以在各種平台上運行的遊戲

詳細內容
LibGDX 是一個基於 Java 的跨平台遊戲開發框架,使遊戲編程變得更簡單和有趣。它目前支持 Windows、Linux、Mac OS X、Android 和 HTML5。

提供了豐富的功能集,沒有任何遊戲是無法使用 libGDX 製作的。它允許您編寫一次代碼,並在不修改的情況下部署到多個平台。以跨平台交付為核心,遊戲可以快速且具成本效益地針對主要市場進行開發。

本書從一個簡單的遊戲開始,通過該遊戲解釋遊戲更新循環,包括將紋理加載到螢幕上、移動它們以及響應輸入。接下來,您將進入更高級的概念,例如創建正式的遊戲結構,包括菜單畫面、遊戲畫面和加載畫面、精靈圖和動畫。您將探索如何引入字體以優化文本,並在您創建的遊戲的幫助下,熟悉 2D 瓦片地圖 API,以創建隨著角色移動而滾動的世界。

在本書的最後一個示例遊戲中,您將實現一個基本版本的 Angry Birds 克隆,這將使您能夠使用 libGDX 提供的物理庫 box2D。然後將提供將遊戲導出到不同平台的概述。

最後,您將發現如何將第三方服務集成到遊戲中,並對社交媒體 API 進行簡要了解,以獲得其在 libGDX 生態系統中的基本理解。

風格與方法
通過本書,您將通過示例遊戲項目學習使用 libGDX 進行遊戲開發。您將在結束本書時對 libGDX 遊戲開發有透徹的理解,並完成您自己構建的遊戲。