Appendix. The Crypt: a running example

Throughout this book, you develop a text-based adventure game called The Crypt. Players can explore locations on a map, moving from place to place and picking up items to help them solve challenges and get past obstacles. The last section of each chapter uses what you’ve learned to develop the game further. You’ll see how the programming concepts help you build the pieces that are then combined to produce a large program.

Game element

Task

JavaScript

Chapter

Players Deciding what information you need to know about each player Variables 2
  Collecting player information in one place Objects 3
  Displaying information about players on the console Functions 4–7
  Creating ...

Get Get Programming with JavaScript now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.