Mercurial > hg > Members > e105711
diff webGL/src/mainfunc.js @ 13:74dc1d5f2e47 draft
can select music
author | e105711 <yomitan.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 07 Jun 2012 02:47:08 +0900 |
parents | 98a90bc478b3 |
children | 80789d11de5c |
line wrap: on
line diff
--- a/webGL/src/mainfunc.js Sun May 27 20:06:35 2012 +0900 +++ b/webGL/src/mainfunc.js Thu Jun 07 02:47:08 2012 +0900 @@ -22,17 +22,25 @@ objsArray.push(new Obj(100,90,1,1)); } +function toMenu(){ + MODE = MENU; + objsArray.length = 0; + objsArray.push(new Obj(100,7.8125,1,7)); // select music +} + function toMain(){ MODE = MAIN; objsArray.length = 0; - objsArray.push(new Obj(100,7.8125,1,2)); - objsArray.push(new Obj(100,105,1,3)); + objsArray.push(new Obj(100,7.8125,1,2)); // main mode + objsArray.push(new Obj(100,105,1,3)); // judge line } function toPlay(){ MODE = PLAY; objsArray.length = 0; - objsArray.push(new Obj(100,7.8125,1,2)); + objsArray.push(new Obj(100,7.8125,1,2)); // main mode + loadMusics(musicsArray[cursor.getIndex()]); +// audioBGM.play(); } @@ -46,7 +54,7 @@ } if(MODE==PLAY){ drawNote(ctx); - PutSpriteF(ctx,100,105,1,imgs[3]); //line + PutSpriteF(ctx,100,105,1,imgs[3]); // line } PutSpriteF(ctx,100,70,1,imgs[6]); // background @@ -55,4 +63,5 @@ function playUpdate(){ updateNote(); -} \ No newline at end of file +} +