Tagged: canvas

Part 1: Canvas, Game Loop and Paddles
Set up a canvas with Vite and TypeScript, write a frame-rate independent game loop and move two paddles with the keyboard.
Beginner20 min
Part 2: Ball, Collisions and Score
Add the ball, detect collisions with axis-aligned bounding boxes, let players aim with the paddle and keep score.
Beginner25 min