Learn JavaScriptJavaScript 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.
Note: This is an intermediate coding challenge.
The Room Adventure Game
Travel from room to room in a house you create. Find items and use them to fix broken things.
Convert your game into HTML, adding colors, images, traveling through the house using buttons instead of typing!
About 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
- Dariak's Shadow: A Prequel
- Omnibus: Books 1-4
- Art Collection
- Choose-the-Fate Stories
- Garinor's Adventure: A Choose-the-Fate Novel
- Pre-selected paths
- The Castle Path
- The Labyrinth Path
- The Prince Path
- The Stone Path
- Enzor and the Volcano: The Book of Fire
- Calla and the Forest: The Book of Earth
- Laric and the Castle: The Book of Air
- Jenia and the Storm: The Book of Water
- Starsword Series
- Legend of the Starsword
- Lord of Time
- Coding for Kids: Learn JavaScript
- Build the Room Adventure Game
- Build Mini Apps
- Build the Catch the Culprit Game
- Kershin the Fire Mage
- Of Ages Past: A Poetry Collection
- A Shocking Journey