Creating Procedures in MoleMashHack
description
Transcript of Creating Procedures in MoleMashHack
![Page 1: Creating Procedures in MoleMashHack](https://reader036.fdocuments.us/reader036/viewer/2022062501/568160ec550346895dd020af/html5/thumbnails/1.jpg)
Creating Procedures in MoleMashHack
Week 2
![Page 2: Creating Procedures in MoleMashHack](https://reader036.fdocuments.us/reader036/viewer/2022062501/568160ec550346895dd020af/html5/thumbnails/2.jpg)
Procedure• Named sequence of statements• Code reuse• Example without arg: turn on light• Example with arg: make a
milkshakenote: non-working code:
![Page 3: Creating Procedures in MoleMashHack](https://reader036.fdocuments.us/reader036/viewer/2022062501/568160ec550346895dd020af/html5/thumbnails/3.jpg)
Animation• The rapid display of a sequence of
images to create an illusion of movement• Based on physical and mental
processes of humans• Existed since the 1800shttp://www.youtube.com/watch?v=xSrDnIVgVv0
http://www.youtube.com/watch?v=_D9P5HZkPys
![Page 4: Creating Procedures in MoleMashHack](https://reader036.fdocuments.us/reader036/viewer/2022062501/568160ec550346895dd020af/html5/thumbnails/4.jpg)
Computer-based animation• Paper-based animation is slow to
make & kills trees• The computer can move an image
quickly over time so it looks like it is moving• App Inventor has an Animation
component
![Page 5: Creating Procedures in MoleMashHack](https://reader036.fdocuments.us/reader036/viewer/2022062501/568160ec550346895dd020af/html5/thumbnails/5.jpg)
Debugging • Add Comment• Deactivate• Watch• Do it
![Page 6: Creating Procedures in MoleMashHack](https://reader036.fdocuments.us/reader036/viewer/2022062501/568160ec550346895dd020af/html5/thumbnails/6.jpg)
Mole Mash
![Page 7: Creating Procedures in MoleMashHack](https://reader036.fdocuments.us/reader036/viewer/2022062501/568160ec550346895dd020af/html5/thumbnails/7.jpg)
ResourcesIf you have problems• Watch the YouTube videos (Part 1, 2 & 3)
• Read the App Inventor book (page 37, 237-240)• Post questions to the Technovation Challenge
Google Group
![Page 8: Creating Procedures in MoleMashHack](https://reader036.fdocuments.us/reader036/viewer/2022062501/568160ec550346895dd020af/html5/thumbnails/8.jpg)
Reminder:Weekly Reflections• What did your team like about this
week?• What challenges did your team
have this week?• Anything else your team would
like to share?
![Page 9: Creating Procedures in MoleMashHack](https://reader036.fdocuments.us/reader036/viewer/2022062501/568160ec550346895dd020af/html5/thumbnails/9.jpg)
Share with us onTwitter & Facebook
Tweet us: @_technovation_#technovation
Like us on Facebook: Technovation Challenge