Skip to content

Example Level.yaml

Kit Manners edited this page Jul 1, 2018 · 3 revisions
nodes:
  start:
    - type: set_background
      file: background.png
    - type: play_music
      file: music.ogg
    - type: add_npc_message
      text: OwO what's this?
    - type: add_pc_message
      text: He's a furry, don't pay him any attention
    - type: add_npc_message
      text: Oh, will he just go away?
    - type: change_npc_sprite
      head: npc_head_happier
    - type: add_pc_choices
      choices:
        option-1_1: Yes...
        option-1_2: No...
  option-1_1:
    - type: add_pc_message
      text: Yes, but not for another hour or so.
    - type: change_npc_mood
      delta: -5
    - type: move_npc
      x: -20
      y: 50
      speed: 10
    - type: change_level
      name: gameover.yaml
  option-1_2:
    - type: add_pc_message
      text: No, but he might approach you if you make eye contact...
    - type: add_pc_message
      text: If he does, just ignore him. ;)
    - type: change_npc_mood
      delta: 10
    - type: change_level
      name: you_win.yaml
Clone this wiki locally