Drag

About The Project

I built a simple Pong-inspired Atari game where you control the paddle using your mouse to battle an AI opponent. It features retro sounds, a custom background, and dynamic ball physics that speed up with each hit. It's nothing fancy, but it was a lot of fun to code and play around with!

What's Used:

I used JavaScript for this project because it's perfect for creating interactive, browser-based games. With the HTML5 canvas and JavaScript’s ability to handle animations, input, and sound, it allowed me to build a dynamic, real-time game without relying on external libraries or complex setups.

  • javaScript
Image
Image

Project Description

I built this Pong-style Atari game to showcase my JavaScript skills. Using the HTML5 canvas, I rendered the paddles, ball, and background, with mouse movement controlling the player paddle. The ball bounces off the paddles and walls, triggering random sound notes using the Web Audio API. The game loop updates 50 times per second via setInterval, keeping the gameplay smooth. The AI paddle follows the ball using a simple algorithm, offering a fun challenge. This project was a way to experiment with canvas graphics, basic physics, and audio, showing how JS can be used for more than just web apps!