← All help pages

Start a new exercise

Every piece of work in GS Editor starts with a new exercise. On this page you create an empty exercise, see what the parts of the editor window are for, give the exercise a name and set its languages.

Create a new exercise

  1. Open GS Editor in your browser. The first time, you see the start window with the heading New exercise (marker 1 surrounds the whole window in the screenshot).

    The start window with the heading New exercise, surrounded by a frame with the number 1

  2. Click New exercise (marker 1). The start window disappears and the editor shows an empty exercise. At the bottom of the scene, the message “New exercise created” appears.

    The start window with the New exercise button marked with the number 1

  3. Look around the editor window. The screenshot marks its main parts:

    • marker 1 — the toolbar with buttons (save, run, undo). The red button with the number 1 is the problem counter: it shows 1 because the exercise has no elements yet (“The exercise has no elements — add an element from the palette.”). This is not a mistake, only a reminder that you need to add something. Icons show their names when you hover over them,
    • marker 2 — the Components panel: you add elements to the scene from here,
    • marker 3 — the Scene panel: this is where you build the exercise,
    • marker 4 — the Scene elements list: everything that is already on the scene,
    • marker 5 — the Inspector panel: the settings of the selected element.

    An empty editor with five marked parts: the toolbar (1), the Components panel (2), the Scene panel (3), the Scene elements list (4) and the Inspector panel (5)

What next: add an Image, add a Text or add a Component.

Project, engine and language in the start window

The start window has three more settings. You do not need to change anything at the beginning, but it is good to know what they mean. They are marked in the screenshot.

The start window: the Project list (1), the Define button (2), the Engine list (3) and the editor language selector (4)

Name the exercise and check the default language

  1. On the toolbar, click the sliders icon Exercise configuration (marker 1). A window with the same name opens.

    The toolbar, with the Exercise configuration icon marked with the number 1

  2. In the Exercise name field (marker 1), replace the default name with your own, for example “Fruit in a basket”. Under the field, the editor shows the line Exercise identifier (derived from the name): with the name written in a simpler way: in lowercase letters, without accents or special characters, with hyphens instead of spaces. In the screenshot, the name “Exercise” became “exercise”, and the name “Fruit in a basket” would become “fruit-in-a-basket”. The file you save the exercise to gets this name (for example fruit-in-a-basket.zip).

    The Exercise configuration window: the Exercise name field (1) with the default name, the language list below it, and the Default language list (2) with a hint underneath

  3. Look at the Default language list (marker 2). This is the language in which the exercise starts when no other is chosen, and in which you write the base texts. A new exercise starts with one language, the language of the project (in the screenshot, Polish, even when the editor itself is in English), so there is nothing to choose from yet. Under the list, the editor reminds you: “The exercise starts in this language when no other is chosen. Texts in the other languages go on the tabs of the inspector.” You add more languages in the section Exercise languages.

  4. Click Done (marker 1). The window closes, and the name and the language are saved in the exercise.

    The Exercise configuration window, with the Done button marked with the number 1

In the same window you also set the size of the scene: the Scene width and Scene height fields. You enter the numbers in scene pixels, as the editor says (“in scene pixels”).

Exercise languages

An exercise can have texts in several languages, for example Polish and English. You can then run it in any of these languages. You add languages in the Exercise configuration window; how to translate the texts is described on the page Make an exercise in several languages.

  1. Open the Exercise configuration window (the sliders icon Exercise configuration, as in the previous section) and find the Exercise languages list (marker 1). At the beginning it has one language, marked “default”. Under the list, the editor explains: “The exercise can be run in these languages. Every text needs a version in each of them.”

    The Exercise languages list with one language, Polish, marked with the number 1 and the label default

  2. Under the list there is a selection box with the text “Choose a language…”. Click it and choose a language, for example English (marker 1 in the screenshot of the next step). The list shows the most popular languages; the ones the exercise already has are removed from it.

  3. Click Add language (marker 2).

    English chosen in the selection box (1) and the Add language button marked with the number 2

  4. The new language appears on the list (marker 1), below the default language.

    The list of exercise languages with English added, marked with the number 1

  5. Your language is not on the list of popular ones? Type its code in the box next to it, with the hint “or a code, e.g. pt-BR” (marker 1): two lowercase letters of the language, for example de, and, if needed, after a hyphen two capital letters of the country, for example pt-BR.

  6. Click Add language (marker 2). When the code has a wrong format or the language is already on the list, the editor shows a message under the list and adds nothing.

    The box with the code pt-BR marked with the number 1 and the Add language button marked with the number 2

  7. When the exercise has more than one language, from the Default language list (marker 1) choose the one in which the exercise should start and in which you write the base texts. The change does not delete or move anything: texts and files stay where they were.

    The Default language list marked with the number 1

  8. To remove a language, click the cross on the right side of its row. The editor asks if you are sure and tells you what disappears together with the language (texts and, if there are any, files). When the exercise has no texts in that language yet, it says: “The exercise has no texts in this language yet.”

  9. Answer Yes (marker 1) to remove the language or No (marker 2) to keep it.

    The question about removing a language, with the buttons Yes (1) and No (2)

  10. Click Done to close the window. When the exercise has more than one language, the stage bar shows language switches and the inspector shows tabs above the text fields (see Make an exercise in several languages).

Start again

When you open the editor again, the start window does not appear: the editor immediately restores your last work from this browser (the message “Local save restored” is then at the bottom of the scene). To start another exercise:

  1. On the toolbar, click the sheet-with-a-plus icon New exercise (marker 1).

    The toolbar, with the New exercise icon marked with the number 1

  2. If the current exercise has not been saved to a file (as a ZIP or projekt.json), the editor asks Unsaved work: “The exercise has not been saved to a file (ZIP or projekt.json), and its copy in the browser will be removed or replaced. Discard it?” The answer Discard (marker 1) throws the exercise away. The answer Keep working (marker 2) leaves it in the editor, so you can save it first (see Save the exercise as a ZIP).

    The Unsaved work question with the buttons Discard (1) and Keep working (2)

  3. After you answer Discard, you see the start window and can follow the steps from the beginning of this page.

Common mistakes