v1 #4
共有 1 個檔案被更改,包括 9 行新增 和 1 行删除
|
@ -1,4 +1,4 @@
|
|||
let drawPortals = true;
|
||||
let drawPortals = false;
|
||||
let drawCollisions = false;
|
||||
|
||||
const imgPlayer = new Image();
|
||||
|
@ -147,6 +147,14 @@ class Render {
|
|||
this.ctx.fillStyle = "rgba(255, 0, 0, 0.5)";
|
||||
this.ctx.fillRect(s.x,s.y,s.w,s.h);
|
||||
});
|
||||
maps[player.z].circles.forEach((s) => {
|
||||
this.ctx.beginPath();
|
||||
this.ctx.arc(s.x, s.y, s.r, 0, 3 * Math.PI);
|
||||
this.ctx.fillStyle = "rgba(255, 0, 0, 0.5)";
|
||||
this.ctx.fill();
|
||||
this.ctx.stroke();
|
||||
this.ctx.closePath();
|
||||
});
|
||||
}
|
||||
|
||||
cars.forEach((car) => {
|
||||
|
|
載入中…
新增問題並參考