Commit 62f3f3ef by Иван Кубота

rows effect

parent dd51bf73
...@@ -19,6 +19,19 @@ Game({ ...@@ -19,6 +19,19 @@ Game({
clear(); clear();
//if(Math.floor(tfs%2>1)){ //if(Math.floor(tfs%2>1)){
render( Levels[ "Game" ] ); render( Levels[ "Game" ] );
ctx.globalCompositeOperation = 'color-burn';
var scale = ctx.lineWidth = Camera.scale;
ctx.strokeStyle = 'rgba('+[
1,1,1
]+', 0.05)';
ctx.beginPath();
for(var i = Camera.transformY(Camera.position[1])%Camera.scale; i < h; i+=scale*2){
ctx.moveTo(0, i);
ctx.lineTo(w, i);
}
ctx.stroke();
ctx.globalCompositeOperation = 'source-over';
//}else{ //}else{
// render( Levels[ "Dialog" ] ); // render( Levels[ "Dialog" ] );
//} //}
......
...@@ -47,6 +47,7 @@ class NPC extends GameObject { ...@@ -47,6 +47,7 @@ class NPC extends GameObject {
padding: [2, 1], padding: [2, 1],
offset: [0, 4] offset: [0, 4]
}); });
//this.debug(); //this.debug();
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment