万本电子书0元读

万本电子书0元读

顶部广告

Building your First Mobile Game using XNA 4.0电子书

售       价:¥

0人正在读 | 0人评论 9.8

作       者:Brecht Kets

出  版  社:Packt Publishing

出版时间:2013-01-25

字       数:284.4万

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

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

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
This book is a step-by-step tutorial with a lot of screenshots that help to explain the concept better. This book will cover the building of a 3D game for Windows Phone using XNA. We won’t explain the C# programming language itself, nor object-oriented programming.We will however explain the aspects of game development thoroughly, so don’t worry if you have never written a 3D game. We will cover all the basics, included the much dreaded math. This is the right book for anyone, regardless of age and gender, if: You are interested in game development You want to start building games for Windows Phone You have some programming knowledge. In this book, we will first go over the technical topics, and end up building a 3D game for Windows Phone 7 together!
目录展开

Building your First Mobile Game using XNA 4.0

Table of Contents

Building your First Mobile Game using XNA 4.0

Credits

About the Authors

Acknowledgement

About the Reviewers

www.PacktPub.com

Support files, eBooks, discount offers and more

Why Subscribe?

Free Access for Packt account holders

Instant Updates on New Packt Books

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 Started

Developing for Windows Phone

Installing the Windows Phone SDK

Registering your Windows Phone

Getting started with your first application

The Game class

Fields

Constructor

Initialize

LoadContent

UnloadContent

Update

Draw

Summary

2. 2D Graphics

2D coordinate system

Adding content

Drawing sprites

Adding fields

Loading textures

Drawing textures

Refactoring our code

Render context

The base class

Properties

Constructor

Methods

Building the GameSprite class

Fields

Properties

Constructor

Methods

Updating MainGame

Fields

Initialize

LoadContent

Update

Draw

Result

Adding movement to the hero

The Hero2D class

Fields

Initialize

LoadContent

Update

Draw

Updating the game class

Result

Adding animation to our hero

Sprite sheets

The GameAnimatedSprite class

Fields

Properties

Constructors

Play, pause, and stop

Update

Updating Hero2D

Fields

Initialize

Update

Result

Summary

3. 3D Graphics

3D coordinate system

Using matrices

Drawing models

Adding fields

Initialize

Loading models

Drawing models

Result

Mixing 2D and 3D

Refactoring our code

The base class

Properties

Constructor

Methods

The camera

Updating RenderContext

The GameModel

Fields

Constructor

Methods

Updating MainGame

Fields

Initialize

LoadContent, Update, and Draw

Result

Adding movement to the hero

The Hero3D class

Fields

Initialize

LoadContent and Draw

Update

Updating the Game class

Result

Adding animation to our hero

The GameAnimatedModel class

Fields

LoadContent

Update

Controlling animations

Draw

Updating Hero3D

Result

Exercise: adding enemies

Summary

4. Input

Using keyboard

Using the accelerometer

Using touch

Gestures

Enabling gestures

Reading gestures

Summary

5. Sound

Before we start

Playing sound

SoundEffect

Setting volume, pitch, and pan

SoundEffectInstance

Fields

LoadContent

Playing 3D sound

Fields

LoadContent

Update

Result

Playing a song

Summary

6. Building a Basic Framework

Scene graph

Implementation

Fields

Constructor

Methods

Using the code

Scene manager

The GameScene

Properties

Constructor

Methods

The SceneManager

Properties

Constructor

Managing the scenes

Initialize and LoadContent

Update and Draw

Creating scenes

Updating the main game

Initialize

LoadContent

Update and Draw

Result

Collision

The extension method

Updating GameObject2D

Updating Hero2D

Testing for collisions

Result

Menus

The button

Fields and events

Constructor

LoadContent

Update

The menu scene

Result

Summary

7. Building a Game

Game concept

Menu scene

Fields

Constructor

Initialize

LoadContent

Level Scene

Prerequisites

Level Scene

Background

Fields

Initialize

Update

Scene Implementation

Path

Fields

Initialize

Update

Scene Implementation

Scene Camera

Buttons Controller

Fields and properties

Initialize

RandomizeButtons method

Update

ForceButtonRelease method

Scene Implementation

Hero

Fields and properties

Initialize

SetHeroAction method

Update

Scene Implementation

Swing Ball

Prerequisites

Fields

Initialize

LoadContent

Update

Scene Implementation

Spikes

Fields

Initialize

Scene Implementation

Enemy

Fields and properties

Constructor

Initialize

EnemyAnimationComplete method

LoadContent

Update

Draw

Scene implementation

Perspective Camera

Constructor

Bringing it all together

Extra Fields

AddObstacle method

ResetLevel method

Deactivate

SetObstacle method

Initialize extension

Update extension

Summary

8. Releasing our game

Testing

Creating a trial version

Application certification requirements

Application submission process

Summary

Index

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

发表评论

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

买过这本书的人还买过

读了这本书的人还在读

回顶部