Мой профиль
← Back to activities

One command brings your hero to life

Try it first, then see why it works.

Help Veda reach the star

The star is two squares to the right. Run the command, then change its number.

my_game.pyCommands for this game

One piece at a time

Board on the left

Your hero lives here. Commands on the right move it.

A line

One line is one command. They run from top to bottom.

hero.right

hero is our character; right means move right. The dot links the character to its action.

(2)

Parentheses contain a detail for the command. The number 2 means move two squares.

hero is an object in our game environment, not a built-in language command. Only the four shown commands run here. A full language editor will be a separate step.