🎮 All 30 games · $19

🔴 Sort puzzle · HTML5 game code

Ball Sort HTML5 game source code

Ball Sort is two hit puzzle games in one template: Ball Sort and Water Sort share 500 levels that a built-in solver proved solvable. Mystery and HARD levels, a daily challenge and a full shop of ball skins, tubes and themes keep players engaged for weeks.

  • 500solver-verified levels
  • 2games in one
  • 8ball skins
  • 14missions

One-time payment · source code + Android APK with AdMob · reskin & publish under your own brand · free builds for 30 days, then $1

Ball Sort HTML5 game running on a phone

Ball Sort screenshots

Ball Sort menu on a phone
Ball Sort gameplay on a phone

Ball Sort game features

Two puzzle games in one: sort colored balls or pour colored water.

🎮 Controls

Tap a tube, then tap the tube to move to. Keyboard: 1–9 select tubes, Ctrl+Z undo.

💰 Ad placements (AdMob ready)

  • Interstitial every N levels
  • Rewarded: +5 undos
  • Rewarded: extra tube or hint
  • Rewarded: double level coins

🎨 Reskin in minutes

  • 12-color palette, ball skins, tubes and themes are in config.js
  • Regenerate levels with a new seed for a distinct reskin
  • Turn on multi-ball moves, change undo counts and prices

📦 What's included

  • Complete Ball Sort source code (HTML, CSS, JavaScript)
  • Bundled OFL fonts and synthesized audio
  • README with setup, reskin and ad instructions
  • Asset spec for custom graphics
  • Ad adapter for AdMob (Android) and web portal SDKs

Ball Sort as an Android app is included

Ball Sort is part of our $19 pack of all 30 games. It includes the source code and an Android build with your name, icon and AdMob ads (signed APK + AAB for Google Play). Rebuild as often as you like, free for 30 days, then $1 each.

🎁 Get all 30 games · $19 How it works

Ball Sort game code FAQ

Are all 500 levels solvable?

Yes. Every level was generated and verified by the built-in A* solver, and the solution was replayed before saving.

What is the difference between Ball Sort and Water Sort?

Same puzzles, different feel: balls move one at a time along an arc, while water pours the whole matching layer with a tilting tube animation.

Do you have free HTML games code?

Yes. The Free Games section has 21 complete HTML, CSS and JavaScript games (Snake, Tetris, Minesweeper, Tic Tac Toe, Pac-Man style, Flappy Bird, Pong and more), each one file you can copy and paste, with a live demo. The premium games add levels, shops, AdMob ads and an Android APK.

What do I get for $19?

All 30 games in one pack, and two things for each game. First, the complete source code as a ZIP: HTML, CSS and JavaScript, bundled offline fonts, a README with setup and reskin instructions, an asset spec for custom art, and any tools (level generators, simulators) that game uses. Second, a ready Android app: a signed APK and a Google Play AAB with your app name, icon and package name, and AdMob banner, interstitial and rewarded ads using your own AdMob IDs. No subscription and no watermark.

How much do extra APK builds cost?

Nothing for the first 30 days: every app in your game pack comes with a month of free APK and AAB builds, as many as you need. After that, each build is $1. Reskinned the game, changed the name or icon, got new AdMob IDs or released an update? Change it in the builder and build again for a fresh signed APK and AAB.

More HTML5 game templates