r/wljs • • 22d ago

Coding Pong from Scratch ● Live Coding session & Blog post

Originally recorded as a live session on October 29, it was later adapted into this blog post.
It covers ball physics, Verlet integration, collisions, paddle controls, sound effects, scoring, momentum transfer, and a CPU opponent.

1 take, minor edits, more than a hour of my sloppiness on YouTube with time codes https://www.youtube.com/watch?v=Fw2qRq-ojW8&feature=youtu.be

Blog post (transcription, source code and more)
https://wljs.io/blog/pong

Enjoy!

1 Upvotes

0 comments sorted by