万本电子书0元读

万本电子书0元读

顶部广告

Learning libGDX Game Development电子书

售       价:¥

3人正在读 | 0人评论 9.8

作       者:Andreas Oehlke

出  版  社:Packt Publishing

出版时间:2013-09-23

字       数:201.7万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
A clear and practical guide to building games in libGDX.This book is great for Indie and existing game developers, as well as those who want to get started with game development using libGDX. Java game knowledge of game development basics is recommended.
目录展开

Learning Libgdx Game Development

Table of Contents

Learning Libgdx Game Development

Credits

About the Author

About the Reviewers

www.PacktPub.com

Support files, eBooks, discount offers and more

Why Subscribe?

Free Access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Errata

Piracy

Questions

1. Introduction to Libgdx and Project Setup

Diving into Libgdx

Features of Libgdx 0.97

Graphics

Audio

Input Handling

File I/O

Math and Physics

Utilities

Tools

Getting in touch with the community

Prerequisites for installing and configuring

Java Development Kit (JDK)

Eclipse – Integrated Development Environment (IDE)

Downloading Libgdx

Installing Android SDK

Running Eclipse and installing plugins

Creating a new application

Kicking your game to life

Key to success lies in planning

Game project – Canyon Bunny

Description of the game

Summary

2. Cross-platform Development – Build Once, Deploy Anywhere

The demo application – how the projects work together

Backends

LWJGL (Lightweight Java Game Library)

Android

WebGL

Modules

The application module

Logging

Shutting down gracefully

Persisting data

Querying the Android API Level

Querying the platform type

Querying memory usage

Graphics module

Querying delta time

Querying display size

Querying the FPS (frames per second) counter

Audio module

Sound playback

Music streaming

Input module

Reading the keyboard/touch/mouse input

Reading the accelerometer

Starting and canceling vibrator

Catching Android soft keys

The files module

Getting an internal file handle

Getting an external file handle

The network module

HTTP GET and HTTP POST

Client/server sockets

Opening a URI in a web browser

Libgdx's Application Life-Cycle and Interface

Starter Classes

Running the demo application on a desktop

Running the demo application on Android

Running the demo application in a WebGL-capable web browser

The demo application – time for code

Inspecting an example code of the demo application

The create() method

The render() method

The dispose() method

Having fun with the debugger and Code Hot Swapping

Summary

3. Configuring the Game

Setting up the Canyon Bunny project

Using a class diagram for Canyon Bunny

Laying foundations

Implementing Constants

Implementing CanyonBunnyMain

Implementing WorldController

Implementing WorldRenderer

Putting it all together

Building the game loop

Adding test sprites

Adding game world's debug controls

Adding CameraHelper

Adding camera debug controls using CameraHelper

Summary

4. Gathering Resources

Setting a custom Android application icon

Creating texture atlases

Loading and tracking assets

Organizing assets

Testing assets

Handling level data

Summary

5. Making a Scene

Creating game objects

The rock object

The mountains object

The water overlay object

The clouds object

Implementing the level loader

Assembling the game world

Implementing the game GUI

The GUI score

The GUI extra lives

The GUI FPS counter

Rendering the GUI

Summary

6. Adding the Actors

Implementing the actor game objects

Creating the gold coin object

Creating the feather object

Creating the bunny head object

Updating the rock object

Completing the level loader

Adding the game logic

Adding collision detection

Losing lives, game over, and fixing the camera

Adding the game over text and the feather icon to the GUI

Summary

7. Menus and Options

Managing multiple screens

Exploring Scene2D (UI), TableLayout, and skins

Using Libgdx's scene graph for the menu UI

Building the scene for the menu screen

Adding the background layer

Adding the objects layer

Adding the logos layer

Adding the controls layer

Adding the Options window layer

Building the Options window

Using the game settings

Summary

8. Special Effects

Creating complex effects with particle systems

Adding a dust particle effect to the player character

Moving the clouds

Smoothing with Linear interpolation (Lerp)

Letting the rocks float on the water

Adding parallax scrolling to the mountains in the background

Enhancing the game screen's GUI

Event – player lost a life

Event – score increased

Summary

9. Screen Transitions

Adding the screen transition capability

Implementing transition effects

Knowing about interpolation algorithms

Creating a fade transition effect

Creating a slide transition effect

Creating a slice transition effect

Summary

10. Managing Music and Sound Effects

Playing back music and sound effects

Exploring the Sound interface

Exploring the Music interface

Accessing the audio device directly

Exploring the AudioDevice interface

Exploring the AudioRecorder interface

Using sound generators

About the sfxr generator

About the cfxr generator

About the bfxr generator

Adding music and sounds to Canyon Bunny

Summary

11. Advanced Programming Techniques

Simulating physics with Box2D

Exploring the concepts of Box2D

Understanding rigid bodies

Choosing body types

Using shapes

Using fixtures

Simulating physics in the world

Physics body editor

Preparing Canyon Bunny for raining carrots

Adding the new assets

Adding the carrot game object

Adding the goal game object

Extending the level

Letting it rain carrots

Working with shaders in Libgdx

Creating a monochrome filter shader program

Using the monochrome filter shader program in Canyon Bunny

Adding alternative input controls

Summary

12. Animations

Manipulating actors through actions

Actions for manipulating actors

Controlling the order and time of execution

Animating the menu screen

Animating the gold coins and bunny head actors

Animating the menu buttons and options window

Using sequences of images for animations

Packing animations using the texture packer

Choosing between animation play modes

Animating the game screen

Defining and preparing new animations

Animating the gold coin game object

Animating the bunny head game object

Summary

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部