SlideShare uma empresa Scribd logo
1 de 6
Baixar para ler offline
We might think that teaching coding is something boring and 
complicated. But when you base your exercises on games then… 
your students get astonished! 
Introducing a new subject can be threatening for some people. 
Things get worse for those students not prone to STEM matters.Then, how to make them buy 
your fabulous lessons about coding? Act as an illusionist. 
First of all switch your digital board and open your IDE (I’ve used Basic256). Start speaking about 
video games: how long they think a game needs to be coded, types of games, etc. Let them 
express themselves about the topic. 
Then start to explain what Tron is: a film by Disney which gave way to several games. Let them 
go on speaking about different aspects of the game while you start typing code. For sure you’ll 
listen to the silence (students suddenly shut up hypnotized by what you are doing) as you go on 
striking your keyboard, but break it to explain what you are doing and how (different aspects of 
coding, as main loops, debugging, variables, strategies, etc). 
Some tips: 
1. Use the help window: they should realize they don’t need to know everything by heart. If 
doubts pop up a helping window can also pop up. 
2. Make some mistakes on purpose: that’ll give them a good view of what debuging and 
trial­and­error 
are. 
3. Show some hesitation and use the expression “let’s try…” 
4. Use a scaffolding approach, constructing the main algorithm, and adding new elements 
around it as you continue.
My basic version of Tron game needs about 10 minutes top to be coded. When you execute the 
final code and the students see the results they get way surprised by how easily you can make 
games.
The coding phases go like this: 
1. Create a main loop and listen to the keyboard. If ESC is pressed exit the loop. 
2. Insert the code for the motorbike (a point) to go down the screen when pressing the 
down arrow. 
3. Do the same for the rest of the keys. 
4. Move the point around, with no physical restraints. 
5. Make the algorithm detect the walls left by the point, and make them “real”. 
6. Let the player win when getting to the bottom right corner. 
7. Add random spheres as obstacles. 
The lines of code look like this:
For more ideas about what games to code check the following list. MVC stands for 
model/view/controller, and AI for artificial intelligence. The grades have been given taking in 
count: that a student has to code them, and Basic’s features. 
Difficulty Text/graphic MVC Sprites Data AI 
Animal, 
vegetable, difficult text yes no matrix basic 
Arcanoid difficult graphic yes yes matrix no 
Asteroids medium graphic no yes array no 
Battleship medium both no no matrix no
Bejeweled difficult both yes yes matrix no 
Biggest card easy both no no array no 
Checkers difficult both yes no matrix yes 
Connect four medium both yes no matrix yes 
Conversation easy text no no variable no 
Dodger easy graphic no yes array no 
Escape the maze easy graphic both both matrix no 
Guess the number easy text no no variable basic 
Hang man medium both no no array no 
Land on the 
moon medium graphic no yes variable no 
Life's game medium graphic yes no matrix no 
Marble, chips... easy text no no variable no 
Master mind medium text no no array no 
Math sequences medium text no no array no 
Poker medium both yes no matrix medium 
Pong medium graphic no yes variable no 
Puzzle: match 
pairs easy both yes yes matrix no 
Puzzle: sliding medium both yes yes matrix no 
Simon says easy both yes no array no 
Snake difficult graphic yes yes matrix no 
Space invaders difficult graphic no yes array no 
Text adventure medium text yes no matrix no 
Three in a row medium both yes no matrix medium 
Tic­tac­toe 
easy both yes no matrix basic 
Tron easy graphic no no variable no
BIO 
Andoni Sanz /ʌnˈdɔnɪ sʌnθ/ is a Computer Scientist working as a STEM Teacher 
and IT researcher. Google Certified Educator and Moodle expert he’s 
immersed in a non-stop research on technology applied to education combined 
with the latest pedagogy trends, as b-learning, gamification or flipped 
classes. 
Actually he’s working on a project called Gamecodization: teaching coding 
through video games. 
For more information or to contact him: 
Blog: http://andonisanz.blogspot.com 
Website: http://www.andonisanz.com 
Coding: http://www.gamecodization.com 
Twitter: @andonisanz

Mais conteúdo relacionado

Destaque

Human resorce management ppt
Human resorce management pptHuman resorce management ppt
Human resorce management ppt
meenakshiduhan23
 
Soal un kimia sma 2014 1
Soal un kimia sma 2014 1Soal un kimia sma 2014 1
Soal un kimia sma 2014 1
Emily Emily
 

Destaque (11)

Blogging for students
Blogging for studentsBlogging for students
Blogging for students
 
50 Years
50 Years50 Years
50 Years
 
Web-gune itzelak eskura
Web-gune itzelak eskuraWeb-gune itzelak eskura
Web-gune itzelak eskura
 
Human resorce management ppt
Human resorce management pptHuman resorce management ppt
Human resorce management ppt
 
Harvard #projectzero - #visiblethinking - map of thought by Andoni Sanz
Harvard #projectzero - #visiblethinking - map of thought by Andoni SanzHarvard #projectzero - #visiblethinking - map of thought by Andoni Sanz
Harvard #projectzero - #visiblethinking - map of thought by Andoni Sanz
 
Euskal eskola publikoaren topaketa digitalak 2016: HAIDEI (@andonisanz)
Euskal eskola publikoaren topaketa digitalak 2016: HAIDEI (@andonisanz)Euskal eskola publikoaren topaketa digitalak 2016: HAIDEI (@andonisanz)
Euskal eskola publikoaren topaketa digitalak 2016: HAIDEI (@andonisanz)
 
#mooteu16 - Ikasketa esperientziaren hobekuntza (#gamification #visiblethinki...
#mooteu16 - Ikasketa esperientziaren hobekuntza (#gamification #visiblethinki...#mooteu16 - Ikasketa esperientziaren hobekuntza (#gamification #visiblethinki...
#mooteu16 - Ikasketa esperientziaren hobekuntza (#gamification #visiblethinki...
 
Adaptive missile guidance using gps
Adaptive missile guidance using gpsAdaptive missile guidance using gps
Adaptive missile guidance using gps
 
#Gamification mechanics in #education (Andoni Sanz)
#Gamification mechanics in #education (Andoni Sanz)#Gamification mechanics in #education (Andoni Sanz)
#Gamification mechanics in #education (Andoni Sanz)
 
The 8051 microcontroller
The 8051  microcontroller The 8051  microcontroller
The 8051 microcontroller
 
Soal un kimia sma 2014 1
Soal un kimia sma 2014 1Soal un kimia sma 2014 1
Soal un kimia sma 2014 1
 

Semelhante a Gamecodization

Games In Education For Linwood
Games In Education For LinwoodGames In Education For Linwood
Games In Education For Linwood
Andrew Robertson
 
Inquiry i chat. helen
Inquiry i chat. helenInquiry i chat. helen
Inquiry i chat. helen
Beth Lamb
 

Semelhante a Gamecodization (20)

Dodo does-math
Dodo does-mathDodo does-math
Dodo does-math
 
LAFS SVI Level 1 - Introduction
LAFS SVI Level 1 - IntroductionLAFS SVI Level 1 - Introduction
LAFS SVI Level 1 - Introduction
 
Machine Learning Workshop, TSEC 2020
Machine Learning Workshop, TSEC 2020Machine Learning Workshop, TSEC 2020
Machine Learning Workshop, TSEC 2020
 
About Coding Kids and Screaming Carrots - Georgios Kaleadis - JSConf EU 2018
About Coding Kids and Screaming Carrots - Georgios Kaleadis - JSConf EU 2018About Coding Kids and Screaming Carrots - Georgios Kaleadis - JSConf EU 2018
About Coding Kids and Screaming Carrots - Georgios Kaleadis - JSConf EU 2018
 
Game Design as an Intro to Computer Science (Meaningful Play 2014)
Game Design as an Intro to Computer Science (Meaningful Play 2014)Game Design as an Intro to Computer Science (Meaningful Play 2014)
Game Design as an Intro to Computer Science (Meaningful Play 2014)
 
Identifeye ar game documentation 12-14
Identifeye ar game documentation 12-14Identifeye ar game documentation 12-14
Identifeye ar game documentation 12-14
 
All I Ever Needed To Know About Programming
All I Ever Needed To Know About ProgrammingAll I Ever Needed To Know About Programming
All I Ever Needed To Know About Programming
 
Teaching Kids Game Programming
Teaching Kids Game ProgrammingTeaching Kids Game Programming
Teaching Kids Game Programming
 
A sample Lab report on a game.
A sample Lab report on a game. A sample Lab report on a game.
A sample Lab report on a game.
 
Games In Education For Linwood
Games In Education For LinwoodGames In Education For Linwood
Games In Education For Linwood
 
ICT for teachers
ICT for teachersICT for teachers
ICT for teachers
 
Coding Unplugged_Focus on problem solvin
Coding Unplugged_Focus on problem solvinCoding Unplugged_Focus on problem solvin
Coding Unplugged_Focus on problem solvin
 
The use of computer simulations & gaming to
The use of computer simulations & gaming toThe use of computer simulations & gaming to
The use of computer simulations & gaming to
 
Progression in programming with Scratch
Progression in programming with Scratch Progression in programming with Scratch
Progression in programming with Scratch
 
Intro to Coding Pt 2
Intro to Coding Pt 2Intro to Coding Pt 2
Intro to Coding Pt 2
 
Web2.0 And You Ppt
Web2.0 And You PptWeb2.0 And You Ppt
Web2.0 And You Ppt
 
A Short Workshop in Game Design
A Short Workshop in Game DesignA Short Workshop in Game Design
A Short Workshop in Game Design
 
Task 8
Task 8Task 8
Task 8
 
Inquiry i chat. helen
Inquiry i chat. helenInquiry i chat. helen
Inquiry i chat. helen
 
Scratch Parrot Game
Scratch Parrot GameScratch Parrot Game
Scratch Parrot Game
 

Mais de Andoni Sanz

Mais de Andoni Sanz (10)

Liderazgo en tecnologia educativa
Liderazgo en tecnologia educativaLiderazgo en tecnologia educativa
Liderazgo en tecnologia educativa
 
BerrIKT IES Unamuno hitzaldia Bilbao
BerrIKT IES Unamuno hitzaldia BilbaoBerrIKT IES Unamuno hitzaldia Bilbao
BerrIKT IES Unamuno hitzaldia Bilbao
 
Eskola digitala 2017
Eskola digitala 2017 Eskola digitala 2017
Eskola digitala 2017
 
Mobile learning (Andoni Sanz)
Mobile learning (Andoni Sanz)Mobile learning (Andoni Sanz)
Mobile learning (Andoni Sanz)
 
Codigos QR en educacion (Andoni Sanz)
Codigos QR en educacion (Andoni Sanz)Codigos QR en educacion (Andoni Sanz)
Codigos QR en educacion (Andoni Sanz)
 
#Moodle + #gamification (Andoni Sanz)
#Moodle + #gamification (Andoni Sanz)#Moodle + #gamification (Andoni Sanz)
#Moodle + #gamification (Andoni Sanz)
 
#Google #GAFE summit - Euskadi 2015 - #screencast, #p2p review (@andonisanz)
#Google #GAFE summit - Euskadi 2015 - #screencast, #p2p review (@andonisanz)#Google #GAFE summit - Euskadi 2015 - #screencast, #p2p review (@andonisanz)
#Google #GAFE summit - Euskadi 2015 - #screencast, #p2p review (@andonisanz)
 
Flipped Classes
Flipped ClassesFlipped Classes
Flipped Classes
 
Malware cleaning
Malware cleaningMalware cleaning
Malware cleaning
 
#Gamification and #moodle: the how to's (@andonisanz)
#Gamification and #moodle: the how to's (@andonisanz)#Gamification and #moodle: the how to's (@andonisanz)
#Gamification and #moodle: the how to's (@andonisanz)
 

Último

Último (20)

UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 

Gamecodization

  • 1. We might think that teaching coding is something boring and complicated. But when you base your exercises on games then… your students get astonished! Introducing a new subject can be threatening for some people. Things get worse for those students not prone to STEM matters.Then, how to make them buy your fabulous lessons about coding? Act as an illusionist. First of all switch your digital board and open your IDE (I’ve used Basic256). Start speaking about video games: how long they think a game needs to be coded, types of games, etc. Let them express themselves about the topic. Then start to explain what Tron is: a film by Disney which gave way to several games. Let them go on speaking about different aspects of the game while you start typing code. For sure you’ll listen to the silence (students suddenly shut up hypnotized by what you are doing) as you go on striking your keyboard, but break it to explain what you are doing and how (different aspects of coding, as main loops, debugging, variables, strategies, etc). Some tips: 1. Use the help window: they should realize they don’t need to know everything by heart. If doubts pop up a helping window can also pop up. 2. Make some mistakes on purpose: that’ll give them a good view of what debuging and trial­and­error are. 3. Show some hesitation and use the expression “let’s try…” 4. Use a scaffolding approach, constructing the main algorithm, and adding new elements around it as you continue.
  • 2. My basic version of Tron game needs about 10 minutes top to be coded. When you execute the final code and the students see the results they get way surprised by how easily you can make games.
  • 3. The coding phases go like this: 1. Create a main loop and listen to the keyboard. If ESC is pressed exit the loop. 2. Insert the code for the motorbike (a point) to go down the screen when pressing the down arrow. 3. Do the same for the rest of the keys. 4. Move the point around, with no physical restraints. 5. Make the algorithm detect the walls left by the point, and make them “real”. 6. Let the player win when getting to the bottom right corner. 7. Add random spheres as obstacles. The lines of code look like this:
  • 4. For more ideas about what games to code check the following list. MVC stands for model/view/controller, and AI for artificial intelligence. The grades have been given taking in count: that a student has to code them, and Basic’s features. Difficulty Text/graphic MVC Sprites Data AI Animal, vegetable, difficult text yes no matrix basic Arcanoid difficult graphic yes yes matrix no Asteroids medium graphic no yes array no Battleship medium both no no matrix no
  • 5. Bejeweled difficult both yes yes matrix no Biggest card easy both no no array no Checkers difficult both yes no matrix yes Connect four medium both yes no matrix yes Conversation easy text no no variable no Dodger easy graphic no yes array no Escape the maze easy graphic both both matrix no Guess the number easy text no no variable basic Hang man medium both no no array no Land on the moon medium graphic no yes variable no Life's game medium graphic yes no matrix no Marble, chips... easy text no no variable no Master mind medium text no no array no Math sequences medium text no no array no Poker medium both yes no matrix medium Pong medium graphic no yes variable no Puzzle: match pairs easy both yes yes matrix no Puzzle: sliding medium both yes yes matrix no Simon says easy both yes no array no Snake difficult graphic yes yes matrix no Space invaders difficult graphic no yes array no Text adventure medium text yes no matrix no Three in a row medium both yes no matrix medium Tic­tac­toe easy both yes no matrix basic Tron easy graphic no no variable no
  • 6. BIO Andoni Sanz /ʌnˈdɔnɪ sʌnθ/ is a Computer Scientist working as a STEM Teacher and IT researcher. Google Certified Educator and Moodle expert he’s immersed in a non-stop research on technology applied to education combined with the latest pedagogy trends, as b-learning, gamification or flipped classes. Actually he’s working on a project called Gamecodization: teaching coding through video games. For more information or to contact him: Blog: http://andonisanz.blogspot.com Website: http://www.andonisanz.com Coding: http://www.gamecodization.com Twitter: @andonisanz