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 47
  Creating a list ...

Get Get Programming with 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.