diff webGL/src/f4notes.js @ 2:55702e139f69 draft

3rd,show Notes and set Timing, but it is not completely.
author e105711 <yomitan.ie.u-ryukyu.ac.jp>
date Thu, 03 May 2012 00:52:06 +0900
parents
children a22ff379000f
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/webGL/src/f4notes.js	Thu May 03 00:52:06 2012 +0900
@@ -0,0 +1,31 @@
+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);
+    if(note.getLane()%2!=0){
+	PutSpriteF(ctx,58.984375+(note.getLane()-1)*11.71875,note.getLocate(),1,imgs[4]);
+    }
+    else{
+	PutSpriteF(ctx,58.984375+(note.getLane()-1)*11.71875,note.getLocate(),1,imgs[5]);
+    }
+}
+
+function loadNotes(){
+    notesArray.push(new Note(0,4,121));
+    notesArray.push(new Note(1.736,4,121));
+
+    notesArray.push(new Note(1.983,4,121));
+    notesArray.push(new Note(3.719,4,121));
+
+    notesArray.push(new Note(3.967,4,121));
+    notesArray.push(new Note(4.215,4,121));
+    notesArray.push(new Note(5.702,4,121));
+
+    notesArray.push(new Note(5.950,4,121));
+    notesArray.push(new Note(6.942,4,121));
+    notesArray.push(new Note(7.314,4,121));
+    notesArray.push(new Note(7.686,4,121));
+
+}
\ No newline at end of file