Lesson Notes — Document and Share Your Mod
Course 2: Game Design & Development Principles / Unit 6: Game Design Mechanics, Rules & Documentation / Lesson 13: Document and Share Your Mod
Lesson overview
A change nobody can understand is a change nobody can use. Game teams write down what they changed, why, and what happened. Today you finish your expansion file, write a short design document for it, and prepare it to share. This connects to Lesson 3, where you wrote Game Design Documents.
Look at a real changelog
Open the file CHANGES.md in your One Life folder. Each version lists what changed in plain language. Find the entry for version 138, which describes the probability rule for social decisions, and notice how it says what changed, how the rule works, and where in the code it lives. Your documentation should do the same.
Step 1: Finish your expansion file
The template already has a header comment at the top. Fill in every line of it:
// Name: (your expansion's name)
// Version: 1.0
// Tested on: One Life version (number)
// What it does: (one sentence)
// To turn off: remove your folder name from expansions/manifest.js, or delete your folder
Then check your file:
- Remove test code you no longer need, like the debug challenge from Lesson 11.
- Keep the logger only if you want it, and leave its comment so people know what it is.
- Put a comment next to every number you changed with the original value, like
// was 4. - Make sure your folder is named with the title of your expansion (no spaces), like
Popularity_Boost, and the file inside it is namedexpansion.js.
Step 2: Write the Expansion Design Document
Use the template on your handout. A good design document answers seven questions:
- What is it called and which version? Name it and note which One Life version you tested on.
- What was the problem? Say what felt wrong and how you know, from your playtests.
- What did you change? A table of old and new values or rules.
- What did you expect? Your hypothesis from Lesson 12.
- What happened? Your test results, with numbers from the logger.
- What are the side effects and limits? Be honest about what your expansion does not fix.
- How do you turn it off? This is called a rollback. Anyone should be able to undo your expansion. With an expansion folder, it is one step: delete your folder, or remove its name from
manifest.js.
Step 3: Share it
- Zip your expansion folder (for example
Popularity_Boost.zip) and submit it with your design document in Google Classroom under the assignment your teacher names. Submit only your own folder. Your expansion should not need any change to the game. - Your expansion runs only on your copy. Your teacher decides what, if anything, becomes part of a future build of One Life.
- Trade with a classmate. Unzip their folder into your
expansionsfolder, add its folder name to yourmanifest.js, read their document, and write one sentence about whether their results match what you see.
Compatibility
If two expansions change the same number, the one listed later in manifest.js wins. Because every expansion is wrapped in its own scope, two expansions can use the same variable names without breaking each other. When you test a classmate’s expansion, turn your own off first so you can tell which one is doing what. This is one of the reasons documentation matters.
Your turn
- Finish your expansion file with a complete header and original-value comments.
- Complete the Expansion Design Document.
- Submit both in Google Classroom.
- Load a classmate’s expansion and check their claims against what you see.
Check your understanding
- Why does an expansion need documentation?
- What is a rollback, and why should every expansion have one?
- What happens when two expansions change the same value?
Use this lesson’s Key Terms page to build your glossary.