- 86%

Colorful Bubble Shooter | HTML5 Game

Add to wishlistAdded to wishlistRemoved from wishlist 0
Product Details
Version Download: 30 May 2026

Demo: Live Preview
License: Unlimited websites
Please read before purchase: FAQ

Original price was: $49.00.Current price is: $7.00.

Categories: , ,

Vibrant Bubble Shooter is a high-performance, single-file web application built using the HTML5 Canvas API. It features a fully responsive design, custom synthesized audio effects, and a procedural level generation system. Works in modern browsers like Opera, Chrome, Edge, iOS Safari, Chrome for Android

Key Design Goal: Zero external dependencies. All assets (UI, Logic, and Sound) are generated programmatically via JavaScript.

Hexagonal Grid Logic The game utilizes a staggered Row/Column Hexagonal Grid. To maximize space and create the “nested” bubble look, even-numbered rows are offset by half a bubble width.

Physics & Collision Collision detection is performed in two phases during the update loop

Wall Bouncing The projectile checks its horizontal bounds against the canvas width. On impact, the vx (velocity X) is inverted, creating a perfect reflection.

Grid Impact The engine iterates through all active bubbles in the grid. If the distance between the projectile and a grid bubble is less than Radius * 2, the projectile is “snapped” into the nearest empty grid slot.

Match Algorithm (BFS) Once a bubble snaps, the findMatches() function uses a Breadth-First Search (BFS) to identify all contiguous bubbles of the same color.

Queue-based Search: Starts at the impact bubble. Adjacency Check: Checks up to 6 neighbors (taking row offsets into account). Threshold: If the cluster size is ≥ 3, all bubbles in the cluster are marked for destruction. Following the match, a secondary Floating Check is performed to drop any bubbles that are no longer connected to the ceiling of the grid.

Rendering Pipeline The draw() function utilizes Canvas state transformations to handle high-DPI scaling and smooth animations.

Bubble Aesthetics Each bubble is rendered with a Radial Gradient to simulate depth and a “glossy” reflection point. This avoids the flat look of solid color circles.

  • Before making a purchase, please read the Terms and Conditions on this page: Terms & Conditions
  • If you have any questions, please first read the FAQ on this page: FAQ
  • If you haven’t found the answer to your question, please contact us by e-mail codingshop20@yahoo.com or create ticket.
  • Please note that any digital products presented on the website do not contain malicious code, viruses or advertising. You buy the original files from the developers. We do not sell any products downloaded from other sites.
  • we have not responsible for support users. if you need support, you can buy products directly from envato.
  • Note that we can NOT provide purchase code for you. all products is Non-Licensed.
  • we can NOT support free updates for you. download links available until 30 days after purchase.
  • You can download the product after the purchase by a direct link on your account page in the downloads section.
CodingShop
Logo
Register New Account
Shopping cart