Mercurial > hg > Members > e105711
changeset 10:98a90bc478b3 draft
Change function name.upd->update
author | e105711 <yomitan.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 17 May 2012 16:04:02 +0900 |
parents | 52045eb7a220 |
children | 502bc41e0c59 |
files | webGL/src/Note.js webGL/src/f4notes.js webGL/src/f4xml.js webGL/src/mainfunc.js |
diffstat | 4 files changed, 6 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/webGL/src/Note.js Tue May 15 01:30:47 2012 +0900 +++ b/webGL/src/Note.js Thu May 17 16:04:02 2012 +0900 @@ -21,7 +21,7 @@ return this.locate; }; -Note.prototype.updLocate = function(BPM,sp){ +Note.prototype.updateLocate = function(BPM,sp){ //sp:HI-SPEED,BPM:Music's BPM if(this.locate<105.0) this.locate = 105.0 - ((this.time-audioBGM.currentTime)*BPM*ALPHA/Interval);
--- a/webGL/src/f4notes.js Tue May 15 01:30:47 2012 +0900 +++ b/webGL/src/f4notes.js Thu May 17 16:04:02 2012 +0900 @@ -11,14 +11,14 @@ } } -function updNote(){ +function updateNote(){ for(i=0;i<notesArray.length;i++){ var note = notesArray[i]; if(!note.isAlive()){ notesArray.splice(i,1); continue; } - note.updLocate(testBPM,1.0); + note.updateLocate(testBPM,1.0); if(note.getLocate() >= 105 && note.isAlive() && AUTO){//105:line's locate note.autoSound();
--- a/webGL/src/f4xml.js Tue May 15 01:30:47 2012 +0900 +++ b/webGL/src/f4xml.js Thu May 17 16:04:02 2012 +0900 @@ -127,7 +127,7 @@ indexData.push(index); index++; } - //オブジェクトの最大・最小のx,y座標を求める + // Get object's maximum and minimum X,Y. if ( i == 0) { xmax = geometryData[0]; xmin = geometryData[0]; @@ -152,7 +152,7 @@ } var retval = { }; - //オブジェクトの横幅,縦幅を求める + // Get ogject's width and height. retval.w = xmax - xmin; retval.h = ymax - ymin;
--- a/webGL/src/mainfunc.js Tue May 15 01:30:47 2012 +0900 +++ b/webGL/src/mainfunc.js Thu May 17 16:04:02 2012 +0900 @@ -33,7 +33,6 @@ MODE = PLAY; objsArray.length = 0; objsArray.push(new Obj(100,7.8125,1,2)); -// objsArray.push(new Obj(100,105,1,3)); } @@ -55,5 +54,5 @@ } function playUpdate(){ - updNote(); + updateNote(); } \ No newline at end of file