O'Reilly logo

Foundation Game Design with HTML5 and JavaScript by Rex van der Spuy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required