Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CharacterDefinition

Pattern for the definition of characters

Define characters to appear in various poses using this pattern

{
  id of the character: {
    name: "Name of the character to appear when speaking",
    origin: the origin of the image, in most cases FudgeStory.ORIGIN.BOTTOMCENTER,
    pose: {
      id of 1st pose: "path to the image to be used for 1st pose",
      id of 2nd pose: "path to the image to be used for 2nd pose",
      ...
    }
  },
  id of the character: {
    ... same pattern as above
  },
  ... more characters as above
}

Example

export let chars = {
  Sue: {
    name: "Susan Rice",
    origin: FudgeStory.ORIGIN.BOTTOMCENTER,
    pose: {
      normal: "../Characters/placeholder_girl.png",
      talk: "../Characters/placeholder_girl_talk.png"
    }
  },
  John: {
    name: "John Wick"
    ...
  },
}

Hierarchy

  • CharacterDefinition

Index

Properties

Properties

name

name: string

Name of the character to appear when speaking

origin

origin: ORIGIN

The origin of the characters images, in most cases FudgeStory.ORIGIN.BOTTOMCENTER,

pose

pose: {}

A list of key-value-pairs defining various poses of the character and holding the urls to the according images

{
  id of 1st pose: "path to the image to be used for 1st pose",
  id of 2nd pose: "path to the image to be used for 2nd pose",
  ...
}

Type declaration

  • [id: string]: RequestInfo

Generated using TypeDoc