SlideShare une entreprise Scribd logo
1  sur  15
Day One:

Before We Start




     From the Storyboard to the Code:
         Programming with Alice
                  Arizona	
  State	
  University	
  
                        June	
  2010	
  
What do you know today
 about programming?
Day One:

Introduction to Programming




     From the Storyboard to the Code:
         Programming with Alice
                      Arizona	
  State	
  University	
  
                            June	
  2010	
  
scene	
                  storyboard	
  
       parameter	
                                                 virtual	
  
                                     object	
                      world	
  
3D	
  character	
  
                             ac6on	
  (method)	
                   value	
  
  proper6es	
  
                                                             instance	
  
               program	
             a@ribute	
  
Step	
  0:	
  Open	
  Alice	
  
Step	
  1:	
  Choosing	
  a	
  Background	
  



  When	
  you	
  open	
  Alice,	
  the	
  first	
  thing	
  you	
  must	
  do	
  is	
  choose	
  a	
  background	
  
  for	
  your	
  world	
  (scenario).	
  You	
  have	
  six	
  different	
  choices.	
  	
  

  For	
  this	
  exercise,	
  choose	
  from	
  the	
  Tab	
  Templates	
  	
  grass	
  background,	
  
  and	
  then	
  click	
  Open.	
  	
  



                            1




                                                2
Step	
  2:	
  Open	
  the	
  Object	
  Library	
  



Next,	
  you	
  can	
  add	
  objects	
  to	
  your	
  Alice	
  World.	
  Alice	
  is	
  full	
  of	
  different	
  
kinds	
  of	
  objects	
  to	
  add	
  to	
  your	
  world.	
  

Click	
  on	
  the	
  green	
  Add	
  Objects	
  bu@on,	
  to	
  see	
  all	
  the	
  op6on	
  inside	
  Alicie’s	
  
gallery.	
  	
  	
  


                                                                                             1
Step	
  3:	
  Adding	
  an	
  Object	
  


     Click	
  on	
  the	
  animals	
  folder	
  of	
  objects.	
  Find	
  the	
  Cat	
  class	
  and	
  click	
  on	
  
     it.	
  Then	
  use	
  the	
  Add	
  Instance	
  to	
  World	
  bu@on	
  .	
  The	
  cat	
  object	
  will	
  
     appear	
  in	
  your	
  world.	
  




        1                                                        2
                                                                                                                     3

       Click	
  the	
  green	
  Done	
  bu@on	
  to	
  the	
  right	
  to	
  begin	
  
       working	
  with	
  your	
  new	
  cat.	
  
Step	
  4:	
  Run	
  your	
  world	
  


      Now	
  you	
  can	
  take	
  a	
  look	
  of	
  you	
  world.	
  Use	
  the	
  Play	
  bu@on	
  at	
  the	
  leV	
  
      up	
  corner	
  to	
  run	
  your	
  world.	
  
                                                                     1
Step	
  5:	
  Adding	
  more	
  objects	
  


     You	
  can	
  add	
  as	
  much	
  objects	
  as	
  you	
  want	
  to	
  your	
  world.	
  Repeat	
  the	
  
     process	
  and	
  add	
  some	
  of	
  them.	
  




                                    2
           1




          3
                                                                                       4
Step	
  6:	
  Moving	
  objects	
  around	
  


     As	
  you	
  may	
  no6ce,	
  all	
  the	
  objects	
  you	
  add	
  to	
  your	
  world	
  appears	
  at	
  
     the	
  center	
  of	
  you	
  scenario.	
  You	
  can	
  select	
  an	
  object	
  (a	
  yellow	
  box	
  
     appears	
  around	
  it)	
  and	
  use	
  your	
  mouse	
  (drag	
  it)	
  to	
  move	
  the	
  objects	
  
     around.	
  




                            1
Step	
  7:	
  Save	
  your	
  World	
  


      Now	
  is	
  6me	
  to	
  save	
  our	
  work.	
  Go	
  to	
  the	
  File	
  menu	
  	
  Save	
  World,	
  
      this	
  open	
  a	
  new	
  window	
  where	
  you	
  will	
  choose	
  the	
  directory	
  where	
  
      you	
  want	
  save	
  your	
  world	
  and	
  the	
  name	
  for	
  it.	
  To	
  save	
  it	
  use	
  the	
  Save	
  
      bu@on.	
  	
  
                                                        3




                                                                                                                    5
1
                                                                                               4
                                          2
Step	
  8:	
  Recover	
  your	
  World	
  


     If	
  you	
  close	
  Alice	
  and	
  then	
  want	
  to	
  recover	
  your	
  world.	
  Open	
  Alice,	
  
     and	
  use	
  the	
  File	
  menu	
  	
  Open	
  World	
  op6on.	
  This	
  will	
  open	
  a	
  new	
  
     window,	
  go	
  to	
  the	
  directory	
  you	
  save	
  your	
  world,	
  select	
  the	
  desired	
  
     file,	
  and	
  click	
  on	
  the	
  Open	
  bu@on.	
  
                                                                                           3
                                                 1


                                                                                      4
                                                                                                            5
                                             2
201003 Alice (part 1/15)

Contenu connexe

En vedette

RCMSL Phenomenal July 23, 2009
RCMSL Phenomenal July 23, 2009RCMSL Phenomenal July 23, 2009
RCMSL Phenomenal July 23, 2009
etalcomendras
 
Uzbekistan caving 2011
Uzbekistan caving 2011Uzbekistan caving 2011
Uzbekistan caving 2011
Yura Taras
 
201404 Multimodal Detection of Affective States: A Roadmap Through Diverse Te...
201404 Multimodal Detection of Affective States: A Roadmap Through Diverse Te...201404 Multimodal Detection of Affective States: A Roadmap Through Diverse Te...
201404 Multimodal Detection of Affective States: A Roadmap Through Diverse Te...
Javier Gonzalez-Sanchez
 
Chapter 12
Chapter 12Chapter 12
Chapter 12
dphil002
 
Phenomenal Oct 15, 2009
Phenomenal Oct 15, 2009Phenomenal Oct 15, 2009
Phenomenal Oct 15, 2009
etalcomendras
 
Eprotect Complan Ver 4
Eprotect Complan Ver 4Eprotect Complan Ver 4
Eprotect Complan Ver 4
etalcomendras
 
Thehub Milan Startup Weekend
Thehub   Milan Startup WeekendThehub   Milan Startup Weekend
Thehub Milan Startup Weekend
The Hub Milan
 

En vedette (20)

Eprotect
EprotectEprotect
Eprotect
 
RCMSL Phenomenal July 23, 2009
RCMSL Phenomenal July 23, 2009RCMSL Phenomenal July 23, 2009
RCMSL Phenomenal July 23, 2009
 
How new technologies affect the art of contesting
How new technologies affect the art of contestingHow new technologies affect the art of contesting
How new technologies affect the art of contesting
 
Uzbekistan caving 2011
Uzbekistan caving 2011Uzbekistan caving 2011
Uzbekistan caving 2011
 
2009 04 москва, совазс
2009 04 москва, совазс2009 04 москва, совазс
2009 04 москва, совазс
 
Eeuwigblijvenleren2
Eeuwigblijvenleren2Eeuwigblijvenleren2
Eeuwigblijvenleren2
 
Eurowerks 2009 Slideshow
Eurowerks 2009 SlideshowEurowerks 2009 Slideshow
Eurowerks 2009 Slideshow
 
Wiseman Jack
Wiseman JackWiseman Jack
Wiseman Jack
 
Farma
FarmaFarma
Farma
 
201404 Multimodal Detection of Affective States: A Roadmap Through Diverse Te...
201404 Multimodal Detection of Affective States: A Roadmap Through Diverse Te...201404 Multimodal Detection of Affective States: A Roadmap Through Diverse Te...
201404 Multimodal Detection of Affective States: A Roadmap Through Diverse Te...
 
Chapter 12
Chapter 12Chapter 12
Chapter 12
 
Paul Pangaro
Paul PangaroPaul Pangaro
Paul Pangaro
 
Phenomenal Oct 15, 2009
Phenomenal Oct 15, 2009Phenomenal Oct 15, 2009
Phenomenal Oct 15, 2009
 
Eprotect Complan Ver 4
Eprotect Complan Ver 4Eprotect Complan Ver 4
Eprotect Complan Ver 4
 
Huizenprijzen in Amsterdam
Huizenprijzen in AmsterdamHuizenprijzen in Amsterdam
Huizenprijzen in Amsterdam
 
Jay Cross Vivo Versao Final Corrigida
Jay Cross Vivo Versao Final CorrigidaJay Cross Vivo Versao Final Corrigida
Jay Cross Vivo Versao Final Corrigida
 
Slides boekpresentatie 'Sociale Media en Journalistiek'
Slides boekpresentatie 'Sociale Media en Journalistiek'Slides boekpresentatie 'Sociale Media en Journalistiek'
Slides boekpresentatie 'Sociale Media en Journalistiek'
 
Monaco 020909
Monaco 020909Monaco 020909
Monaco 020909
 
Thehub Milan Startup Weekend
Thehub   Milan Startup WeekendThehub   Milan Startup Weekend
Thehub Milan Startup Weekend
 
Thirst Upload 800x600 1215534320518707 8
Thirst Upload 800x600 1215534320518707 8Thirst Upload 800x600 1215534320518707 8
Thirst Upload 800x600 1215534320518707 8
 

Similaire à 201003 Alice (part 1/15)

Collaboration Projects
Collaboration ProjectsCollaboration Projects
Collaboration Projects
Katie Morrow
 
Onion and cheek cell, DNA extraction lab
Onion and cheek cell, DNA extraction labOnion and cheek cell, DNA extraction lab
Onion and cheek cell, DNA extraction lab
D Sanders
 
CCSC RM Alice Tutorial
CCSC RM Alice TutorialCCSC RM Alice Tutorial
CCSC RM Alice Tutorial
Karina Assiter
 

Similaire à 201003 Alice (part 1/15) (10)

Collaboration Projects
Collaboration ProjectsCollaboration Projects
Collaboration Projects
 
Unit 8.pptx
Unit 8.pptxUnit 8.pptx
Unit 8.pptx
 
Unit 8.pptx
Unit 8.pptxUnit 8.pptx
Unit 8.pptx
 
iPad Practice Time Workshop 2014
iPad Practice Time Workshop 2014iPad Practice Time Workshop 2014
iPad Practice Time Workshop 2014
 
Unlocking learner innovation with improv
Unlocking learner innovation with improvUnlocking learner innovation with improv
Unlocking learner innovation with improv
 
Onion and cheek cell, DNA extraction lab
Onion and cheek cell, DNA extraction labOnion and cheek cell, DNA extraction lab
Onion and cheek cell, DNA extraction lab
 
CCSC RM Alice Tutorial
CCSC RM Alice TutorialCCSC RM Alice Tutorial
CCSC RM Alice Tutorial
 
Liferay OpenShift services devcon workshop
Liferay OpenShift services  devcon workshopLiferay OpenShift services  devcon workshop
Liferay OpenShift services devcon workshop
 
280 slides
280 slides280 slides
280 slides
 
Python-data-science.pptx
Python-data-science.pptxPython-data-science.pptx
Python-data-science.pptx
 

Plus de Javier Gonzalez-Sanchez

Plus de Javier Gonzalez-Sanchez (20)

201804 SER332 Lecture 01
201804 SER332 Lecture 01201804 SER332 Lecture 01
201804 SER332 Lecture 01
 
201801 SER332 Lecture 03
201801 SER332 Lecture 03201801 SER332 Lecture 03
201801 SER332 Lecture 03
 
201801 SER332 Lecture 04
201801 SER332 Lecture 04201801 SER332 Lecture 04
201801 SER332 Lecture 04
 
201801 SER332 Lecture 02
201801 SER332 Lecture 02201801 SER332 Lecture 02
201801 SER332 Lecture 02
 
201801 CSE240 Lecture 26
201801 CSE240 Lecture 26201801 CSE240 Lecture 26
201801 CSE240 Lecture 26
 
201801 CSE240 Lecture 25
201801 CSE240 Lecture 25201801 CSE240 Lecture 25
201801 CSE240 Lecture 25
 
201801 CSE240 Lecture 24
201801 CSE240 Lecture 24201801 CSE240 Lecture 24
201801 CSE240 Lecture 24
 
201801 CSE240 Lecture 23
201801 CSE240 Lecture 23201801 CSE240 Lecture 23
201801 CSE240 Lecture 23
 
201801 CSE240 Lecture 22
201801 CSE240 Lecture 22201801 CSE240 Lecture 22
201801 CSE240 Lecture 22
 
201801 CSE240 Lecture 21
201801 CSE240 Lecture 21201801 CSE240 Lecture 21
201801 CSE240 Lecture 21
 
201801 CSE240 Lecture 20
201801 CSE240 Lecture 20201801 CSE240 Lecture 20
201801 CSE240 Lecture 20
 
201801 CSE240 Lecture 19
201801 CSE240 Lecture 19201801 CSE240 Lecture 19
201801 CSE240 Lecture 19
 
201801 CSE240 Lecture 18
201801 CSE240 Lecture 18201801 CSE240 Lecture 18
201801 CSE240 Lecture 18
 
201801 CSE240 Lecture 17
201801 CSE240 Lecture 17201801 CSE240 Lecture 17
201801 CSE240 Lecture 17
 
201801 CSE240 Lecture 16
201801 CSE240 Lecture 16201801 CSE240 Lecture 16
201801 CSE240 Lecture 16
 
201801 CSE240 Lecture 15
201801 CSE240 Lecture 15201801 CSE240 Lecture 15
201801 CSE240 Lecture 15
 
201801 CSE240 Lecture 14
201801 CSE240 Lecture 14201801 CSE240 Lecture 14
201801 CSE240 Lecture 14
 
201801 CSE240 Lecture 13
201801 CSE240 Lecture 13201801 CSE240 Lecture 13
201801 CSE240 Lecture 13
 
201801 CSE240 Lecture 12
201801 CSE240 Lecture 12201801 CSE240 Lecture 12
201801 CSE240 Lecture 12
 
201801 CSE240 Lecture 11
201801 CSE240 Lecture 11201801 CSE240 Lecture 11
201801 CSE240 Lecture 11
 

Dernier

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Dernier (20)

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 

201003 Alice (part 1/15)

  • 1. Day One: Before We Start From the Storyboard to the Code: Programming with Alice Arizona  State  University   June  2010  
  • 2. What do you know today about programming?
  • 3.
  • 4. Day One: Introduction to Programming From the Storyboard to the Code: Programming with Alice Arizona  State  University   June  2010  
  • 5. scene   storyboard   parameter   virtual   object   world   3D  character   ac6on  (method)   value   proper6es   instance   program   a@ribute  
  • 6. Step  0:  Open  Alice  
  • 7. Step  1:  Choosing  a  Background   When  you  open  Alice,  the  first  thing  you  must  do  is  choose  a  background   for  your  world  (scenario).  You  have  six  different  choices.     For  this  exercise,  choose  from  the  Tab  Templates    grass  background,   and  then  click  Open.     1 2
  • 8. Step  2:  Open  the  Object  Library   Next,  you  can  add  objects  to  your  Alice  World.  Alice  is  full  of  different   kinds  of  objects  to  add  to  your  world.   Click  on  the  green  Add  Objects  bu@on,  to  see  all  the  op6on  inside  Alicie’s   gallery.       1
  • 9. Step  3:  Adding  an  Object   Click  on  the  animals  folder  of  objects.  Find  the  Cat  class  and  click  on   it.  Then  use  the  Add  Instance  to  World  bu@on  .  The  cat  object  will   appear  in  your  world.   1 2 3 Click  the  green  Done  bu@on  to  the  right  to  begin   working  with  your  new  cat.  
  • 10. Step  4:  Run  your  world   Now  you  can  take  a  look  of  you  world.  Use  the  Play  bu@on  at  the  leV   up  corner  to  run  your  world.   1
  • 11. Step  5:  Adding  more  objects   You  can  add  as  much  objects  as  you  want  to  your  world.  Repeat  the   process  and  add  some  of  them.   2 1 3 4
  • 12. Step  6:  Moving  objects  around   As  you  may  no6ce,  all  the  objects  you  add  to  your  world  appears  at   the  center  of  you  scenario.  You  can  select  an  object  (a  yellow  box   appears  around  it)  and  use  your  mouse  (drag  it)  to  move  the  objects   around.   1
  • 13. Step  7:  Save  your  World   Now  is  6me  to  save  our  work.  Go  to  the  File  menu    Save  World,   this  open  a  new  window  where  you  will  choose  the  directory  where   you  want  save  your  world  and  the  name  for  it.  To  save  it  use  the  Save   bu@on.     3 5 1 4 2
  • 14. Step  8:  Recover  your  World   If  you  close  Alice  and  then  want  to  recover  your  world.  Open  Alice,   and  use  the  File  menu    Open  World  op6on.  This  will  open  a  new   window,  go  to  the  directory  you  save  your  world,  select  the  desired   file,  and  click  on  the  Open  bu@on.   3 1 4 5 2