Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Windows 8 Game Development

You're reading from   Learning Windows 8 Game Development Windows 8 brings touchscreens to the tablet and PC. This book will show you how to develop games for both by following clear, hands-on examples. Takes your C++ skills into exciting areas of 3D development.

Arrow left icon
Product type Paperback
Published in Oct 2013
Publisher Packt
ISBN-13 9781849697446
Length 244 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Michael Quandt Michael Quandt
Author Profile Icon Michael Quandt
Michael Quandt
Arrow right icon
View More author details
Toc

Structuring a game

One of the first things you need to remember when working with game development is that there are many ways to structure games, and each has its own benefits and problems. Designing the right architecture for your game can lead to many benefits, and just as when creating any other application you should consider your options and how well they fit the type of game you are creating. Let's take a look at some widely-used options.

Traditional object-oriented design

One way to design games is to use the traditional object-oriented approach. Here we treat the different parts of the game as objects that represent what they represent in the game. For example, a ship in the game would consist of a Ship class, or a bullet in the game would consist of a Bullet class. By utilizing inheritance, different types of Ship objects can be provided, and a common code can be reused by each type, reducing the workload required to develop the functionality.

Let's take a look at how...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime