Scratch 3 Walkthrough And Demo - Adafruit Industries

1y ago
5 Views
2 Downloads
3.75 MB
29 Pages
Last View : 1m ago
Last Download : 3m ago
Upload by : Helen France
Transcription

Scratch 3 Walkthrough and DemoCreated by Isaac -3Last updated on 2021-11-15 07:30:32 PM EST Adafruit IndustriesPage 1 of 29

Table of ContentsOverview5 Adafruit Parts Optional56Walkthrough6Block types7 77888999101011The different types of code rsVariablesMy BlocksExtension BlocksUser Interface11 12121313141415The Block PaletteThe Script AreaThe Stage AreaThe Sprite Info PaneThe Costume/Backdrop PaneThe Sounds PaneToolbar and TutorialsTips and Tricks Workflow and mistakes TroubleshootingWhat's New in Scratch 3? A new build Scratch Extensions Other updates per the Scratch Wiki:15151616161717Draw Demo!18Scratch Code18 1921222323Create a sprite for the penAdding the pen extension blocksSetting up the programForever loopTest it out!CPX and MakeCode What is Circuit Playground Express (CPX)?What is MakeCode?Create a New Project with MakeCodeAdd the Keyboard and Mouse Extensions in MakeCode Adafruit Industries2424252525Page 2 of 29

The NeoPixel PaletteCoding with the accelerometerSending keyboard infoUploading the CodePutting it All Together Troubleshooting What will you create next? Adafruit Industries26262727282929Page 3 of 29

Adafruit IndustriesPage 4 of 29

OverviewIn this guide we'll delve into the popular programming language Scratch (https://adafru.it/DDU).Scratch is a block-based language geared for beginners that lets you create your owninteractive stories, animations, games, music, and art.Scratch is easy to use and requires no prior coding experience!First we'll do a walkthrough of the basics.Next we'll cover the updates in the 3rd and newest edition of the language which wasreleased January 2, 2019.Lastly we'll do some digital painting inside Scratch using a Circuit Playground Expressas our "paintbrush" and "palette". See below!Adafruit Parts Adafruit IndustriesPage 5 of 29

1 x Circuit Playground Express (CPX)https://www.adafruit.com/product/3333Circuit Playground Express is a great introduction toelectronics and programminghttps://www.adafruit.com/product/5921 x USB cableUSB A to Micro-B (Plugs into computer to program theCPX)Optional1 x Adafruit Circuit Playground Express Enclosurehttps://www.adafruit.com/product/3915A plastic case for the Circuit Playground Express thatmakes it look pretty.WalkthroughThe quickest way to get started with Scratch is to jump right in! The programminglanguage is web-based which means there is no downloading necessary. Just head tothe website below.Click here to get started withScratch!https://adafru.it/DDVAfter entering the Scratch site, click the orange "Start Creating" button.You will then be taken to the Scratch project editor. This is where all the codinghappens!Follow the short tutorial to learn the basics of how "sprites (https://adafru.it/DDW)"work in Scratch. Adafruit IndustriesPage 6 of 29

Block typesScratch is a "block-based (https://adafru.it/DDX)" programming language. This meansinstead of writing lines of code to program, we use "blocks (https://adafru.it/DDY)".Each block has a specific category that describes what its purpose is. Sprites (https://adafru.it/DDW) are the objects that perform actions in a project and these blocks tellthe sprites what to do. Code blocks can also tell a stage or backdrop how to behave.The different types of code blocks:Motion (https://adafru.it/DDZ) Define the movement of sprites Adafruit IndustriesPage 7 of 29

Looks (https://adafru.it/DD-) Change the appearance of sprites.Gives the ability to changecostumes and apply graphic effects.Sound (https://adafru.it/DE0) Play audio by recording sounds,using Midi notes (https://adafru.it/DE1) and more.Events (https://adafru.it/DE2) Trigger scripts or series of codeblocks. Consists mainly of hatblocks (https://adafru.it/DE3) whichstart a script. Adafruit IndustriesPage 8 of 29

Control (https://adafru.it/DE4) Dictate the flow of a project.Provide mechanism for "looping"different blocks and scripts.Sensing (https://adafru.it/DE5) Let multiple sprites interact withthemselves and/or the stage. Candetermine how two sprites collidefor example.Operators (https://adafru.it/DE6) Allow various mathematicalfunctions within a project. Can beused to modify variables andstrings (https://adafru.it/DE7). Adafruit IndustriesPage 9 of 29

Variables (https://adafru.it/DE8) Used to store data in projects, like aname or a score.My Blocks You can create your own blocks! Adafruit IndustriesPage 10 of 29

Extension Blocks At the bottom left of the screen.These blocks let you connect tohardware or access a number ofother block types like the pen, ormusic blocks.User InterfaceThe Scratch user interface (https://adafru.it/DE9) is the area on your screen where theScratch program exists. The screen is divided into multiple sections or "panes (https://adafru.it/DEa)" which have different functions from picking blocks to code with, tocoding, to seeing your code in action. We will go through the different elements of theinterface. Adafruit IndustriesPage 11 of 29

The Block Palette The block palette is where all thecode blocks exist. Blocks are colorcoded by category. These blockscan be dragged to the scriptingarea to either code sprites or thestage.The Script Area The scripts area is where our codeis dragged to and assembled. Adafruit IndustriesPage 12 of 29

The Stage Area The stage is where we can see ourcode come to life! For example ifwe have a "when green flagclicked" event block at the start ofour code, we can click the greenflag to trigger the code we wrote.The Sprite Info PaneThe sprite info pane is where we can findinfo about our sprites as well asmanipulate them. Access this pane byclicking on the thumbnail of the desiredsprite. This area also allows us to deleteand create new sprites. Adafruit IndustriesPage 13 of 29

The Costume/Backdrop Pane The costume and backdrop panescan be accessed by clicking themiddle tab in between the "code"tab and the "sounds" tab. This iswhere we can create andmanipulate sprites and backdrops.To switch between costume andbackdrop panes, select the desiredthumbnail in the sprite info pane.The Sounds Pane The last tab in the top left area ofthe interface allows us to crate andmanipulate sounds. You can evenrecord your own! Adafruit IndustriesPage 14 of 29

Toolbar and Tutorials The toolbar on the top of thescreen allows us to load and saveprojects as well as undo thedeletion of sprites. Find a variety of tutorials on how todo just about anything in Scratch byclicking the "tutorials" button!Tips and TricksWorkflow and mistakes Copy and paste code blocks to save time. Be careful when creating and deleting sprites! The code blocks you create tellthe associated sprite what to do. Thus when you delete a sprite you are deletingthe code that tells it what to do.Deleting a sprite will delete all the code associated with that sprite! Adafruit IndustriesPage 15 of 29

If you accidentally delete a sprite, clickedit on the tool bar then click "RestoreSprite" to bring your code back to life!Troubleshooting Right click a block for help. Visit the Scratch wiki (https://adafru.it/DEb) for more help. There's a whole community of Scratchers (https://adafru.it/DEc) that have comeacross a multitude of issues and would also love to help. To join the community make an account!What's New in Scratch 3?Scratch 3.0 includes a new sound editor, new sprites, new programming blocks, andmuch more.A new buildScratch was originally built with Adobe Flash which is going away soon so the newupdate is built in HTML5 (https://adafru.it/DEd

Scratch 2.0 Control Blocks, and control blocks are a bit lighter than the old events blocks More Blocks has been renamed My Blocks (https://adafru.it/DEh), and is a shade of light red Some default inputs (the inputs that show up in the Block Palette (htt ps://adafru.it/DEi) are different)

Related Documents:

The Scratch project began in 2003, and the Scratch software and Web site1 were publicly launched in 2007. Scratch is free, available in nearly 50 lan-guages, and more than two million copies have been downloaded from the Scratch Web site. In addition, Scratch software is often redistributed by schoo

Creating with Scratch Scratch is a visual programming language that lets you create and share projects with others. It encourages you to problem solve, think logically, test and evaluate outcomes, and collaborate with others. To try out Scratch, see examples of projects, and join Scratch click here: https://scratch

This tutorial will introduce you to programming using Scratch from MIT. Create a Scratch Account Before you start programming, you will need to create a Scratch account. 1. Go to scratch.mit.edu. 2. Click Join Scratch. 3. Enter the requested information. (Use your real birth month and year. Do not use your school email

prototyping environment, to interact with service components in virtual form and experience the service journey in VR. The VR service walkthrough is based on the service walkthrough prototyping method, which adopted its elements from the methods of experience prototyping, pluralistic walkthrough, and bodystorming (Arvola et al., 2012).

walkthrough and the Q&A. Hopefully I won’t need too many updates. V1.5: Wow, a new version before I’d even finished the walkthrough all the way! I’ve decided to rearrange the way the information was presented, but I haven’t changed any of the content thus far.

Connect your ATS with LinkedIn Recruiter to access candidate information, boost collaboration, and view more applicant data in both Recruiter and Lever without having to switch . JeanTTocco@demo.com LupitaFillmore@demo.com dan.porter@demo.com d.burrow@demo.com brandon.m@demo.com tam.johnson@demo.com Step 3 of 4 Link Lever seats. b c

The 71M6533 IC on the demo board is pre-programmed with default calibration factors. Since current sensors are not part of the Demo Kit, the demo board is tested but not calibrated at the factory. 1.2 SAFETY AND ESD NOTES Connecting live voltages to the demo board system will result in potentially hazardous voltages on the demo board.

10450155 Leica M80 optics carrier 10 1,542.31 Demo 10450168 LED 5000 coaxial 3 1,712.88 Demo 10450169 LED 3000 Near Vertical 1 971.85 Demo 10450195 Filter Set mCherry f/M-series 1 1,311.31 Demo 10450196 Spare eyecup for M-series eyepieces (pair) 4 24.31 Demo 10450207 Revolving nosepiece M165 FC 1 727.79 Demo