Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

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

Notifications You must be signed in to change notification settings

eternagame/EteRNA-Script-Interface

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 

Repository files navigation

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

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

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published