From the course: ChatGPT for Web Developers

Unlock the full course today

Join today to access over 24,000 courses taught by industry experts.

Create a 2D game using JavaScript

Create a 2D game using JavaScript - ChatGPT Tutorial

From the course: ChatGPT for Web Developers

Create a 2D game using JavaScript

- [Instructor] In this video, recreate a simple breakout game written in pure JavaScript. The game is Breakout Ball, inspired by the famous Breakout arcade video game. Originally released in 1976, the game was designed by Steve Wozniak, developed and published by Atari. And it is very similar to the design of the Pong game. So in this game, you have a layer of bricks lines on the top third of the screen, and the goal is to destroy them by repeatedly hit them by bouncing a ball off a paddle. So I found this step-by-step tutorial online that teaches you how to build the game in 10 steps. And so first you create and draw the Canvas. Step two and three, you move the ball, and you create the bounce off the walls by detecting the collision. Step four, you create the paddle and add the controls to move it left and right. Then step five, this is the game over in the case that you miss the ball and that it falls off the…

Contents