
Learn to animate and draw on the canvas, handle keyboard events, track objects, and implement collision detection to build a basic pong game in HTML5 canvas with JavaScript.
Update your workflow with Visual Studio Code for writing HTML, JavaScript, and CSS, and learn to run in a browser with the live server extension.
Set up a basic html page with doctype html, a title, and a linked stylesheet, then create a 600 by 480 canvas with id myCanvas and link a script.
Learn to draw rectangles, text, triangles, and circles on HTML5 canvas using JavaScript. Position shapes dynamically with a player object, and master fill and stroke styles, fonts, and paths.
Add keyboard interaction to a simple HTML5 canvas game by tracking arrow key presses with a keys object, handling keydown and keyup, and moving a rectangle in the draw loop.
Learn to implement a second player in a simple HTML5 canvas pong game using separate key objects, dynamic player properties, and blue versus red controls.
Learn to create smooth, continuous animations in an HTML5 canvas game by using requestAnimationFrame within the draw loop, updating keyboard-based player movement and rendering frames.
Learn to implement collision detection between two objects on an HTML5 canvas using JavaScript. Track object positions, width, height, and run a collision check to detect hits between paddles.
Build a bouncing ball in an HTML5 canvas with JavaScript by creating a ball object, moving it on x and y, and reversing direction on collisions with edges or paddles.
Implement final tweaks to a JavaScript pong game, adding a score object and score display, ball reset on scores, and paddle boundary controls for a polished gameplay experience.
Create a JavaScript pong game by building an HTML canvas, linking JavaScript and styles, handling keyboard input, moving paddles and ball, detecting collisions, rendering with requestAnimationFrame, and resetting with scorekeeping.
Explore how you can create a quick simple game using JavaScript and HTML5 canvas element
Create an HTML5 Pong Game from scratch
Learn coding with FUN interactive game development - See what you can build in less than 1 hour with JavaScript!!!
Course covers all the core functions needed in a game
Basics of drawing on HTML5 canvas
How to create and track key presses
Setting basic game objects to manipulate and move on screen
Planning and game concepts
Adding second player and creating interaction
How to setup collision detection of two objects in canvas
How to add a bouncing ball on screen within HTML5 canvas
How to create smooth animations with JavaScript request animation frame object
Game review and how to make tweaks and adjustments
Source code is included so you can build your own version of the game as you go through the lessons
Quick straight to the point instruction by professional developer with over 19 years of experience - ready to help you learn and answer any questions you may have.
Learn and explore what HTML is and how it can be used to create amazing web pages - Hypertext Markup Language is the standard markup language for documents designed to be displayed in a web browser. It can be assisted by technologies such as Cascading Style Sheets and scripting languages such as JavaScript