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.
szinten a történethez különböző végződéseket programozhatsz.
Gondolj például a történet két különböző végére:
- A hercegnő sétál az erdőn
- Összefut egy szörnyeteggel
- Boldog befejezés: Előveszi a kardját, és a szörny gyorsan elszalad
- Rossz befejezés: A szörny megeszi a hercegnőt
Biztosíthatod azt is, hogy egy név újra beírható legyen. Ez ugyanúgy működik, mint a 3.
szinten. Kombinálhatod ezt egy `if`-fel, és akkor már készítettél is egy egész programot!