Loading…
None
String updated in the repository |
|
None
String updated in the repository |
|
None
String updated in the repository |
|
None
Source string changed |
|
None
String updated in the repository |
|
None
Source string changed |
|
None
String updated in the repository |
|
None
Source string changed |
|
None
String updated in the repository |
|
None
String updated in the repository |
|
Things to check
Key
adventures->story->levels->5->story_textFlags
ignore-double-space, ignore-ellipsis, ignore-inconsistent, ignore-long-untranslated, ignore-same, ignore-translated, placeholders:r"`([^`\n\r]+)`|## ", python-brace-format
In the example code you can see how to make 2 different endings.
### Exercise 1
Write a new short story of at least 6 lines of code about a topic of your choosing.
No inspiration? Choose one of these topics: a superhero, a boring school day, stranded on a desert island.
Now give the player a change to choose a happy or a bad end, just like in the example code.
Program both the endings.
### Exercise 2
Copy the story you've created in your own story adventure in the previous levels.
Find a way to add at least 2 `{if}` and `{else}` commands to your story.
This can be with a happy or bad ending, but you can also try to find other ways to incoporate the commands.
Pense em dois finais para sua história, por exemplo:
- A princesa está andando pela floresta
- Ela se depara com um monstro
- Final feliz: ela pega sua espada e o monstro foge rapidamente
- Final triste: O monstro devora a princesa
Você também pode garantir que um nome possa ser inserido novamente. Isso funciona exatamente como nos níveis anteriores. Você pode combinar isso com um `{if}`, e então você já fez um programa inteiro!