June 2015
Beginner
354 pages
8h 23m
English
Carry out the following steps:
html5games.audio.js file and add the code as follows: var audiogame = {
isRecordMode : true,
//existing code herekeydown event handler. This code stores all our pressed keys in an array and prints them out to the console when the semicolon key is pressed:if (game.isRecordMode) { // print the stored music notes data when press ";" (186) if (e.which === 186) { var musicNotesString = ""; for(var i=0, len=game.musicNotes.length; i<len; i++) { musicNotesString += game.musicNotes[i].time + "," + game.musicNotes[i].line+";"; ...Read now
Unlock full access