Dev Log: 20 Games Challenge: Game One: Pong
Hello! Welcome to my Dev Log! In this video I'm going to go through my code for the first game in the 20 games challenge for video game development, Pong. I create this game in basic HTML, CSS, and JavaScript so it can be played in any web browser. If you like this video, please be sure to like and subscribe! Thanks for watching!
Game can be played here: https://hoppy-hacker.itch.io/pong
The goals for this game are:
Create arena with two walls and divider.
Add paddle on either side controlled by players.
Add ball that moves around and bounces off walls and paddles.
Detect when ball leaves and assign point to player.
Track and display score for each player.
Timestamps:
00:00 Intro
00:29 HTML
01:16 CSS
02:57 JavaScript
03:49 Classes
04:45 Input Handler
07:28 Paddle
09:06 Paddle One
12:20 Paddle Two
14:30 Ball
23:08 Game
26:29 Animation Function
27:40 Bug Fixes
28:25 Game Testing
29:20 Outro