SlideShare a Scribd company logo
1 of 29
Sage Franch | @theTrendyTechie
Building a Game with
TouchDevelop
Meet Sage Franch | @theTrendyTechie
• Technical Evangelist
– Interfacing with developers
– Bringing Microsoft’s technology to you!
• Proud geek and “Trendy Techie”
– Find me online at my blog trendytechie.ca
• Advocate for equality in technology
• Student at Dalhousie University
Why TouchDevelop?
• It’s a snap to learn.
• You learn coding concepts without worrying about semantics.
• It makes building mobile games and apps easy.
• It runs on anything (laptop, desktop, tablet, phone).
• You can share your code and creations with friends.
• It’s free
• All you need is a browser.
Which browsers can I use?
• TouchDevelop is supported on the latest versions of most
browsers.
• To avoid a delay in your classes, make sure ahead of time that
the browsers are updated
• For a full list of supported browsers, see here:
https://www.touchdevelop.com/app/current.browsers
The Agenda
• TouchDevelop tour
• Important Coding Concepts:
– Objects, Functions and Parameters
– Variables
– The TouchDevelop coordinate system
– Conditional statements
– On every frame
– Loops
• Play time! :D
• Resources for teaching and learning
touchdevelop.com
TouchDevelop Tour
build
testsave
sign in
build
testsave
sign in
What You Need to Know
Important Coding Concepts
Objects, Functions and Parameters
object function parameter
• Object: a representation of something in the game
• Function: performs an action on the object it is associated with
• Parameter: specifies the value of the function
Variables
• A variable holds data that can be used throughout a script.
• Every variable has a name, a type, and a value.
• A variable’s type describes the kind of data the variable can hold.
– For example: A number, a string, a sprite
• In TouchDevelop, a variable’s type is determined when it is
initialized.
The TouchDevelop coordinate system
(0, 0) x axis
y axis
yINCREASING
1234567…
Conditional Statements
A conditional statement is special code for making decisions based
on some condition.
So what’s a condition? Anything statement that can be either true
or false.
If I am hungry, then I eat.
The action taken if the
condition is false.
The action taken if the
condition is true.
Otherwise, I sleep.
The condition.
(It’s either true or false.)
In code, conditional statements are also called
if-then-else statements
Condition
Code to execute if
the condition is
true goes here.
Code to execute if
the condition is
false goes here.
BUT you have to pay attention to when the condition
is checked…
Computer games are a series of very fast frames
Frame 1 Frame 2 Frame 3
Frame 4 Frame 5 Frame 6
A game frame-by-frame
Use “on every frame” to perform checks continuously
Loops
A loop is a special tool in coding
that lets us write code once and
repeat it as many times as we’d
like
Repeat the following block of code X times:
End of repeated block
You get to specify this value.
Whatever code you put here
gets repeated X times.
Tells the program that any
code after this isn’t part of the
code to be repeated.
The syntax for a loop…
The number of times the code is repeated.
The code that will be repeated.Tells the program that any
code after this isn’t part of the
code to be repeated.
aka.ms/jetpackstarter
Let’s play!
So how do I get started?
It’s easy!
1. Go to http://www.touchdevelop.com
2. Click .
3. And .
Resources for Teaching and Learning
Two Recommended Formats
One-Day Event
• Provide students with a “half-
baked” game to fix and customize
• Jetpack Jumper prompted tutorial
• Estimated time: 2 hours maximum
Multi-Day Event
• Build a side scroller game from
scratch
• Use CODExist MVA as reference
• Estimated time: 6-12 hours
(flexible)
Pre-course checklist
• Will you provide students with devices or will they bring their
own?
• Do you have a reliable internet connection?
• If the students will be watching videos or working with tutorials,
have you asked them to bring headsets?
When teaching TouchDevelop
• Emphasize the excitement of coding
• Be prepared to handle students with different levels of coding
experience
• Make sure to leave time for customization
• Encourage students to share their games, both in show-and-tell
in person and online on social media
• Provide NEXT STEPS – how can they continue once the program
is over? Publish their game to app stores, build more games, etc.
TouchDevelop Resources
• Jetpack Jumper Tutorial with prompts: aka.ms/startcoding
• “Broken” Jetpack game without prompts: aka.ms/jetpackstarter
• Complete Jetpack Jumper: aka.ms/jetpackcomplete
• Hour of Code video: http://channel9.msdn.com/events/Hour-of-
Code/2014/LearningToCode
• CODExist: The Birth of Bot course on Microsoft Virtual Academy
(build a side scroller game from scratch):
http://www.microsoftvirtualacademy.com/training-
courses/codexist-the-birth-of-bot
Sage Franch
@theTrendyTechie
sage.franch@outlook.com
Adarsha Datta
@AdarshaDatta
addatta@microsoft.com

More Related Content

Similar to Game Development with TouchDevelop

Oops concepts variables and How to handle variable in testing
Oops concepts variables and How to handle variable in testingOops concepts variables and How to handle variable in testing
Oops concepts variables and How to handle variable in testingNILESH SAWARDEKAR
 
From SLO to GOTY
From SLO to GOTYFrom SLO to GOTY
From SLO to GOTYScyllaDB
 
The Science of Compliance - Early Code to Secure your Node (11/6/19)
The Science of Compliance - Early Code to Secure your Node (11/6/19)The Science of Compliance - Early Code to Secure your Node (11/6/19)
The Science of Compliance - Early Code to Secure your Node (11/6/19)judy (fink) johnson
 
Training report anish
Training report anishTraining report anish
Training report anishAnish Yadav
 
Software as a craft (February, 2018)
Software as a craft (February, 2018)Software as a craft (February, 2018)
Software as a craft (February, 2018)Rachel M. Carmena
 
The Good, the Bad and the Ugly things to do with android
The Good, the Bad and the Ugly things to do with androidThe Good, the Bad and the Ugly things to do with android
The Good, the Bad and the Ugly things to do with androidStanojko Markovik
 
It's XP Stupid (2019)
It's XP Stupid (2019)It's XP Stupid (2019)
It's XP Stupid (2019)Mike Harris
 
Testing for the deeplearning folks
Testing for the deeplearning folksTesting for the deeplearning folks
Testing for the deeplearning folksVishwas N
 
TeelTech - Advancing Mobile Device Forensics (online version)
TeelTech - Advancing Mobile Device Forensics (online version)TeelTech - Advancing Mobile Device Forensics (online version)
TeelTech - Advancing Mobile Device Forensics (online version)Mike Felch
 
Build tic tac toe with javascript (4:11 dc)
Build tic tac toe with javascript (4:11 dc)Build tic tac toe with javascript (4:11 dc)
Build tic tac toe with javascript (4:11 dc)Daniel Friedman
 
What schools should be teaching IT students
What schools should be teaching IT studentsWhat schools should be teaching IT students
What schools should be teaching IT studentsAndy Lester
 
Assistive Technology Selection for Employment
Assistive Technology Selection for EmploymentAssistive Technology Selection for Employment
Assistive Technology Selection for EmploymentJeremy St. Pierre
 
Twelve practices of XP_Se lect5 btech
Twelve practices of XP_Se lect5 btechTwelve practices of XP_Se lect5 btech
Twelve practices of XP_Se lect5 btechIIITA
 
Subtle Encipherment Hall
Subtle Encipherment HallSubtle Encipherment Hall
Subtle Encipherment HallVenkateshwarGS
 

Similar to Game Development with TouchDevelop (20)

Oops concepts variables and How to handle variable in testing
Oops concepts variables and How to handle variable in testingOops concepts variables and How to handle variable in testing
Oops concepts variables and How to handle variable in testing
 
From SLO to GOTY
From SLO to GOTYFrom SLO to GOTY
From SLO to GOTY
 
The Science of Compliance - Early Code to Secure your Node (11/6/19)
The Science of Compliance - Early Code to Secure your Node (11/6/19)The Science of Compliance - Early Code to Secure your Node (11/6/19)
The Science of Compliance - Early Code to Secure your Node (11/6/19)
 
scratch.pptx
scratch.pptxscratch.pptx
scratch.pptx
 
Training report anish
Training report anishTraining report anish
Training report anish
 
Bug Hunting Safari
Bug Hunting SafariBug Hunting Safari
Bug Hunting Safari
 
Software as a craft (February, 2018)
Software as a craft (February, 2018)Software as a craft (February, 2018)
Software as a craft (February, 2018)
 
The Good, the Bad and the Ugly things to do with android
The Good, the Bad and the Ugly things to do with androidThe Good, the Bad and the Ugly things to do with android
The Good, the Bad and the Ugly things to do with android
 
It's XP Stupid (2019)
It's XP Stupid (2019)It's XP Stupid (2019)
It's XP Stupid (2019)
 
It's XP, Stupid
It's XP, StupidIt's XP, Stupid
It's XP, Stupid
 
Testing for the deeplearning folks
Testing for the deeplearning folksTesting for the deeplearning folks
Testing for the deeplearning folks
 
TeelTech - Advancing Mobile Device Forensics (online version)
TeelTech - Advancing Mobile Device Forensics (online version)TeelTech - Advancing Mobile Device Forensics (online version)
TeelTech - Advancing Mobile Device Forensics (online version)
 
Build tic tac toe with javascript (4:11 dc)
Build tic tac toe with javascript (4:11 dc)Build tic tac toe with javascript (4:11 dc)
Build tic tac toe with javascript (4:11 dc)
 
Dodo does-math
Dodo does-mathDodo does-math
Dodo does-math
 
What schools should be teaching IT students
What schools should be teaching IT studentsWhat schools should be teaching IT students
What schools should be teaching IT students
 
Assistive Technology Selection for Employment
Assistive Technology Selection for EmploymentAssistive Technology Selection for Employment
Assistive Technology Selection for Employment
 
Twelve practices of XP_Se lect5 btech
Twelve practices of XP_Se lect5 btechTwelve practices of XP_Se lect5 btech
Twelve practices of XP_Se lect5 btech
 
Mobile Single Source Strategy
Mobile Single Source StrategyMobile Single Source Strategy
Mobile Single Source Strategy
 
Game Development in VR
Game Development in VR Game Development in VR
Game Development in VR
 
Subtle Encipherment Hall
Subtle Encipherment HallSubtle Encipherment Hall
Subtle Encipherment Hall
 

More from Sage Franch

Crafting a Compelling (and Honest) Speaker Bio
Crafting a Compelling (and Honest) Speaker BioCrafting a Compelling (and Honest) Speaker Bio
Crafting a Compelling (and Honest) Speaker BioSage Franch
 
The 2030 Workplace - Evolving Your Organization with Emerging Tech
The 2030 Workplace - Evolving Your Organization with Emerging TechThe 2030 Workplace - Evolving Your Organization with Emerging Tech
The 2030 Workplace - Evolving Your Organization with Emerging TechSage Franch
 
Singularity-Proof Yourself by Sage Franch
Singularity-Proof Yourself by Sage FranchSingularity-Proof Yourself by Sage Franch
Singularity-Proof Yourself by Sage FranchSage Franch
 
Blockchain, Cryptocurrency, and the Cloud
Blockchain, Cryptocurrency, and the CloudBlockchain, Cryptocurrency, and the Cloud
Blockchain, Cryptocurrency, and the CloudSage Franch
 
Artificial Intelligence as an Interface - How Conversation Bots Are Changing ...
Artificial Intelligence as an Interface - How Conversation Bots Are Changing ...Artificial Intelligence as an Interface - How Conversation Bots Are Changing ...
Artificial Intelligence as an Interface - How Conversation Bots Are Changing ...Sage Franch
 
Turning Your Passion Into Your Career
Turning Your Passion Into Your CareerTurning Your Passion Into Your Career
Turning Your Passion Into Your CareerSage Franch
 

More from Sage Franch (6)

Crafting a Compelling (and Honest) Speaker Bio
Crafting a Compelling (and Honest) Speaker BioCrafting a Compelling (and Honest) Speaker Bio
Crafting a Compelling (and Honest) Speaker Bio
 
The 2030 Workplace - Evolving Your Organization with Emerging Tech
The 2030 Workplace - Evolving Your Organization with Emerging TechThe 2030 Workplace - Evolving Your Organization with Emerging Tech
The 2030 Workplace - Evolving Your Organization with Emerging Tech
 
Singularity-Proof Yourself by Sage Franch
Singularity-Proof Yourself by Sage FranchSingularity-Proof Yourself by Sage Franch
Singularity-Proof Yourself by Sage Franch
 
Blockchain, Cryptocurrency, and the Cloud
Blockchain, Cryptocurrency, and the CloudBlockchain, Cryptocurrency, and the Cloud
Blockchain, Cryptocurrency, and the Cloud
 
Artificial Intelligence as an Interface - How Conversation Bots Are Changing ...
Artificial Intelligence as an Interface - How Conversation Bots Are Changing ...Artificial Intelligence as an Interface - How Conversation Bots Are Changing ...
Artificial Intelligence as an Interface - How Conversation Bots Are Changing ...
 
Turning Your Passion Into Your Career
Turning Your Passion Into Your CareerTurning Your Passion Into Your Career
Turning Your Passion Into Your Career
 

Recently uploaded

How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
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...Drew Madelung
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 

Recently uploaded (20)

How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
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...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 

Game Development with TouchDevelop

  • 1. Sage Franch | @theTrendyTechie Building a Game with TouchDevelop
  • 2. Meet Sage Franch | @theTrendyTechie • Technical Evangelist – Interfacing with developers – Bringing Microsoft’s technology to you! • Proud geek and “Trendy Techie” – Find me online at my blog trendytechie.ca • Advocate for equality in technology • Student at Dalhousie University
  • 3.
  • 4. Why TouchDevelop? • It’s a snap to learn. • You learn coding concepts without worrying about semantics. • It makes building mobile games and apps easy. • It runs on anything (laptop, desktop, tablet, phone). • You can share your code and creations with friends. • It’s free • All you need is a browser.
  • 5. Which browsers can I use? • TouchDevelop is supported on the latest versions of most browsers. • To avoid a delay in your classes, make sure ahead of time that the browsers are updated • For a full list of supported browsers, see here: https://www.touchdevelop.com/app/current.browsers
  • 6. The Agenda • TouchDevelop tour • Important Coding Concepts: – Objects, Functions and Parameters – Variables – The TouchDevelop coordinate system – Conditional statements – On every frame – Loops • Play time! :D • Resources for teaching and learning
  • 10. What You Need to Know Important Coding Concepts
  • 11. Objects, Functions and Parameters object function parameter • Object: a representation of something in the game • Function: performs an action on the object it is associated with • Parameter: specifies the value of the function
  • 12. Variables • A variable holds data that can be used throughout a script. • Every variable has a name, a type, and a value. • A variable’s type describes the kind of data the variable can hold. – For example: A number, a string, a sprite • In TouchDevelop, a variable’s type is determined when it is initialized.
  • 13. The TouchDevelop coordinate system (0, 0) x axis y axis yINCREASING 1234567…
  • 14. Conditional Statements A conditional statement is special code for making decisions based on some condition. So what’s a condition? Anything statement that can be either true or false. If I am hungry, then I eat. The action taken if the condition is false. The action taken if the condition is true. Otherwise, I sleep. The condition. (It’s either true or false.)
  • 15. In code, conditional statements are also called if-then-else statements Condition Code to execute if the condition is true goes here. Code to execute if the condition is false goes here.
  • 16. BUT you have to pay attention to when the condition is checked…
  • 17. Computer games are a series of very fast frames Frame 1 Frame 2 Frame 3 Frame 4 Frame 5 Frame 6
  • 19. Use “on every frame” to perform checks continuously
  • 20. Loops A loop is a special tool in coding that lets us write code once and repeat it as many times as we’d like Repeat the following block of code X times: End of repeated block You get to specify this value. Whatever code you put here gets repeated X times. Tells the program that any code after this isn’t part of the code to be repeated.
  • 21. The syntax for a loop… The number of times the code is repeated. The code that will be repeated.Tells the program that any code after this isn’t part of the code to be repeated.
  • 23. So how do I get started? It’s easy! 1. Go to http://www.touchdevelop.com 2. Click . 3. And .
  • 24. Resources for Teaching and Learning
  • 25. Two Recommended Formats One-Day Event • Provide students with a “half- baked” game to fix and customize • Jetpack Jumper prompted tutorial • Estimated time: 2 hours maximum Multi-Day Event • Build a side scroller game from scratch • Use CODExist MVA as reference • Estimated time: 6-12 hours (flexible)
  • 26. Pre-course checklist • Will you provide students with devices or will they bring their own? • Do you have a reliable internet connection? • If the students will be watching videos or working with tutorials, have you asked them to bring headsets?
  • 27. When teaching TouchDevelop • Emphasize the excitement of coding • Be prepared to handle students with different levels of coding experience • Make sure to leave time for customization • Encourage students to share their games, both in show-and-tell in person and online on social media • Provide NEXT STEPS – how can they continue once the program is over? Publish their game to app stores, build more games, etc.
  • 28. TouchDevelop Resources • Jetpack Jumper Tutorial with prompts: aka.ms/startcoding • “Broken” Jetpack game without prompts: aka.ms/jetpackstarter • Complete Jetpack Jumper: aka.ms/jetpackcomplete • Hour of Code video: http://channel9.msdn.com/events/Hour-of- Code/2014/LearningToCode • CODExist: The Birth of Bot course on Microsoft Virtual Academy (build a side scroller game from scratch): http://www.microsoftvirtualacademy.com/training- courses/codexist-the-birth-of-bot

Editor's Notes

  1. Lots of complicated stuff, like building a physics engine, is done for you.
  2. When you are signed in, your work is automatically saved.