Skip to content

Commit

Permalink
fix: 주석 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
tomatoziyun committed Dec 28, 2023
1 parent 80bfda9 commit 3d7473f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/game/dto/view-map.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,19 +181,19 @@ export class ViewMapDto {
for (let i = 0; i < Math.floor(piece); i++) {
ball.x += xChange * (ball.xVelocity > 0 ? 1 : -1);
ball.y += yChange * (ball.yVelocity > 0 ? 1 : -1);
console.log(`\nbefore piece ball.x: ${ball.x}`);
console.log(`before piece xVelocity: ${ball.xVelocity}`);
// console.log(`\nbefore piece ball.x: ${ball.x}`);
// console.log(`before piece xVelocity: ${ball.xVelocity}`);
await this.detectCollision();
console.log(`after piece ball.x: ${ball.x}`);
console.log(`after piece xVelocity: ${ball.xVelocity}`);
// console.log(`after piece ball.x: ${ball.x}`);
// console.log(`after piece xVelocity: ${ball.xVelocity}`);
}
ball.x += xRemain * (ball.xVelocity > 0 ? 1 : -1);
ball.y += yRemain * (ball.yVelocity > 0 ? 1 : -1);
console.log(`before remain ball.x: ${ball.x}`);
console.log(`before remain xVelocity: ${ball.xVelocity}`);
// console.log(`before remain ball.x: ${ball.x}`);
// console.log(`before remain xVelocity: ${ball.xVelocity}`);
await this.detectCollision();
console.log(`after remain ball.x: ${ball.x}`);
console.log(`after remain xVelocity: ${ball.xVelocity}`);
// console.log(`after remain ball.x: ${ball.x}`);
// console.log(`after remain xVelocity: ${ball.xVelocity}`);

//score
if (ball.x + this.ballRadius >= this.canvasWidth)
Expand Down

0 comments on commit 3d7473f

Please sign in to comment.