Skip to content
GameGenresEspañol
Visual novel

Interactive comic

You play inside the panels of a comic. The story is told in pages, panels and speech balloons, and what you do changes the page itself, whether by rearranging panels, touching things inside them or completing small gestures that move the scene forward.

Also known as: interactive comic book, interactive graphic novel, comic book game

Defining mechanics

  • The page and the panel are the interface. The story moves from panel to panel, and the gap between panels marks the passing of time just as in a printed comic.
  • Changing the layout changes the story. Moving, rotating, overlapping or rearranging panels decides what happens next, as in Framed or Gorogoa.
  • Short gestures inside a panel that express what the character is going through, such as fitting together the pieces of a conversation in Florence.
  • Little or no text. The drawing, the framing and the music carry the story.

Gameplay loop

You read a page, find out what can be touched or moved, try an order or a gesture and watch the scene play out. If it goes wrong, you rearrange the page until the story carries on.

Our demo

Controls. Drag one panel onto another to swap them, or tap one and then another. Panels with a padlock cannot be moved. Play (or space) runs the page.

Open full screen

A three-page comic in which the order of the panels decides the story, in the style of Framed. You rearrange the panels, press Play and the hero lives each panel in that order. With a good order the hero escapes, and with a bad one the hero gets caught or falls, and you try again.

Made with Kaplay, in about 156 lines of JavaScript.

How it's made

  1. Panels and pages

    The whole comic lives in this data, separate from the engine. Each panel says what must have happened before (needs), what cannot be true (forbids), what it makes true (gives or toggle), what its balloon says on success or failure, and whether it is the goal. Each page is a list of panels in a wrong starting order and the locked positions. To build a new puzzle you only combine panels here.

    // ✏️ Every panel the comic can use. The story is played in the order of the page:
    //   needs: [...]    what must already have happened, or the panel fails with `fail`
    //   forbids: [...]  what must NOT be true, or the panel fails
    //   gives: [...]    what becomes true after this panel
    //   toggle: "x"     switches a fact on or off (a light switch)
    //   goal: true      reaching this panel wins the page
    const PANELS = {
      key: { draw: "key", gives: ["key"], say: { es: "¡Una llave!", en: "A key!" } },
      door: { draw: "door", needs: ["key"], gives: ["out"], say: { es: "Clic. Abierta.", en: "Click. Open." },
        fail: { es: "¡Está cerrada con llave!", en: "It's locked!" } },
      street: { draw: "street", needs: ["out"], goal: true, say: { es: "¡Libre!", en: "Free!" },
        fail: { es: "Sigo encerrado...", en: "Still locked in..." } },
      switch: { draw: "switch", toggle: "dark", say: { es: "Clac.", en: "Clack." } },
      guard: { draw: "guard", needs: ["dark"], gives: ["past"], say: { es: "Zzz...", en: "Zzz..." },
        fail: { es: "¡ALTO! ¡Te veo!", en: "HALT! I see you!" } },
      coat: { draw: "coat", gives: ["coat"], say: { es: "Un abrigo de vigilante.", en: "A guard's coat." } },
      gate: { draw: "gate", needs: ["past", "coat"], goal: true, say: { es: "Pase, compañero.", en: "Go ahead, mate." },
        fail: { es: "¿Y tú quién eres?", en: "And who are you?" } },
      stairs: { draw: "stairs", needs: ["past"], forbids: ["dark"], goal: true, say: { es: "¡Arriba y fuera!", en: "Up and out!" },
        fail: { es: "¡PATAPLÁN! No veo los escalones.", en: "CRASH! I can't see the steps." } },
    };
    
    // Each page: the panels in their starting (wrong) order, and which positions are locked.
    const PAGES = [
      { order: ["door", "key", "street"], locked: [] },
      { order: ["guard", "coat", "switch", "gate"], locked: [3] },
      { order: ["guard", "switch", "switch", "stairs"], locked: [3] },
    ];
  2. Setup

    The game is created on a paper-coloured background and the play button is defined (space or Enter). The time the hero spends in each panel sets the reading pace.

    kaplay({
      width: 640,
      height: 360,
      letterbox: true, pixelDensity,
      background: [235, 228, 210],
      buttons: { play: { keyboard: ["space", "enter"] } },
    });
    const INK = rgb(25, 25, 30);
    const STEP_TIME = 0.9; // seconds the hero spends in each panel
    const sleep = (s) => new Promise((r) => wait(s, r));
  3. Drawing inside the frame

    Each panel is a frame with a drawing made of simple shapes. Everything is added as a child of the frame, so the drawing travels with it when you drag it. The yellow balloon with shouted words marks a failure, a comics device that can be read at a glance.

    // Each panel is a frame with a drawing made of simple shapes. Everything is a child
    // of the frame, so the drawing travels with it when you drag it.
    function drawInside(frame, kind, w, h) {
      const d = (comps) => frame.add([...comps, color(INK)]);
      const floor = h - 30;
      frame.add([rect(w, 30), pos(0, floor), color(170, 160, 140)]);
      if (kind === "key") d([rect(36, 8), pos(w / 2 - 10, floor - 50)]), d([circle(10), pos(w / 2 - 14, floor - 46)]);
      if (kind === "door") d([rect(56, 110), pos(w / 2 - 28, floor - 110), outline(3)]), frame.add([circle(4), pos(w / 2 + 16, floor - 55), color(220, 180, 60)]);
      if (kind === "street") {
        for (const [x, top, bw] of [[0, 80, 40], [44, 50, 34], [w - 60, 70, 60]]) d([rect(bw, floor - top), pos(x, top)]);
        frame.add([circle(14), pos(w - 30, 30), color(250, 240, 180)]);
      }
      if (kind === "switch") d([rect(18, 30), pos(w / 2 - 9, 60)]), frame.add([rect(6, 12), pos(w / 2 - 3, 66), color(240, 240, 240)]);
      if (kind === "guard") d([rect(34, 70), pos(w - 54, floor - 70)]), d([circle(14), pos(w - 37, floor - 84)]), d([rect(36, 8), pos(w - 55, floor - 100)]);
      if (kind === "coat") d([rect(4, 100), pos(w / 2, floor - 100)]), d([polygon([vec2(-20, 0), vec2(20, 0), vec2(14, 60), vec2(-14, 60)]), pos(w / 2 + 2, floor - 90)]);
      if (kind === "gate") for (let x = 10; x < w; x += 18) d([rect(6, 120), pos(x, floor - 120)]);
      if (kind === "stairs") for (let i = 0; i < 5; i++) d([rect(w - i * 22, 16), pos(i * 22, floor - 16 * (i + 1))]);
    }
    
    function drawHero(frame, w, h, caught) {
      const hero = frame.add([pos(30, h - 30), "hero"]);
      hero.add([rect(20, 44), pos(0, -44), color(caught ? rgb(200, 50, 40) : rgb(40, 90, 200))]);
      hero.add([circle(11), pos(10, -56), color(INK)]);
    }
    
    // A speech balloon at the top of the panel.
    function balloon(frame, w, words, loud) {
      const b = frame.add([rect(w - 12, 44, { radius: 10 }), pos(6, 6), color(loud ? rgb(255, 230, 80) : rgb(255, 255, 255)), outline(2, INK), z(5), "balloon"]);
      b.add([text(t(words), { size: 13, font: FONT, width: w - 24, align: "center" }), pos((w - 12) / 2, 22), anchor("center"), color(INK)]);
    }
  4. The page and rearranging

    The page places the panels in slots. Dropping one panel onto another swaps their slots. If the pointer barely moved, it counts as a tap, and two taps in a row also swap, which makes the game comfortable on touch screens. Locked panels fix part of the story and narrow down the puzzle.

    const page = PAGES[pageIndex];
    const n = page.order.length;
    const W = n === 3 ? 180 : 136, H = 200, GAP = n === 3 ? 16 : 14;
    const X0 = (640 - (n * W + (n - 1) * GAP)) / 2;
    const slotX = (i) => X0 + i * (W + GAP);
    let playing = false;
    let selected = null; // tap one panel, then another, to swap them
    let dragging = null;
    
    add([text(t({ es: `Página ${pageIndex + 1} de ${PAGES.length}`, en: `Page ${pageIndex + 1} of ${PAGES.length}` }), { size: 18, font: FONT }), pos(X0, 14), color(INK)]);
    const hint = add([text(t({ es: "Arrastra las viñetas para cambiar el orden. Luego, Reproducir.", en: "Drag the panels to change their order. Then press Play." }), { size: 13, font: FONT }), pos(X0, 36), color(80, 70, 60)]);
    
    const frames = page.order.map((id, i) => {
      const f = add([rect(W, H), pos(slotX(i), 60), color(250, 248, 240), outline(4, INK), area(), "panel", { kind: id, slot: i, locked: page.locked.includes(i) }]);
      drawInside(f, PANELS[id].draw, W, H);
      if (f.locked) f.add([text("🔒", { size: 16, font: FONT }), pos(W - 24, H - 24)]);
      return f;
    });
    const bySlot = () => [...frames].sort((a, b) => a.slot - b.slot);
    const place = (f) => (f.pos = vec2(slotX(f.slot), 60));
    
    function swap(a, b) {
      if (!a || !b || a === b || a.locked || b.locked) return;
      [a.slot, b.slot] = [b.slot, a.slot];
      place(a), place(b);
    }
    
    onMousePress(() => {
      if (playing) return;
      const f = frames.find((p) => p.isHovering() && !p.locked);
      if (f) dragging = { f, from: mousePos(), offset: mousePos().sub(f.pos) };
    });
    onMouseMove(() => {
      if (dragging) (dragging.f.pos = mousePos().sub(dragging.offset)), (dragging.f.z = 10);
    });
    onMouseRelease(() => {
      if (!dragging) return;
      const { f, from } = dragging;
      dragging = null;
      f.z = 0;
      if (mousePos().dist(from) < 8) { // a tap, not a drag
        place(f);
        if (selected) swap(selected, f), (selected.outline.color = INK), (selected = null);
        else (selected = f), (f.outline.color = rgb(230, 140, 20));
        return;
      }
      const target = frames.find((p) => p !== f && mousePos().x > p.pos.x && mousePos().x < p.pos.x + W);
      swap(f, target);
      place(f);
    });
  5. Playback

    On playback, the hero enters each panel in page order. A set keeps what has already happened, and each panel checks its conditions: if they fail, the failure balloon appears and you can rearrange right away; if not, it adds its facts. When the light goes out, the following panels darken, so the state shows without text. Reaching the goal turns the page.

    // The hero lives the panels in page order. Each panel checks what has happened so far.
    async function play() {
      if (playing) return;
      playing = true;
      if (selected) (selected.outline.color = INK), (selected = null);
      for (const tag of ["balloon", "hero", "shade"]) get(tag, { recursive: true }).forEach(destroy); // children of the frames
      const state = new Set();
      for (const f of bySlot()) {
        const p = PANELS[f.kind];
        f.outline.color = rgb(230, 140, 20);
        if (state.has("dark")) f.add([rect(W, H), color(0, 0, 30), opacity(0.55), "shade"]);
        const ok = !p.needs?.some((x) => !state.has(x)) && !p.forbids?.some((x) => state.has(x));
        drawHero(f, W, H, !ok);
        await sleep(STEP_TIME * 0.4);
        balloon(f, W, ok ? p.say : p.fail, !ok);
        await sleep(STEP_TIME);
        f.outline.color = INK;
        if (!ok) return retry(t({ es: "Así no termina bien. Prueba otro orden.", en: "That doesn't end well. Try another order." }));
        p.gives?.forEach((x) => state.add(x));
        if (p.toggle) state.has(p.toggle) ? state.delete(p.toggle) : state.add(p.toggle);
        if (p.goal) return pageIndex + 1 < PAGES.length ? go("game", pageIndex + 1) : go("end");
      }
      retry(t({ es: "La historia se quedó a medias.", en: "The story was left unfinished." }));
    }
    
    function retry(message) {
      hint.text = message;
      hint.color = rgb(190, 40, 30);
      playing = false;
    }
    
    const button = add([rect(180, 40, { radius: 8 }), pos(320, 310), anchor("center"), color(40, 90, 200), area(), "play"]);
    button.add([text(t({ es: "▶ Reproducir", en: "▶ Play" }), { size: 18, font: FONT }), anchor("center")]);
    button.onClick(play);
    onButtonPress("play", play);
  6. Scenes

    Title, game and end. The game scene receives the page number, so turning the page means entering the same scene again with another number.

    function screen(title, subtitle, next) {
      add([text(title, { size: 32, font: FONT, align: "center" }), pos(center().sub(0, 50)), anchor("center"), color(INK)]);
      add([text(subtitle, { size: 16, font: FONT, align: "center", width: 560 }), pos(center().add(0, 30)), anchor("center"), color(80, 70, 60)]);
      let ready = false; // half a second so a hasty click does not skip the screen
      wait(0.5, () => (ready = true));
      const goNext = () => ready && next();
      onButtonPress("play", goNext);
      onClick(goNext);
    }
    
    scene("title", () => screen(t({ es: "La gran fuga en viñetas", en: "The great escape in panels" }),
      t({
        es: "Un cómic en el que el orden de las viñetas decide la historia. Arrastra las viñetas (o toca dos para cambiarlas) y pulsa Reproducir. Las del candado no se mueven.\nHaz clic o pulsa espacio para empezar.",
        en: "A comic where the order of the panels decides the story. Drag the panels (or tap two to swap them) and press Play. Locked panels do not move.\nClick or press space to start.",
      }),
      () => go("game", 0)));
    
    scene("end", () => screen(t({ es: "¡Fuga completada!", en: "Escape complete!" }),
      t({ es: "Tres páginas, tres órdenes correctos. Haz clic o pulsa espacio para volver a empezar.", en: "Three pages, three right orders. Click or press space to start again." }),
      () => go("game", 0)));
    
    go("title");

What we simplified

  • The panels are still drawings made of simple shapes. In Framed they are animated, and the same panel shows different actions depending on what happened before.
  • Only the order changes. You cannot rotate panels or use the same one twice, two other ideas from Framed.
  • The story is resolved with a list of facts (key, darkness, coat) and there are no alternative endings, only winning the page or retrying it.

To modify it

  • Add a new panel in the panels region, for example a dog that wakes the guard if you pass before giving it a bone, and a fourth page that uses it.
  • Make a page with two winning orders that lead to different endings, storing which goal was reached and showing it on the end screen.
  • Show a different drawing in each panel depending on the state, as Framed does, for example the guard awake or asleep.
Full code
// Interactive comic demo
// Engine: Kaplay 3001 (https://kaplayjs.com). MIT licence.
import kaplay from "../../vendor/kaplay.mjs";
import { t, FONT, pixelDensity } from "../common.js";

// #region panels
// ✏️ Every panel the comic can use. The story is played in the order of the page:
//   needs: [...]    what must already have happened, or the panel fails with `fail`
//   forbids: [...]  what must NOT be true, or the panel fails
//   gives: [...]    what becomes true after this panel
//   toggle: "x"     switches a fact on or off (a light switch)
//   goal: true      reaching this panel wins the page
const PANELS = {
  key: { draw: "key", gives: ["key"], say: { es: "¡Una llave!", en: "A key!" } },
  door: { draw: "door", needs: ["key"], gives: ["out"], say: { es: "Clic. Abierta.", en: "Click. Open." },
    fail: { es: "¡Está cerrada con llave!", en: "It's locked!" } },
  street: { draw: "street", needs: ["out"], goal: true, say: { es: "¡Libre!", en: "Free!" },
    fail: { es: "Sigo encerrado...", en: "Still locked in..." } },
  switch: { draw: "switch", toggle: "dark", say: { es: "Clac.", en: "Clack." } },
  guard: { draw: "guard", needs: ["dark"], gives: ["past"], say: { es: "Zzz...", en: "Zzz..." },
    fail: { es: "¡ALTO! ¡Te veo!", en: "HALT! I see you!" } },
  coat: { draw: "coat", gives: ["coat"], say: { es: "Un abrigo de vigilante.", en: "A guard's coat." } },
  gate: { draw: "gate", needs: ["past", "coat"], goal: true, say: { es: "Pase, compañero.", en: "Go ahead, mate." },
    fail: { es: "¿Y tú quién eres?", en: "And who are you?" } },
  stairs: { draw: "stairs", needs: ["past"], forbids: ["dark"], goal: true, say: { es: "¡Arriba y fuera!", en: "Up and out!" },
    fail: { es: "¡PATAPLÁN! No veo los escalones.", en: "CRASH! I can't see the steps." } },
};

// Each page: the panels in their starting (wrong) order, and which positions are locked.
const PAGES = [
  { order: ["door", "key", "street"], locked: [] },
  { order: ["guard", "coat", "switch", "gate"], locked: [3] },
  { order: ["guard", "switch", "switch", "stairs"], locked: [3] },
];
// #endregion

// #region setup
kaplay({
  width: 640,
  height: 360,
  letterbox: true, pixelDensity,
  background: [235, 228, 210],
  buttons: { play: { keyboard: ["space", "enter"] } },
});
const INK = rgb(25, 25, 30);
const STEP_TIME = 0.9; // seconds the hero spends in each panel
const sleep = (s) => new Promise((r) => wait(s, r));
// #endregion

// #region drawing
// Each panel is a frame with a drawing made of simple shapes. Everything is a child
// of the frame, so the drawing travels with it when you drag it.
function drawInside(frame, kind, w, h) {
  const d = (comps) => frame.add([...comps, color(INK)]);
  const floor = h - 30;
  frame.add([rect(w, 30), pos(0, floor), color(170, 160, 140)]);
  if (kind === "key") d([rect(36, 8), pos(w / 2 - 10, floor - 50)]), d([circle(10), pos(w / 2 - 14, floor - 46)]);
  if (kind === "door") d([rect(56, 110), pos(w / 2 - 28, floor - 110), outline(3)]), frame.add([circle(4), pos(w / 2 + 16, floor - 55), color(220, 180, 60)]);
  if (kind === "street") {
    for (const [x, top, bw] of [[0, 80, 40], [44, 50, 34], [w - 60, 70, 60]]) d([rect(bw, floor - top), pos(x, top)]);
    frame.add([circle(14), pos(w - 30, 30), color(250, 240, 180)]);
  }
  if (kind === "switch") d([rect(18, 30), pos(w / 2 - 9, 60)]), frame.add([rect(6, 12), pos(w / 2 - 3, 66), color(240, 240, 240)]);
  if (kind === "guard") d([rect(34, 70), pos(w - 54, floor - 70)]), d([circle(14), pos(w - 37, floor - 84)]), d([rect(36, 8), pos(w - 55, floor - 100)]);
  if (kind === "coat") d([rect(4, 100), pos(w / 2, floor - 100)]), d([polygon([vec2(-20, 0), vec2(20, 0), vec2(14, 60), vec2(-14, 60)]), pos(w / 2 + 2, floor - 90)]);
  if (kind === "gate") for (let x = 10; x < w; x += 18) d([rect(6, 120), pos(x, floor - 120)]);
  if (kind === "stairs") for (let i = 0; i < 5; i++) d([rect(w - i * 22, 16), pos(i * 22, floor - 16 * (i + 1))]);
}

function drawHero(frame, w, h, caught) {
  const hero = frame.add([pos(30, h - 30), "hero"]);
  hero.add([rect(20, 44), pos(0, -44), color(caught ? rgb(200, 50, 40) : rgb(40, 90, 200))]);
  hero.add([circle(11), pos(10, -56), color(INK)]);
}

// A speech balloon at the top of the panel.
function balloon(frame, w, words, loud) {
  const b = frame.add([rect(w - 12, 44, { radius: 10 }), pos(6, 6), color(loud ? rgb(255, 230, 80) : rgb(255, 255, 255)), outline(2, INK), z(5), "balloon"]);
  b.add([text(t(words), { size: 13, font: FONT, width: w - 24, align: "center" }), pos((w - 12) / 2, 22), anchor("center"), color(INK)]);
}
// #endregion

scene("game", (pageIndex) => {
  // #region page
  const page = PAGES[pageIndex];
  const n = page.order.length;
  const W = n === 3 ? 180 : 136, H = 200, GAP = n === 3 ? 16 : 14;
  const X0 = (640 - (n * W + (n - 1) * GAP)) / 2;
  const slotX = (i) => X0 + i * (W + GAP);
  let playing = false;
  let selected = null; // tap one panel, then another, to swap them
  let dragging = null;

  add([text(t({ es: `Página ${pageIndex + 1} de ${PAGES.length}`, en: `Page ${pageIndex + 1} of ${PAGES.length}` }), { size: 18, font: FONT }), pos(X0, 14), color(INK)]);
  const hint = add([text(t({ es: "Arrastra las viñetas para cambiar el orden. Luego, Reproducir.", en: "Drag the panels to change their order. Then press Play." }), { size: 13, font: FONT }), pos(X0, 36), color(80, 70, 60)]);

  const frames = page.order.map((id, i) => {
    const f = add([rect(W, H), pos(slotX(i), 60), color(250, 248, 240), outline(4, INK), area(), "panel", { kind: id, slot: i, locked: page.locked.includes(i) }]);
    drawInside(f, PANELS[id].draw, W, H);
    if (f.locked) f.add([text("🔒", { size: 16, font: FONT }), pos(W - 24, H - 24)]);
    return f;
  });
  const bySlot = () => [...frames].sort((a, b) => a.slot - b.slot);
  const place = (f) => (f.pos = vec2(slotX(f.slot), 60));

  function swap(a, b) {
    if (!a || !b || a === b || a.locked || b.locked) return;
    [a.slot, b.slot] = [b.slot, a.slot];
    place(a), place(b);
  }

  onMousePress(() => {
    if (playing) return;
    const f = frames.find((p) => p.isHovering() && !p.locked);
    if (f) dragging = { f, from: mousePos(), offset: mousePos().sub(f.pos) };
  });
  onMouseMove(() => {
    if (dragging) (dragging.f.pos = mousePos().sub(dragging.offset)), (dragging.f.z = 10);
  });
  onMouseRelease(() => {
    if (!dragging) return;
    const { f, from } = dragging;
    dragging = null;
    f.z = 0;
    if (mousePos().dist(from) < 8) { // a tap, not a drag
      place(f);
      if (selected) swap(selected, f), (selected.outline.color = INK), (selected = null);
      else (selected = f), (f.outline.color = rgb(230, 140, 20));
      return;
    }
    const target = frames.find((p) => p !== f && mousePos().x > p.pos.x && mousePos().x < p.pos.x + W);
    swap(f, target);
    place(f);
  });
  // #endregion

  // #region playback
  // The hero lives the panels in page order. Each panel checks what has happened so far.
  async function play() {
    if (playing) return;
    playing = true;
    if (selected) (selected.outline.color = INK), (selected = null);
    for (const tag of ["balloon", "hero", "shade"]) get(tag, { recursive: true }).forEach(destroy); // children of the frames
    const state = new Set();
    for (const f of bySlot()) {
      const p = PANELS[f.kind];
      f.outline.color = rgb(230, 140, 20);
      if (state.has("dark")) f.add([rect(W, H), color(0, 0, 30), opacity(0.55), "shade"]);
      const ok = !p.needs?.some((x) => !state.has(x)) && !p.forbids?.some((x) => state.has(x));
      drawHero(f, W, H, !ok);
      await sleep(STEP_TIME * 0.4);
      balloon(f, W, ok ? p.say : p.fail, !ok);
      await sleep(STEP_TIME);
      f.outline.color = INK;
      if (!ok) return retry(t({ es: "Así no termina bien. Prueba otro orden.", en: "That doesn't end well. Try another order." }));
      p.gives?.forEach((x) => state.add(x));
      if (p.toggle) state.has(p.toggle) ? state.delete(p.toggle) : state.add(p.toggle);
      if (p.goal) return pageIndex + 1 < PAGES.length ? go("game", pageIndex + 1) : go("end");
    }
    retry(t({ es: "La historia se quedó a medias.", en: "The story was left unfinished." }));
  }

  function retry(message) {
    hint.text = message;
    hint.color = rgb(190, 40, 30);
    playing = false;
  }

  const button = add([rect(180, 40, { radius: 8 }), pos(320, 310), anchor("center"), color(40, 90, 200), area(), "play"]);
  button.add([text(t({ es: "▶ Reproducir", en: "▶ Play" }), { size: 18, font: FONT }), anchor("center")]);
  button.onClick(play);
  onButtonPress("play", play);
  // #endregion
});

// #region scenes
function screen(title, subtitle, next) {
  add([text(title, { size: 32, font: FONT, align: "center" }), pos(center().sub(0, 50)), anchor("center"), color(INK)]);
  add([text(subtitle, { size: 16, font: FONT, align: "center", width: 560 }), pos(center().add(0, 30)), anchor("center"), color(80, 70, 60)]);
  let ready = false; // half a second so a hasty click does not skip the screen
  wait(0.5, () => (ready = true));
  const goNext = () => ready && next();
  onButtonPress("play", goNext);
  onClick(goNext);
}

scene("title", () => screen(t({ es: "La gran fuga en viñetas", en: "The great escape in panels" }),
  t({
    es: "Un cómic en el que el orden de las viñetas decide la historia. Arrastra las viñetas (o toca dos para cambiarlas) y pulsa Reproducir. Las del candado no se mueven.\nHaz clic o pulsa espacio para empezar.",
    en: "A comic where the order of the panels decides the story. Drag the panels (or tap two to swap them) and press Play. Locked panels do not move.\nClick or press space to start.",
  }),
  () => go("game", 0)));

scene("end", () => screen(t({ es: "¡Fuga completada!", en: "Escape complete!" }),
  t({ es: "Tres páginas, tres órdenes correctos. Haz clic o pulsa espacio para volver a empezar.", en: "Three pages, three right orders. Click or press space to start again." }),
  () => go("game", 0)));

go("title");
// #endregion

Design challenges

  • Making it clear what is interactive without filling the page with arrows or instructions, which would spoil the artwork.
  • Making every possible panel order produce a coherent result, even if it is a failure. An order that produces nothing is more confusing than one that goes wrong.
  • Balancing reading and play. If the interactions are hard the story loses its rhythm, and if they are trivial the page feels like a comic with buttons.
  • Adapting the layout to different screens, because a page designed in landscape does not fit the same way on a phone held upright.
  • Keeping the speech balloons separate from the artwork, so it can be translated without redrawing.

History

  1. 1995
    Comix Zone

    In Sega's Comix Zone, a comic artist is trapped in his own comic and fights his way from panel to panel. It is a forerunner of the genre, because the page is already the playing field.

    Comix Zone (Wikipedia)
  2. 1996
    OriginOpération Teddy Bear

    Opération Teddy Bear, an educational CD-ROM game built from comic pages, is the first to be presented as an "interactive comic". The term was coined by its author, Édouard Lussan.

    Opération Teddy Bear (Wikipedia)
  3. 2001
    Max Payne

    Remedy's Max Payne tells its story through graphic novel panels and the protagonist's voice-over. It shows that the language of comics can carry the story inside an action game.

    Max Payne (video game) (Wikipedia)
  4. 2014
    Framed

    In Loveshack's Framed, you rearrange the panels of an animated comic so the protagonist escapes the police. Hideo Kojima named it his game of the year.

    Framed (video game) (Wikipedia)
  5. 2017
    Gorogoa

    Jason Roberts' Gorogoa is played with four illustrations in a two-by-two grid that you explore, stack and fit together. It began as a failed attempt at an interactive graphic novel and took nearly six years to finish.

    Gorogoa (Wikipedia)
  6. 2018
    Florence

    Florence, by the studio Mountains, tells a love story in twenty short chapters, almost without text, through small games inside the panels. Its designer wanted something close to a comic book or a silent film.

    Florence (video game) (Wikipedia)

Reference games

1995

Comix Zone

Sega Technical Institute. Sega Genesis / Mega Drive

A comic artist gets trapped inside his own comic and has to fight his way out panel by panel. Across six levels he defeats enemies and sometimes solves puzzles to move on to the next panel.

1996

Opération Teddy Bear

Index+ (Édouard Lussan). CD-ROM

A CD-ROM comic set in Normandy in July 1944, where a clandestine network hides Nazi plans in Paul's teddy bear. You move through its animated pages, with maps and archive photos, and learn about the history of the Second World War.

2001

Max Payne

Remedy Entertainment. Windows, PlayStation 2, Xbox

A New York police officer investigates the murder of his family in a noir story told through graphic novel panels. It was one of the first games with bullet time, which slows the action down so you can aim while diving.

2014

Framed

Loveshack Entertainment. iOS, Android

A wordless animated noir comic in which you rearrange the panels so the protagonist gets past the police. Each order tells a different story, and almost all of them end with him arrested.

2017

Gorogoa

Jason Roberts. Windows, Nintendo Switch, iOS

Four hand-drawn illustrations in a two-by-two grid. You zoom into them, lift them out of place and lay them over one another until their drawings line up and form a new path.

2018

Florence

Mountains. iOS, Android

Florence, aged 25, meets Krish, a cellist, and their relationship is told in panels with almost no text. Her routine, their conversations and moving in together are played through small gestures inside the panels, and it takes about half an hour to finish.

Exercise

Draw a three-panel strip on paper that tells a small escape, and think about what happens if you swap two of the panels. Then add a new panel in the demo's «panels» region and decide which position it must take for the story to end well.

Sources