万本电子书0元读

万本电子书0元读

顶部广告

LibGDX Game Development By Example电子书

售       价:¥

5人正在读 | 0人评论 9.8

作       者:James Cook

出  版  社:Packt Publishing

出版时间:2015-08-26

字       数:121.3万

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

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

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
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 this is not a must.
目录展开

LibGDX Game Development By Example

Table of Contents

LibGDX Game Development By Example

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

Downloading the color images of this book

Errata

Piracy

Questions

1. Getting to Know LibGDX

Introducing LibGDX

Setting up LibGDX

Creating a project

What is Gradle?

Importing a project

Summary

2. Let's Get These Snakes Out of This Book!

Why Snake?

Game update cycle

Texture rendering

The batch class

The texture class

The dispose() method

Introducing Sammy the snake

Giving the snake a face

Moving Sammy the snake

Controlling Sammy with event polling

Adding the apple

Increasing the length of the snake

Summary

3. Making That Snake Slick

Introducing the ShapeRenderer class

Adding the ShapeRenderer class

Drawing with the ShapeRenderer class

Final thoughts on the ShapeRenderer class

More on collisions

Stopping the doubleback

Colliding with the body

The state of the game

Adding a state

Player feedback

Restart your engines!

High scores

Handling different screen sizes

Introducing the Viewport

Using the Viewport

Summary

4. What the Flap Is the Hype About?

Why Flappy Bird?

The project setup

Setting up the GameScreen class

Creating Flappee Bee

Flappee Bee

Flapping Flappee

Flower power obstacles

Collisions

Scoring

Adding textures and animations

GUI creation with Scene2D

The Stage class

The Actor class

The Start screen and disposal

The dispose() method

Summary

5. Making Your Bird More Flightworthy

Let's load up them assets!

Implementing the AssetManager parameter

Loading the loading screen!

Packing textures

Measuring the impact

The GDX-tools TexturePacker

Using the texture atlas

I need a Hiero!

What is Hiero?

Summary

6. Onto the Next Platform...Game

Why and what is a platformer?

Introducing Pete the platformer

Game reuse

Tile maps – mapping all over the world!

Introducing Tiled

Creating a new map

The LibGDX Tile Map API

Introducing Pete

Adding our character

Making Pete jump!

Adding our artwork

Collision detection

Adding a collectable

Summary

7. Extending the Platform

Increasing the level

Resizing the Map

Allowing Pete to leave the screen

The camera sees it all

Let's make some noise

Sound effects

Music

If Pete jumps in the game, does anyone hear him?

Summary

8. Why Are All the Birds Angry?

The what, why, and how of Angry Birds

Why?

How?

Setting up LibGDX with Box2D

Code reuse

Box2D with LibGDX

Box2D concepts

Shape

Rigid body

Fixture

Constraint

The contact constraint

Joint

The joint limit

The joint motor

World

Solver

Units

Creating a world!

Nutty Birds

Let's get tiling!

The groundwork

Adding objects

Importing the tile map

Importing the object layer

Importing the naughty ones!

Fire at will!

Take Aim! Fire!

Time for an art attack!

Ladies and gentleman – the main event!

Summary

9. Even Angrier Birds!

The how, what, and why of object pools

Object pools with LibGDX

Hey, look at all these acorns!

Pooling the acorns

Freeing the acorns!

Summary

10. Exporting Our Games to the Platforms

Using all the platforms

Looking closer – Android

Launching the emulator from an IDE

Launching the emulator from the command line

Hang on, how does it work?

Release the Kraken!

Looking closer – iOS

Looking closer – HTML

Getting ready to launch

Summary

11. Third-party Services

How to use platform-dependent libraries

The nice way – via Maven

An alternative to Maven – A project/JAR file

Keeping it cross-platform friendly

FriendFace for Android

A potential trap! (Android)

Summary

Index

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

发表评论

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

买过这本书的人还买过

读了这本书的人还在读

回顶部