Skip to content
ExamplesOpen editor ↗

MOJA_MOTSWI

→ RIGHT_ARROW

The value standing for the right arrow key.

MOJA_MOTSWI

You hand it to taetsiETshwerwe. It is the string 'ArrowRight'.

It is nearly always used beside MOLEMA_MOTSWI to move something sideways:

fa (taetsiETshwerwe(MOJA_MOTSWI)) { x = x + 3; }

MOJA (RIGHT) and MOTSWI (ARROW) are both already in Bopa, so the name is a compound of words the tree already carries.

Left and right
diri x = 200;

tiro setaLoeto() {
  thalaKanefase(400, 200);
  tlhalosa('Sediko se se tsamayang ka fa thoko ka ditaetsi tsa metswi a mabedi. Tobetsa setshwantsho pele.');
}

tiro tshwantsha() {
  bokamorago(236);
  tlogelaMothalo();
  tlatsaMmala(90, 160, 200);

  fa (taetsiETshwerwe(MOLEMA_MOTSWI)) { x = x - 3; }
  fa (taetsiETshwerwe(MOJA_MOTSWI)) { x = x + 3; }

  thalaSediko(thibela(x, 20, 380), 100, 44);
}

MOLEMA_MOTSWI, GODIMO_MOTSWI, TLASE_MOTSWI, taetsiETshwerwe