Hello again, computer scientists! Welcome to Day 6 of CS First! Today you will createan Interactive Adventure Story while you learn about an important computer science concept:conditionals. Conditionals are the way computers make decisions.
In most computer languages, conditionals start with the word “if,” so they’re sometimescalled if statements. “If” statements can be read like, “If something is true,then do this action.” Like, “If it’s raining, then use an umbrella,” or “ifmy phone receives a message, then it will vibrate.”
Take a look at this Scratch project that uses another type of conditional called an “If/elsestatement.” This code can be read: “If touching the mouse pointer, then hide. Else,or otherwise, show.” So when this code runs, if the mouse pointer touches the sprite, thenit hides. Else, the sprite shows. Conditionals are used all the time in roleplaying games, or RPGs. RPGs are a type of interactive story, like the one you will createtoday. They allow the user to decide what will happen next in the story. A popular RPG,Pokemon, is programmed to use if/else statements like this: When you encounter a wild Pokemon,IF you choose “fight,” then you begin a battle with the Pokemon. Else, if you choose“run,” then you try to run away from the battle. Role playing games like Pokemon arefun because the players’ decisions affect the outcome of the story. That interactiveplay is made possible by if/else statements and computer science.
In today’s project, you will create a story that the audience can control, just like therole playing game described earlier. The audience chooses whether or not the character willgo through a secret door. Once through the secret door, the story is all yours to create.
This video will introduce remixing and designing your story. Watch this video to learn howto do it, then try it on your own. To start your story, click the starter projectlink next to this video. Click remix and sign in to Scratch.
Then, choose a main character for the audience to control. You can choose whichever maincharacter you want for your story. To see a list of walking or flying sprites, select“walking” or “flying” on the theme menu.
In this interactive story, the main character must choose whether or not to walk througha secret door. Which decision the character makes will determine the story’s backdrop,or world. You need to add two backdrops to your story to make this work: one that thecharacter will encounter if it walks through the secret door, and one it will be in ifit chooses not to go through. When you’re finished, reselect the brick wall from thebackdrops menu to make sure the story starts there.
Now it’s your turn: Click the Starter Project, remix it, and sign in.
Choose a main character for your story.
Select 2 additional backdrops. Reselect the brick wall backdrop.
In the next video, you’ll get your character to ask the audience a question, where theanswer will determine what happens next.
1. Presentazione di Narrazione interattiva
2. Domande e risposte
3. Prendi una decisione
4. Racconta la storia
5. Componenti aggiuntivi di Narrazione interattiva