creating procedures in molemashhack

9
Creating Procedures in MoleMashHack Week 2

Upload: nikki

Post on 22-Feb-2016

23 views

Category:

Documents


3 download

DESCRIPTION

Creating Procedures in MoleMashHack. Week 2. Procedure. Named sequence of statements Code reuse Example without arg : turn on light Example with arg : make a milkshake note: non-working code:. Animation. The rapid display of a sequence of images to create an illusion of movement - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Creating Procedures in  MoleMashHack

Creating Procedures in MoleMashHack

Week 2

Page 2: Creating Procedures in  MoleMashHack

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

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

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

Debugging • Add Comment• Deactivate• Watch• Do it

Page 6: Creating Procedures in  MoleMashHack

Mole Mash

Page 7: Creating Procedures in  MoleMashHack

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

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

Share with us onTwitter & Facebook

Tweet us: @_technovation_#technovation

Like us on Facebook: Technovation Challenge