# Lesson Notes — Document and Share Your Mod

- Link: https://mrleffler.com/course-2-game-design-development-principles/unit-6-game-design-mechanics-rules-documentation/lesson-13-document-and-share-your-mod-c2u6l9/lesson-notes-c2u6l9/
- Published: 2026-12-06T00:34:06-05:00
- Author: matthew.leffler@jefferson.kyschools.us

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 named `expansion.js`.

## Step 2: Write the Expansion Design Document

Use the template on your handout. A good design document answers seven questions:

 1. **What is it called and which version?** Name it and note which One Life version
    you tested on.
 2. **What was the problem?** Say what felt wrong and how you know, from your playtests.
 3. **What did you change?** A table of old and new values or rules.
 4. **What did you expect?** Your hypothesis from Lesson 12.
 5. **What happened?** Your test results, with numbers from the logger.
 6. **What are the side effects and limits?** Be honest about what your expansion does
    not fix.
 7. **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 `expansions` folder, add
   its folder name to your `manifest.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

 1. Finish your expansion file with a complete header and original-value comments.
 2. Complete the Expansion Design Document.
 3. Submit both in Google Classroom.
 4. Load a classmate’s expansion and check their claims against what you see.

## Check your understanding

 1. Why does an expansion need documentation?
 2. What is a rollback, and why should every expansion have one?
 3. What happens when two expansions change the same value?

Use this lesson’s Key Terms page to build your glossary.
