Learn JavaScript
JavaScript is the brains behind the internet, updating websites, running games, and so much more. This book teaches you the basics of coding in JavaScript by creating The Room Adventure.
The Room Adventure Game
The game starts as a text-based adventure, going from room to room in a house you create. You find items and use them to fix broken things in other rooms.
Once the game structure is set, you can convert your game into HTML, adding colors, images, and you can travel through your house using buttons instead of typing!
You can easily share your creations with friends and family!
This Book
The focus of the book is to teach you standard coding concepts that stretch to any programming language. So even if you switch to another language later, the lessons you learn in this book will benefit you.
We talk about about proper syntax for JavaScript, variable types, computer decision-making, loops, functions, and so much more.
In order to code, you only need simple text files. To test your code, you need access to an internet browser, but you don't need internet access. Chapter 1 covers the setup you need to get started.
This book is written by a middle school science teacher with over 17 years of experience working with kids. The format of the book is a step-by-step guide through the process with repetition and contains all the code available in the back of the book. A short reference guide is also included, as well as additional add-on features for the game on an exclusive website.
Start Your Adventure Today!
Chapter Breakdown - Chapter 1 introduces you to the book itself and gets you set up and ready to code.
- Chapter 2 gets your house set up where you can travel from room to room.
- Chapter 3 completes the main game, letting the player fix things around the house and earn points.
- Chapter 4 adjusts your game so we can add more features.
- Chapter 5 has a bunch of new optional features you can add to your game, including randomizing where things are found.
- Chapter 6 walks you through converting your game to HTML and styling it with CSS.
- Chapter 7 are some final thoughts on the project, including how to convert your Room Adventure into a Fantasy Quest.
- Chapter 8 is a condensed JavaScript crash course and a quick reference syntax guide, helpful for all your future coding adventures.
- Chapter 9 has all the game code for the text version of the game completed in chapter 3 and for the fully featured HTML version.
Also available from Stephen J. Wolf
- Red Jade Fantasy Series
- Journeys in Kallisor
- The Shattered Shards
- The Assembly
- The Forgotten Tribe
- Delminor's Trials: A Prequel
- Garinor's Adventure
- A Choose-the-Fate Novel
- Pre-selected paths
- The Castle Path
- The Labyrinth Path
- The Prince Path
- The Stone Path
- Coding for Kids
- Learn JavaScript: Build the Room Adventure Game
- Learn JavaScript: Build Mini Apps (Forthcoming)
- A Shocking Journey
- Learn about electricity and magnetism through analogies.
About the Author: Stephen J. Wolf earned his PhD in science education in 2006 and has worked as a middle-school science teacher since 2001. His passion for chemistry and physics was inspired by watching Mr. Wizard's World as a child and learning that many of life's biggest mysteries could be explained through science. When he isn't helping his students discover logic and wonder in the classroom, Wolf enjoys spending time with his husband, Kevin, and watching Doctor Who with their two cats, Merlin and Monty. Wolf is the author of the Red Jade fantasy book series (tinyurl.com/redjadeseries). He currently resides in New York, and you can visit him online at StephenJWolf.com.