This section covers the basic of how to play the game.
At the bottom of each section, there is one or more GOTO links that direct you to the next "page". Because this is a webpage, you can simply click on the link but you can imagine that if this was a real book, you'd have to actually turn pages to get to the next section.
The following is an example of a simple link that will take you to the starting page.
As you progress through this book, you will gain various badges which will affect which paths you're allowed to take. For example:
Congratulations! You've earned the Platform I - Base badge!
As you collect these badges, be sure to mark your character sheet. There are GOTO lines that require specific badges so you'll need to keep careful track of your accomplishments.
During the adventure, you will need to edit your code. This section describes the format used to specify the changes you need to make.
New lines that you need to add are marked with a green plus ('+') sign. Sufficient context (shown in gray) is provided so that you can see exactly where the new line of code needs to be added.
Lines that you need to delete are marked with a red 'x'. As with adding lines, context is provided so that you see exactly which line should be deleted.
A line which needs to be modified is presented as a line being deleted and a line being added. This allows you to see the before and after content of the line.
It's often too cumbersome to include the entire function context, so the code will sometimes use ellipses (three periods) to indicate that you have extra code there that is not being shown.
As in the following example, where the init_game() function has a lot of code that the beginning, but the part that we're interested in doesn't start until around _game.keymap.
To ensure that everyone puts the functions in the same order, this book also provides neighboring function context as needed.
In the following example, the new draw_platforms() function should be placed between the existing erase() and draw_player() functions.