Point-and-click adventure games. Scenes with hotspots, verbs or a single smart action, walk-to with pathfinding on walkable areas, inventory items and combining them, puzzles with dependency charts so the game is always solvable, dialogue trees, hint systems, room transitions, cursor feedback and touch-friendly hotspot highlights, save/load, and a starter plan from the inventory, dialogue, ques...
Download skill (.zip) Files on GitHubPoint-and-click development
Core: explore scenes, talk to characters, collect and combine items, solve puzzles that make sense.
Starter template
A playable starter for the game-scaffolding template is in assets/starter/. Rooms and hotspots as data (rooms.js), walk-then-act, look vs use, an inventory, using items on hotspots, combining items, flags, two rooms, hotspot highlighting, escalating hints and autosave.
python3 <game-scaffolding>/scripts/scaffold.py my-game --title "My Game" --starter <this skill>/assets/starter
Controls: Click to walk and use, right-click to look. Touch: tap, or long-press to look. Space shows hotspots, H gives a hint. Esc pauses. All numbers to tune are in src/config.js; the gameplay is in src/scenes/play.js.
The whole puzzle chain was played from the cell to the exit.
Architecture (data-driven)
const ROOMS = {
kitchen: { bg: "kitchen.webp", walk: walkPolygonOrGrid, exits: [{ to: "hall", rect: [0, 200, 40, 200] }],
hotspots: [
{ id: "drawer", rect: [300, 220, 60, 30], look: "An old drawer.", use: (g) => g.flag("drawerOpen") ? "Empty." : (g.give("key"), g.set("drawerOpen")) },
{ id: "door", rect: [500, 100, 80, 180], useItem: { key: (g) => g.goto("cellar") } },
] },
};
- Interaction: one smart action (click = walk + interact) with an optional “look” (right-click / long-press). Verb menus only if they add puzzles.
- Walking: walkable area as a grid (pathfinding
astar+smooth) or polygon; the character walks, then acts. - Inventory (inventory-system) with item-on-hotspot and item-on-item combinations in a table:
COMBINE["rope+hook"] = "grapple". - Dialogue trees with dialogue-system; flags in shared game vars.
Puzzle design
- Draw a puzzle dependency chart (what unlocks what). Every puzzle has in-world logic and clues. Validate in tests by solving the chart from the start state.
- No dead ends: required items can’t be lost or used up wrongly.
- Hints: an optional hint system with escalating hints per puzzle (gentle → explicit).
- Hotspot highlight key (Space / a button) to avoid pixel hunting, which is essential on touch.
UX
Cursor changes over hotspots (desktop); on touch, tap shows the name first, second tap acts. Short, funny “look” texts for everything. Fast walking (double-click to run / skip walk). Autosave on room change; save slots.
Pitfalls
Moon logic (combinations nobody would guess), pixel hunting, long walks between rooms, missing feedback for wrong attempts (always respond with a line), and unsolvable states.