0

I have my code made but it says there's no output what do I do

14th Apr 2022, 1:01 AM
Logan Tullos
4 Answers
+ 3
Where is code?
14th Apr 2022, 2:38 AM
AĶ¢J
AĶ¢J - avatar
+ 1
Link your Code Bit so we can check it out :)
14th Apr 2022, 2:46 AM
Chris Coder
Chris Coder - avatar
0
let gameState = 'start'; let paddle_1 = document.querySelector('.paddle_1'); let paddle_2 = document.querySelector('.paddle_2'); let board = document.querySelector('.board'); let initial_ball = document.querySelector('.ball'); let ball = document.querySelector('.ball'); let score_1 = document.querySelector('.player_1_score'); let score_2 = document.querySelector('.player_2_score'); let message = document.querySelector('.message'); let paddle_1_coord = paddle_1.getBoundingClientRect(); let paddle_2_coord = paddle_2.getBoundingClientRect(); let initial_ball_coord = ball.getBoundingClientRect(); let ball_coord = initial_ball_coord; let board_coord = board.getBoundingClientRect(); let paddle_common =Ā  Ā Ā Ā Ā document.querySelector('.paddle').getBoundingClientRect(); Ā Ā  let dx = Math.floor(Math.random() * 4) + 3; let dy = Math.floor(Math.random() * 4) + 3; let dxd = Math.floor(Math.random() * 2); let dyd = Math.floor(Math.random() * 2); Ā Ā  document.addEventListener('keydown',
14th Apr 2022, 11:34 AM
Logan Tullos
0
I'm a bit new to code so I borrowed some. I was trying to make a simple pong game šŸ’€
14th Apr 2022, 11:35 AM
Logan Tullos