Press Space
for(var i = 0; i<l; i++) {
var obj = soundGrid[i]
console.log(obj)
if (x>= obj.x1 && x < obj.x2 && y > obj.y1 && y < obj.y2) {
//Work around non-pre-loaded sounds
soundManager.createSound({
url:obj.content.file,
id:obj.content.name
})
soundManager.play(obj.content.name)
//Fixed as of 4/10/2015 :-)
//sound(obj.content.name)
}
}
NOTE: There is currently an issue with playing sounds on Android devices. They will only play when triggered by a user action.
An hour coding and 4 hours reading a novel
vs
An 4 hours coding and an hour reading a novel
Not all screen time is equal
Final Thought...
Credits
http://www.colleenl.in/helicoprion/wp-content/uploads/2012/09/STEM-All.png
https://scratch.mit.edu/
http://www.scratchjr.org/
http://code.org/
http://hourofcode.com/us
https://www.eliwhitney.org/7/workshop/projects/code-org-scratch
http://bit.ly/pbworks-Guessing-Game-by-M-Leishman
http://www.geekwire.com/2014/let-code-disneys-frozen-teams-code-org-inspire-young-programmers/
http://technogstic.blogspot.com/2014/03/scratch-jr-kickstarter-aims-to-teach.html
https://bitsbox.com