Pre-release
AdventureJS Docs Downloads Bundler Devlog
Score: 0 Moves: 0
Tutorial explaining how to create custom image docks for AdventureJS. tutorial, custom, image dock

GUI:Image Docks

Image docks are for showing room backgrounds. They show one image that is defined in the current room's room.image property. In the future this may be expanded to make something more flexible.

MyGame.createImageDock({
  id: "MyImageDock",
  cssclasses: ["custom", "image"],
  position: "top",
  type: "Room",
  messages: {
    randomize: true,
    frequency: 0.33,
    array: [
      "{We} clicked the picture, but there's no need for that. It's just a visual reference. ",
      "There's no need to click. Sorry, but this isn't a point & click game.",
      "Move on, there's nothing to do in the picture. ",
      "Whattaya think this is, a point & click game? ",
    ],
  },
});