Glossary - sonataFarm/lost_in_wiki GitHub Wiki

Front end objects

  • Page : An object representing some information about a wikipedia article

    • title : The title of the article with words separated by spaces.
    • identifier : The title of the article with words separated by underscores
    • out_links : The titles of the pages that a page links to.
    • in_links : The titles of the pages that link to the page.
    • page_rank : A float between 0 and 1 representing the importance of a page. Higher is more important.
  • Star-field : The game's main 3js environment

  • Star : The 3js representation of a Page

  • game : The slice of state containing all non-visual information about the state of the game.

    • destination : The page the user must arrive at to win.
    • history : An array representing the pages has already visited, in order. Does not include times the user has gone back.
    • currentPage : The page the player is currently 'on'.
    • focusPage : The page the player is currently 'highlighting' or 'previewing'.
    • difficulty : float between 0 and 1 - the maximum visitable page_rank. Lower is more difficult.