Skip to content

Commit

Permalink
bug when page is online
Browse files Browse the repository at this point in the history
  • Loading branch information
perymimon committed Aug 11, 2024
2 parents 315e9fe + 4aab28a commit a1b5274
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions integrated/car.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ carImg.onload = function () {


export default class Car {
constructor(x, y, width, height, {
controlType = 'DUMMY', angle = 0, maxSpeed = 4,
color = "blue", label = ''
} = {}) {
constructor(x, y, width, height, {controlType = 'DUMMY', angle = 0, maxSpeed = 4, color = "blue", label=''} = {}) {
this.x = x;
this.y = y;
this.width = width;
Expand Down Expand Up @@ -55,7 +52,7 @@ export default class Car {
maskCtx.globalCompositeOperation = "destination-atop";
maskCtx.drawImage(carImg, 0, 0, this.width, this.height);
})
debugger


}

Expand Down

0 comments on commit a1b5274

Please sign in to comment.