annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
a22ff379000f 5th,commit test
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents: 2
diff changeset
1 testBPM = 121;
a22ff379000f 5th,commit test
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents: 2
diff changeset
2
2
55702e139f69 3rd,show Notes and set Timing, but it is not completely.
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 function drawNote(ctx,note){
55702e139f69 3rd,show Notes and set Timing, but it is not completely.
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 if(note.getLocate() > 105 && note.isAlive())//105:line's locate
55702e139f69 3rd,show Notes and set Timing, but it is not completely.
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 note.kill();
55702e139f69 3rd,show Notes and set Timing, but it is not completely.
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 if(!note.isAlive())
55702e139f69 3rd,show Notes and set Timing, but it is not completely.
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 return;
4
a22ff379000f 5th,commit test
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents: 2
diff changeset
8 note.updLocate(testBPM,1.0);
a22ff379000f 5th,commit test
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents: 2
diff changeset
9
2
55702e139f69 3rd,show Notes and set Timing, but it is not completely.
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 if(note.getLane()%2!=0){
55702e139f69 3rd,show Notes and set Timing, but it is not completely.
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 PutSpriteF(ctx,58.984375+(note.getLane()-1)*11.71875,note.getLocate(),1,imgs[4]);
55702e139f69 3rd,show Notes and set Timing, but it is not completely.
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 }
55702e139f69 3rd,show Notes and set Timing, but it is not completely.
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 else{
55702e139f69 3rd,show Notes and set Timing, but it is not completely.
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 PutSpriteF(ctx,58.984375+(note.getLane()-1)*11.71875,note.getLocate(),1,imgs[5]);
55702e139f69 3rd,show Notes and set Timing, but it is not completely.
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 }
55702e139f69 3rd,show Notes and set Timing, but it is not completely.
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 }
55702e139f69 3rd,show Notes and set Timing, but it is not completely.
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents:
diff changeset
17
55702e139f69 3rd,show Notes and set Timing, but it is not completely.
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 function loadNotes(){
4
a22ff379000f 5th,commit test
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents: 2
diff changeset
19 /* notesArray.push(new Note(0,4,testBPM));
a22ff379000f 5th,commit test
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents: 2
diff changeset
20 notesArray.push(new Note(0.25,4,testBPM));
a22ff379000f 5th,commit test
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents: 2
diff changeset
21 notesArray.push(new Note(0.5,4,testBPM));
a22ff379000f 5th,commit test
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents: 2
diff changeset
22 notesArray.push(new Note(0.75,4,testBPM));
a22ff379000f 5th,commit test
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents: 2
diff changeset
23 notesArray.push(new Note(1.0,4,testBPM));
a22ff379000f 5th,commit test
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents: 2
diff changeset
24 notesArray.push(new Note(1.25,4,testBPM));
a22ff379000f 5th,commit test
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents: 2
diff changeset
25 notesArray.push(new Note(1.5,4,testBPM));
a22ff379000f 5th,commit test
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents: 2
diff changeset
26 notesArray.push(new Note(1.75,4,testBPM));
a22ff379000f 5th,commit test
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents: 2
diff changeset
27 */
a22ff379000f 5th,commit test
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents: 2
diff changeset
28
2
55702e139f69 3rd,show Notes and set Timing, but it is not completely.
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents:
diff changeset
29 notesArray.push(new Note(0,4,121));
55702e139f69 3rd,show Notes and set Timing, but it is not completely.
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents:
diff changeset
30 notesArray.push(new Note(1.736,4,121));
55702e139f69 3rd,show Notes and set Timing, but it is not completely.
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents:
diff changeset
31
55702e139f69 3rd,show Notes and set Timing, but it is not completely.
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents:
diff changeset
32 notesArray.push(new Note(1.983,4,121));
55702e139f69 3rd,show Notes and set Timing, but it is not completely.
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents:
diff changeset
33 notesArray.push(new Note(3.719,4,121));
55702e139f69 3rd,show Notes and set Timing, but it is not completely.
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents:
diff changeset
34
55702e139f69 3rd,show Notes and set Timing, but it is not completely.
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents:
diff changeset
35 notesArray.push(new Note(3.967,4,121));
55702e139f69 3rd,show Notes and set Timing, but it is not completely.
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents:
diff changeset
36 notesArray.push(new Note(4.215,4,121));
55702e139f69 3rd,show Notes and set Timing, but it is not completely.
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents:
diff changeset
37 notesArray.push(new Note(5.702,4,121));
55702e139f69 3rd,show Notes and set Timing, but it is not completely.
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents:
diff changeset
38
55702e139f69 3rd,show Notes and set Timing, but it is not completely.
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents:
diff changeset
39 notesArray.push(new Note(5.950,4,121));
55702e139f69 3rd,show Notes and set Timing, but it is not completely.
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents:
diff changeset
40 notesArray.push(new Note(6.942,4,121));
55702e139f69 3rd,show Notes and set Timing, but it is not completely.
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents:
diff changeset
41 notesArray.push(new Note(7.314,4,121));
55702e139f69 3rd,show Notes and set Timing, but it is not completely.
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents:
diff changeset
42 notesArray.push(new Note(7.686,4,121));
55702e139f69 3rd,show Notes and set Timing, but it is not completely.
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents:
diff changeset
43
55702e139f69 3rd,show Notes and set Timing, but it is not completely.
e105711 <yomitan.ie.u-ryukyu.ac.jp>
parents:
diff changeset
44 }