Contents

About the Authors

About the Technical Reviewer

Acknowledgments

Introduction

images Chapter 1: Introducing 2D Game Development in C#

Downloading and Installing Development Tools

Download and install the IDE: Visual Studio Express

Download and install the game SDK: MonoGame Framework

Download and install the asset builder: XNB Builder

What Is Covered in This Book?

What Is Not Covered in This Book?

Technology References

images Chapter 2: Getting to Know the MonoGame Framework

The Visual Studio Development Environment

Creating a MonoGame project in Visual Studio

The Visual Studio layout and Solution Explorer

The relationship between the file system and Solution Explorer

Understanding the MonoGame Framework

The Microsoft.Xna.Framework.Game Class

Adding, Drawing, and Controlling Content

The Draw and Control project

Creating the Draw and Control project

Wrapping Game Controller with the Keyboard

The Input Wrapper project

Creating the Input Wrapper project

Summary

Quick Reference

images Chapter 3: 2D Graphics, Coordinates, and Game State

Introduction

The Game Window

The Game Window Size project

Modifying the game window

Textured Primitives

The Textured Primitive project

Creating the TexturedPrimitive class

Adding TexturedPrimitive functionality and behavior

Using the TexturedPrimitive class

Observations

Coordinate System and Camera

The User-Defined Coordinate System project

Creating a user-defined coordinate system

Using the Camera class

Font Output

The Font Output project

Creating the FontSupport class

Using and observing the FontSupport class

A Simple Game Object

The Simple Game Object project

Modifying the classes to include bounds support

Adding collision detection support

Creating the SoccerBall class

Using the SoccerBall class

Simple Game State

The Simple Game State project

Adding TexturedPrimitive collision detection support

Creating a BasketBall class

Creating the game state object

Modifying Game1 to support the game state

Summary

Quick Reference

images Chapter 4: Getting Things Moving

Rotating textures

The Rotate Textured Primitive project

Modifying the TexturedPrimitive class

Modifying the GameState class

Vectors

Vector review

The Show Vector project

Modifying the GameState class

Front direction

The Front Direction project

Modifying the GameState class

Game objects

The Game Object project

Creating the GameObject class

Modifying the GameState class

Chasers

The Chaser Object project

Creating the ChaserGameObject class

Modifying the GameState class

Summary

Quick reference

images Chapter 5: Pixel-accurate collisions

Pixel-accurate collision

The Pixel-Accurate Collision project

Extending the TexturedPrimitive class

Modifying the GameState class

General pixel collision

The General Pixel Collision project

Modifying the TexturedPrimitive class

Simple physics

The Simple Physics project

Creating the RotateObject class

Creating the Platform class

Modifying the GameState class

Summary

Quick reference

images Chapter 6: Game object states and Semiautonomous Behaviors

Review of finite state machines

Creating a spinning arrow

The Spinning Arrow project

Creating the SpinningArrow class

Creating the PlayerControlHero class

Modifying the GameState class

Adding many spinning arrows

The Many Spinning Arrows project

Modifying the SpinningArrow class

Creating the SpinningArrowSet class

Modifying the GameState class

Creating a patrol enemy

The Patrol Enemy project

Creating the PatrolEnemy class

Modifying the GameState class

Implementing smooth turning

The Smooth Turning Patrol project

Modifying the PatrolEnemy class

Patrol that chases

The Patrol That Chases project

Modifying the PatrolEnemy class

Modifying the GameState class

Creating many enemies

The Many Enemies project

Creating the PatrolEnemySet class

Modifying the GameState class

Summary

Quick reference

images Chapter 7: Sprites, Camera, Action!

Sprite animation

The Sprite Animation project

Creating the SpritePrimitive class

Modifying the GameState class

Sprite collision

The Sprite Collision project

Modifying the TexturedPrimitive class

Modifying the SpritePrimitive class

Modifying the TexturedPrimitivePixelCollide partial class

Modifying the GameState class

Moving and zooming the camera

The Camera Zoom Move project

Modifying the Camera class

Modifying the GameState class

Adding audio

The Audio project

Creating the AudioSupport class

Modifying the GameState class

Summary

Quick reference

images Chapter 8: Particle Systems

Particle systems

The Particle System project

Modifying the TexturedPrimitive class

Creating the ParticlePrimitive class

Creating the ParticleSystem class

Modifying the GameState class

Particle emitters

The Particle Emitter project

Creating the ReddishParticlePrimitive class

Creating the ParticleEmitter class

Modifying the ParticleSystem class

Modifying the GameState class

Summary

Quick reference

images Chapter 9: Building Your First 2D Game

Simple Game: Fish Food

The Fish Food project

Fish Food Game Design

Game functionality outline

Creating the BubbleShot class

Creating the Hero class

Modifying the PatrolEnemy class

Creating the JellyFish, BlowFish and FightingFish classes

Creating the PatrolEnemySet class

Creating the FishFood class

Creating the EnvironmentGenerator class

Modifying the GameState class

Game criticisms and expansion

Device deployment and publishing your games

Index

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset