9781430247166_CO-01.jpg

Chapter 5

Making Maps

In this chapter you’ll learn how to start making role-playing games, strategy games, and board games. You’re going to learn only one important new technique—how to use a two-dimensional (2D) array—but it’s going to totally blow the lid off of the kinds of games you’ll be able to make from now on. I’ll show you how to make a basic hybrid strategy/role-playing game from scratch that you’ll be able to use as a model for your own games.

Arrays inside arrays

In the previous chapter you saw how important arrays are for managing game information. In this chapter I’m going to show you how to make and use something called a 2D ...

Get Foundation Game Design with HTML5 and JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.