Skip to content

Goldsong/reeborg

 
 

Repository files navigation

Information for developers & instructors

This project lives on http://reeborg.ca. Permission is given to make copies on some other site, but I would request that you contact me to inform me so that I can add the information about where Reeborg is used and so that I can keep you abreast of any new development. Please take note of the license.

Whenever possible, all javascript objects have been made part of a main one called RUR (for Reeborg the Used Robot) to avoid conflicts with user-defined names.

An html page will typically only load two javascript file that have been created here (some plugins have been copied from elsewhere) :

reeborg.js reeborg_lang.js

where lang means human language. Thus for English speakers, we would include the file

reeborg_en.js

for French speakers would include instead

reeborg_fr.js

The programming language (javascript or Python currently) needs to be defined in the main html page.

The main file is reeborg.js. It is the result of the concatenation of all the (other) files found in src/js.

In almost each subfile, a namespace is introduced so that functions can easily be located when they occur elsewhere. Here are the names used:

RUR.rec in recorder.js RUR.world in world.js RUR.robot in robot.js RUR.vis_world in visible_world.js RUR.vis_robot in visible_robot.js RUR.we in world_editor.js RUR.storage in storage.js RUR.ui in ui.js RUR.runner in runner.js

"constants" are in all caps and are in constants.js

The file doc_ready.js is run only when the page is loaded; its uses the idiom:

$(document).ready(function() { ... }

About

Automatically exported from code.google.com/p/reeborg

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 80.5%
  • JavaScript 17.3%
  • HTML 1.8%
  • Other 0.4%