Mercurial > hg > Members > e105711
diff webGL/src/f4notes.js @ 4:a22ff379000f draft
5th,commit test
author | e105711 <yomitan.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 04 May 2012 01:18:13 +0900 |
parents | 55702e139f69 |
children | a730b51d59eb |
line wrap: on
line diff
--- a/webGL/src/f4notes.js Thu May 03 15:42:45 2012 +0900 +++ b/webGL/src/f4notes.js Fri May 04 01:18:13 2012 +0900 @@ -1,9 +1,12 @@ +testBPM = 121; + function drawNote(ctx,note){ if(note.getLocate() > 105 && note.isAlive())//105:line's locate note.kill(); if(!note.isAlive()) return; - note.updLocate(121,1.0); + note.updLocate(testBPM,1.0); + if(note.getLane()%2!=0){ PutSpriteF(ctx,58.984375+(note.getLane()-1)*11.71875,note.getLocate(),1,imgs[4]); } @@ -13,6 +16,16 @@ } function loadNotes(){ +/* notesArray.push(new Note(0,4,testBPM)); + notesArray.push(new Note(0.25,4,testBPM)); + notesArray.push(new Note(0.5,4,testBPM)); + notesArray.push(new Note(0.75,4,testBPM)); + notesArray.push(new Note(1.0,4,testBPM)); + notesArray.push(new Note(1.25,4,testBPM)); + notesArray.push(new Note(1.5,4,testBPM)); + notesArray.push(new Note(1.75,4,testBPM)); +*/ + notesArray.push(new Note(0,4,121)); notesArray.push(new Note(1.736,4,121));