| Deliverable | What it is |
|---|---|
| Repo | Your same edp-lab fork URL on GitHub |
| README | A My Interiors section (building · enter · exit · what you can do inside) |
| Commits | 3+ meaningful commits: enter path, exit path, README |
| Live demo | 2–3 minutes: a classmate enters and leaves without you touching the keyboard |
| Paper drill | enterInterior / exitInterior from memory + which events fire them |
onClick (check the Event trace)enterInterior / exitInterior from memory + one sentence on what fires each| Criteria | What the grader checks | Pts |
|---|---|---|
| Enter | Double-click your building → inside its room | 10 |
| Exit | Esc returns to the island; camera orbits again; badge resets | 10 |
| Mode guards | No re-enter inside · R/B/dblclick island-only · midterm click still works | 10 |
| Mode visible | Badge / HUD shows Island vs Inside: … | 5 |
| Event flow (CLO3) | Explains target vs currentTarget and why Exit must not bubble into onClick | 5 |
| Git + README | 3+ meaningful commits · My Interiors section | 5 |
| Paper drill | Both functions from memory + which events fire them | 5 |
Island.| Symptom | Cause |
|---|---|
| Double-click shows the island from far away | The interior: key doesn't match makeInterior('key', …) |
| Camera keeps orbiting inside | animate() is missing the if (mode === 'inside') branch |
| Sun glows through the walls | Sun/moon sprites not hidden in enterInterior |
| R or B changes things inside | No if (mode === 'inside') return; after the Escape check |
| Exit click wipes the HUD | Click listener on window instead of the canvas |
| Still the Cafe from the demo | Make your building enterable — renaming the Cafe isn't yours |
Enter canteen on double-click · Exit on Escape and HUD button · README: My Interiors