jQuery SGML(Sorcerian Gamebook Markup Language)plugin
Switch branches/tags
Nothing to show
Clone or download
Latest commit 801a30e Oct 19, 2018
Permalink
Failed to load latest commit information.
stext Modified: Element Icon Oct 19, 2018
README.md Modified: README Oct 19, 2018
index.html Add: Tweet button Oct 16, 2018

README.md

jQuery SGML(Sorcerian Gamebook Markup Language)plugin

Automatically generate game books from scenario data.

People called this plugin.....Sorcerian Text.

Dependencies

  • jQuery
  • jQuery Markdown
  • Zoombox
  • toastr
  • vkBeautify(GBAT2SText only)

Example

$(function() {
  // Run Scenario(Production Mode)
  $('#main').startGame('scepter');

  // Run Scenario(Debug Mode:display debug panel)
  $('#main').startGame('scepter', true);

  // GBAT2SText(Download converted code)
  $('#gbat').gbat2stext();

  // GBAT2SText(Param: Converted code)
  $('#gbat').gbat2stext(function(result) {
    ...Process the converted code...
  });

  // Save data backup (Param: selector for scenario code)
  $('#backup').backupData('#scenario');
  
  // Save data restore
  $('#restore').restoreData();
});

Online Preview

https://snext1220.github.io/stext/