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

rows effect

parent dd51bf73
......@@ -19,6 +19,19 @@ Game({
clear();
//if(Math.floor(tfs%2>1)){
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{
// render( Levels[ "Dialog" ] );
//}
......
......@@ -47,6 +47,7 @@ class NPC extends GameObject {
padding: [2, 1],
offset: [0, 4]
});
//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