The Room Adventure

HTML Version, All Book Features Included

Sample images

Game starts
in a random room
Coding for Kids
Helpful hint
Coding for Kids
Increased interactivity
Coding for Kids
Choose items to use
Coding for Kids
Oops! That won't work!
Coding for Kids
Updated descriptions
after fixing things
Coding for Kids
Found a piece of the
passcode and the exit!
Coding for Kids
Passcode keypad
Coding for Kids
You win!
Coding for Kids

Play the game here

The Room Adventure (HTML-With Features)

Here's the code

There are several files for the code, separated by type.

The JavaScript

The JavaScript for this larger version of the project is separated into separate files. You could, however, have all the code in these files contained inside one single full. I split them up to keep related functions together so it is easier to find each one.

JavaScript Code: The main JavaScript file that starts and manages the game

Open the code in a new tab

JavaScript Code: The functions related to displaying information onscreen

Open the code in a new tab

JavaScript Code: The functions related to the passcode feature

Open the code in a new tab

JavaScript Code: The functions related to the randomizers added to the game

Open the code in a new tab

JavaScript Code: These are all the rooms

Open the code in a new tab

The HTML

Open the code in a new tab

The CSS

Open the code in a new tab