Escolar Documentos
Profissional Documentos
Cultura Documentos
complicated.Butwhenyoubaseyourexercisesongamesthen
yourstudentsgetastonished!
Introducinganewsubjectcanbethreateningforsomepeople.
ThingsgetworseforthosestudentsnotpronetoSTEMmatters.Then,howtomakethembuy
yourfabulouslessonsaboutcoding?Actasanillusionist.
FirstofallswitchyourdigitalboardandopenyourIDE(IveusedBasic256).Startspeakingabout
videogames:howlongtheythinkagameneedstobecoded,typesofgames,etc.Letthem
expressthemselvesaboutthetopic.
ThenstarttoexplainwhatTronis:afilmbyDisneywhichgavewaytoseveralgames.Letthem
goonspeakingaboutdifferentaspectsofthegamewhileyoustarttypingcode.Forsureyoull
listentothesilence(studentssuddenlyshutuphypnotizedbywhatyouaredoing)asyougoon
strikingyourkeyboard,butbreakittoexplainwhatyouaredoingandhow(differentaspectsof
coding,asmainloops,debugging,variables,strategies,etc).
Sometips:
1. Usethehelpwindow:theyshouldrealizetheydontneedtoknoweverythingbyheart.If
doubtspopupahelpingwindowcanalsopopup.
2. Makesomemistakesonpurpose:thatllgivethemagoodviewofwhatdebugingand
trialanderrorare.
3. Showsomehesitationandusetheexpressionletstry
4. Useascaffoldingapproach,constructingthemainalgorithm,andaddingnewelements
arounditasyoucontinue.
MybasicversionofTrongameneedsabout10minutestoptobecoded.Whenyouexecutethe
finalcodeandthestudentsseetheresultstheygetwaysurprisedbyhoweasilyyoucanmake
games.
Thecodingphasesgolikethis:
1. Createamainloopandlistentothekeyboard.IfESCispressedexittheloop.
2. Insertthecodeforthemotorbike(apoint)togodownthescreenwhenpressingthe
downarrow.
3. Dothesamefortherestofthekeys.
4. Movethepointaround,withnophysicalrestraints.
5. Makethealgorithmdetectthewallsleftbythepoint,andmakethemreal.
6. Lettheplayerwinwhengettingtothebottomrightcorner.
7. Addrandomspheresasobstacles.
Thelinesofcodelooklikethis:
Formoreideasaboutwhatgamestocodecheckthefollowinglist.MVCstandsfor
model/view/controller,andAIforartificialintelligence.Thegradeshavebeengiventakingin
count:thatastudenthastocodethem,andBasicsfeatures.
BIO
Andoni Sanz /ndn sn/ is a Computer Scientist working as a STEM Teacher
and IT researcher. Google Certified Educator and Moodle expert hes
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 hes 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