comparison webGL/src/mainfunc.js @ 9:52045eb7a220 draft

Add judgement function
author e105711 <yomitan.ie.u-ryukyu.ac.jp>
date Tue, 15 May 2012 01:30:47 +0900
parents 040c922bd7ff
children 98a90bc478b3
comparison
equal deleted inserted replaced
8:040c922bd7ff 9:52045eb7a220
31 31
32 function toPlay(){ 32 function toPlay(){
33 MODE = PLAY; 33 MODE = PLAY;
34 objsArray.length = 0; 34 objsArray.length = 0;
35 objsArray.push(new Obj(100,7.8125,1,2)); 35 objsArray.push(new Obj(100,7.8125,1,2));
36 objsArray.push(new Obj(100,105,1,3)); 36 // objsArray.push(new Obj(100,105,1,3));
37 } 37 }
38 38
39 39
40 function drawObj(ctx){ 40 function drawObj(ctx){
41 reshape(ctx); 41 reshape(ctx);
45 var obj = objsArray[i]; 45 var obj = objsArray[i];
46 PutSpriteF(ctx,obj.x,obj.y,obj.scale,imgs[obj.imgNo]); 46 PutSpriteF(ctx,obj.x,obj.y,obj.scale,imgs[obj.imgNo]);
47 } 47 }
48 if(MODE==PLAY){ 48 if(MODE==PLAY){
49 drawNote(ctx); 49 drawNote(ctx);
50 PutSpriteF(ctx,100,105,1,imgs[3]); //line
50 } 51 }
51 PutSpriteF(ctx,100,70,1,imgs[6]); // background 52 PutSpriteF(ctx,100,70,1,imgs[6]); // background
53
52 ctx.flush(); 54 ctx.flush();
53 } 55 }
54 56
55 function playUpdate(){ 57 function playUpdate(){
56 updNote(); 58 updNote();