ElNando888 / EteRNA-Script-Interface

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EteRNA-Script-Interface

EteRNA script interface help users make their own script solving puzzles or scoring lab puzzles in EteRNA.

And this repository shows you how script interface evaluates and test user's code.

You can be a member of contributors if you want. Please contact us.

Installation

Just check out this repository on your machine.

    git clone https://github.com/EteRNAgame/EteRNA-Script-Interface.git

or

    git clone git://github.com/EteRNAgame/EteRNA-Script-Interface.git

Usage

Simply open main.html on your browser. You can test whole script interface on local environment.

Add library

  • Make sure your own library follows our library conventions.

    EteRNA script interface conventions
    
       - Library's filename and class should start with 'Lib'.(ex 'LibKws4679.js', 'LibKws4679')
    
       - Modularization your class like 'library/LibKws4679.js' due to stable deploy on production site.
    
          (Don't be afraid. Your class will be deployed after enough test.)
    
  • Add into main.html

    <script type="text/javascript" src="library/your-file-name.js"></script>
  • Now you can use your class in script interface.

How does it work?

  1. server_resources/jscripts/builder-script.js creates logical action of script interface.

    Note: Compiled from server_resources/coffee/builder-script.coffee

  2. server_resources/jscripts/script.js creates UI of script interface.

    Note: Compiled from 'server_resources/html/script.html

  3. script-connector.js initialize script interface.

About


Languages

Language:JavaScript 97.8%Language:CoffeeScript 1.4%Language:CSS 0.8%