# Pictures & Audio Workshop: A Beacon That Follows Real State

## Open the complete example

**The Beacon Pictures & Audio Workshop** is a complete two-room game with one physical battery, a generator, a gated route and a checked **100-point ending**. Its diagrams use a Light background. Its small original WAV signals are optional. There are no enemies, weapons, ammunition, healing items, timers, random gates or external media hosts.

- [Play the Light workshop](https://app.tagmaker.io/examples/media-workshop.html).
- [Download the editable project](https://app.tagmaker.io/examples/media-workshop.tagm), then use **Open Project**.
- [Download this walkthrough](https://app.tagmaker.io/examples/media-workshop.md).

Open an editable copy from **Sample Projects → Feature Workshops** to inspect the pictures, audio and rules behind the playable example.

## Finish the puzzle

```text
take battery
use generator
east
use beacon
```

The battery starts on the workshop bench. Taking it selects the empty-bench picture because the inventory condition becomes true. Using the generator while carrying it installs that one battery, sets `power_ready` and opens the real east exit. The powered circuit picture, new music selection and generator ambience all follow that state. Going east selects the beacon room picture. Using the beacon records `signal_sent`, plays its authored cue, awards 100 points and ends the game once.

Every essential clue appears in text. Audio starts off. In the player’s **Audio** controls, enable it if desired and adjust the separate music and effects volumes. Sound cues also print a readable `[Sound: ...]` message. A browser may require the explicit **Retry audio** button before playback begins. Narrator remains a separate preference.

## Compare the player layouts and Words

This same workshop also demonstrates the saved [Player Appearance](../player-appearance.md) settings. It starts in **Modern Adventure**, **Light**, with a wide scene header set to **Fit whole picture**. The original public workshop diagrams are reused unchanged; fitting them does not add new game state or replace the native pictures.

1. Open **Settings → Layout** while playing and switch between **Classic Console**, **Illustrated Adventure** and **Modern Adventure**. The first emphasizes text, the second gives the illustration more room, and Modern keeps more tools at a glance. The room, battery, score, transcript and puzzle stay the same.
2. Try **A−**, **A+**, font, spacing or reading width. These controls take no game turn. **Reset to creator defaults** restores this workshop's Modern/Light defaults and clears only its presentation preferences; it does not erase player save slots.
3. Open **Words**. **BATTERY** and **GENERATOR** are available in the starting workshop. Selecting one inserts its authored command for review. It does not run until you press Enter.
4. Open **More → Read instructions**. This is an **Insert** shortcut: it puts `read instructions` in the command field and waits for you. In the creator's Player Appearance editor, inspect its **After visiting a room** gate for `workshop`.
5. Take the battery and connect the generator. **POWER READY** and **Inspect circuit** now appear because the actual `power_ready` flag became true. Merely opening Words cannot set it.
6. Go east. **BEACON** and **Send beacon…** appear after the first visit to `beacon_room`. Both insert `use beacon`; pressing Enter still performs the real ending action. Before visiting, these entries are absent.
7. Use **Explain these words** only when you want descriptions. It opens a separate explanation dialog and leaves the transcript clear. The compact reference itself shows words or phrases.

The default map reveals discovered rooms. Use its enlarged or optional detached view to follow the same running game. Restarting resets discovery and power, so the later Words/shortcuts disappear again. Save/Load/Undo continue to restore actual game state; a layout or reading change does not replace that progress. All three checked winning routes below remain unchanged.

## Inspect the authored pictures

Open the workshop room’s **Room Picture** controls. Its default picture and ordered variants are:

| Priority | Picture | Actual condition | Meaning |
|---|---|---|---|
| 1 | Generator connected | Story State `power_ready` equals true | The battery is installed and the east route is open. |
| 2 | Battery carried | Inventory contains `battery` | The tray is empty because the player carries the battery. |
| Fallback | Battery on the bench | No variant matches | The generator is disconnected and the battery is available on the bench. |

The first matching variant wins. The powered variant comes first so it remains authoritative after installation. In the beacon room, `signal_sent` selects the final accepted-signal picture; otherwise its default picture shows the beacon ready to use. Each image has its own text alternative. The underlying assets remain static images; the authored condition chooses which one the player sees.

Try `TAKE BATTERY`, `DROP BATTERY`, then `TAKE BATTERY` again before connecting the generator. The real object location and the diagram agree. Picking up the battery alone gives no points and opens no exit.

## Inspect the authored audio

Open **Audio Setup** in the game setup controls. All five original WAV assets are embedded in the project. There are three loop rows:

| Ordered loop | Channel | Scope and condition |
|---|---|---|
| Connected music | Music | Every room, while `power_ready` is true. |
| Quiet music fallback | Music | Every room, no conditions. It is below connected music. |
| Workshop generator ambience | Ambience | Workshop only, while `power_ready` is true. |

One matching music loop and one matching ambience loop may play together. Moving east stops the workshop ambience. Returning west selects it again. Unchanged loop selections keep their play position across ordinary commands. The engine resolves these selections using the same conditions as Story Rules and pictures.

The three cue rows teach distinct triggers:

| Cue | Trigger | Completion proof and readable alternative |
|---|---|---|
| Generator connected | Condition | The false-to-true change of `power_ready`; a rising-chime message. |
| Arrive at the beacon | Room entry, once | Actual first entry to `beacon_room`; a beacon-ready message. |
| Signal accepted | Manual, once | The successful beacon Story Rule explicitly plays this cue; a two-note acceptance message. |

Inspect **Story States & Rules** to see the generator’s inventory check, its physical battery move, the repeat response and the final beacon rule’s **Play sound cue** action. All cue rows have readable labels. A completion cue belongs to successful authored behavior; merely attempting an action does not prove success.

## Test safe failure and repeat behavior

Before taking the battery:

```text
use generator
east
```

The generator refuses without changing power, score, battery location or audio selection. The east route remains closed. After connecting it, repeat `USE GENERATOR` and `LOOK`. The generator remains powered, one battery remains installed, and the startup cue does not replay. Visit the beacon room, go west, then east again: the room-entry cue is once only. Repeating the final action cannot award another 100 points.

## Test recovery

Before installation:

```text
take battery
save
use generator
undo
```

Undo restores the carried battery, empty-bench picture, quiet music and incomplete puzzle. It does not replay the old chime. Connect the generator again: that new successful action can produce its chime again because Undo restored its saved cue guard too. After making more progress, `LOAD` restores the same saved physical state and presentation without replaying the prior effect.

Also test `SAVE` in the beacon room before sending. Finish, then `UNDO` or `LOAD`. The ready-beacon picture, zero score and unfinished ending return. Sending again awards 100 points once in that restored timeline. `RESTART` resets the entire puzzle, pictures, loop selection and cue guards. Player recovery changes game state; it does not turn optional audio on.

## Three winning routes

Try these routes to compare direct play with failed requirements, aliases and repeated actions.

1. **Direct repair:** `TAKE BATTERY`, `USE GENERATOR`, `EAST`, `USE BEACON`.
2. **Instructions and safe failure:** `READ INSTRUCTIONS`, `USE GENERATOR`, `EAST`, `TAKE BATTERY`, `USE GENERATOR`, `EAST`, `USE BEACON`.
3. **Drop, recover and repeat:** `GET CELL`, `DROP BATTERY`, `USE GENERATOR`, `TAKE BATTERY`, `USE GENERATOR`, `USE GENERATOR`, `LOOK`, `EAST`, `WEST`, `EAST`, `USE BEACON`.

Each route finishes the same small puzzle. Check the closed exit, missing-battery refusal, installed battery, selected picture, audio cue text and single reward. Use the recovery checks above to inspect Save/Load/Undo/restart too. Adapt the same checks to your own game; completing this workshop does not test your game's routes.
