Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 1.13 KB

File metadata and controls

33 lines (26 loc) · 1.13 KB

Primer markup

Pseudo markup format for Robo Instructus containing the programming primer received through the game's story. This is a custom markup for the game's uses.

Markup format:

  • #!unlock means the start of a section, the lines following are the message in simplified markdown.
  • Most of the time the first line, starting with # is the subject.
  • Newlines always count, unlike markdown.
  • Backticks wrap inline bits of code, e.g `var foo = q`.
  • Three backticks ``` wrap around code blocks. They may have text immediately after them, e.g.```no_run which isn't displayed & should be left in english. In code blocks only comments should be translated.

Example

#!unlock type{primer} id{loops}
# Loops

`loop` is used to repeat commands. It will repeat the commands in its scope forever. A loop's scope is the commands indented that come after a `loop` line.

```max_run=11
robo_forward()  # called once

loop
    robo_forward()
    robo_left()

robo_left()  # never called
```