Feature/advanced game mechanics #5

Merged
ilia merged 30 commits from feature/advanced-game-mechanics into main 2026-07-19 15:09:22 +00:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit c7721f2b1a - Show all commits
+1 -1
View File
@@ -6,7 +6,7 @@ export const PADDLE_HEIGHT = 10;
export const BALL_RADIUS = 10;
export const BALL_SPEED = 3;
export const BALL_INITIAL_ANGLE = 180;
export const BALL_INITIAL_ANGLE = 0;
export const BRICK_WIDTH = 40;
export const BRICK_HEIGHT = 10;
+2 -2
View File
@@ -24,8 +24,8 @@ export class Game {
*/
constructor(columnAmount, rowAmount) {
this.ball = new Ball(
100,
100,
CONTAINER_WIDTH / 2 - BALL_RADIUS,
CONTAINER_HEIGHT / 2 - BALL_RADIUS,
BALL_RADIUS,
BALL_SPEED * Math.cos(BALL_INITIAL_ANGLE),
-1 * BALL_SPEED * Math.sin(BALL_INITIAL_ANGLE),