GetAssetPack

Pong Duel — HTML5 Game Template (Vanilla JS)

Price
$9.99
Type
Art
Creator
ReskinLab
Dimensions
2D

Portrait pong vs a tunable AI in pure vanilla JS - zero deps, angle control, speed ramp, match play, ad hooks.

Available on

Search by image

Upload a reference to find previews with similar colors, contrast, and detail.

Pong Duel — HTML5 Game Template (Vanilla JS)

No preview
ReskinLab · itch.io$9.99
2D
Art
License not indexed
  • i Check the terms on the original listing.
Show full terms

Portrait pong vs a tunable AI in pure vanilla JS - zero deps, angle control, speed ramp, match play, ad hooks.

View original listing

Description

Try the playable demo above — that's the exact template you get.

A crisp, polished portrait Pong against an AI opponent, written in clean vanilla JavaScript + Canvas. No frameworks, no build tools, no asset licenses to worry about — unzip, open index.html, and it runs.

Why devs pick this template

Show full description...
  • 🏓 Classic arcade feel — paddle contact point controls the bounce angle, the ball speeds up every hit (with a cap), first to 7 wins the match, loser receives the serve.
  • 🤖 Tunable AI — max speed, deliberate sloppiness and reaction delay are three config numbers. Ship an easy mode and a nightmare mode from the same file.
  • 🎨 Reskin in minutes — speeds, AI, colors, match length and texts all live in one commented config.js.
  • 📱 Mobile-first — drag to move on touch, arrow keys / A·D on desktop. Responsive & retina-aware portrait canvas.
  • ⚡ Tunnel-proof physics — line-sweep paddle collision means no ball speed can clip through. Serve countdown ring for readable pacing.
  • 💰 Monetization-ready — onGameStart / onGameOver / onPoint / interstitial hooks built in, with a GameDistribution example. Wire your ad SDK in 5 lines.
  • 🔊 Zero audio files — sounds are synthesized with WebAudio (paddle blips / wall ticks / point jingles / win / lose). Nothing to license.
  • 🧩 Tiny & readable — ~380 lines of commented game code + a public JS API (state / start / movePaddle / step / setBall) — easy to extend to local 2-player.
  • ✅ Tested — 15 groups of automated headless tests cover serving, wall/paddle bounces, angle control, speed cap, anti-tunneling, AI tracking, match flow and score persistence.

What you get

  • Full source (index.html, config.js, audio.js, game.js)
  • README with quick start, reskin guide, ad integration examples & API docs
  • Commercial license: unlimited personal & commercial games, no attribution required

License: use it in unlimited commercial projects; just don't resell the template itself. Full terms in LICENSE.txt.

Tags

2DArcadeCasualhtml5mobilepaddlepongRetrosourcecodeProject template

Downloads