Cyber WeekGame templates at Cyber Week pricesEnds in See the deals

益智 · HTML5

Leafy Bugs

Complete HTML5 garden bug sort puzzle game with 100 levels

作者: Polar Games版本号 1.0.0更新于 2026年12月1日

  • 源代码
在线预览

BonusTake more, pay less

  1. 1
  2. 2+5%19% total
  3. 3+10%23% total
  4. 4+15%27% total
  5. 5++20%32% total

再添加 2 个:每个再减 5%

A level of world 1: garden bugs sit on leaves, and three dandelion seeds on top each show the bug they want.World 2: mystery bugs show as a "?" until they reach the right end of a leaf.World 4: a leaf in pollen haze asks for a bug ×N and clears after N groups of that bug are sent.World 5: bugs in frost. The frost melts when a matching bug lands next to it.World 6: the rainbow beetle matches any bug.World 7: leaves with 2, 3 and 5 seats next to the usual 4.World 8: two bugs tied with a vine bow travel together.World 9: a "?" seed shows its bug later.Level complete, with stars: fewer moves, more stars.Level select: a grid of 5 by 2 levels for each world.The menu of Leafy Bugs.The game is in 14 languages; the list is in Settings.

Leafy Bugs, an HTML5 garden bug sort puzzle

A single-player garden bug sort puzzle for the web with 100 levels in 10 worlds. Garden bugs sit on green leaves: lift the bug on the right end of a leaf, move it next to a matching bug and group 4 of a kind to fill a seed’s acorn basket. Each seed shows the bug it wants, and new seeds arrive as others leave. Plain HTML, CSS and JavaScript ES modules, with no framework and no runtime dependencies.

Every level can be solved, and the levels are plain data files made by a level generator with a solver. Fewer moves earn more stars (3 stars up to 1.3 times the par moves, 2 stars up to 1.8 times, otherwise 1).

Leafy Bugs: 100 levels in 10 worlds of garden bug sort puzzles

A new twist in every world

World 1 teaches the basics, and each world from 2 to 9 adds one new twist. World 10 mixes them all.

  • World 2: mystery bugs show as a "?" until they reach the right end of a leaf
  • World 3: a tiny leaf that holds 1 bug
  • World 4: hazy leaves that ask for a bug ×N and clear after N groups of that bug are sent
  • World 5: frost that melts when a matching bug lands next to it
  • World 6: a rainbow beetle that matches any bug
  • World 7: leaves of 2, 3 and 5 seats next to the usual 4
  • World 8: bugs tied with a vine bow that move together
  • World 9: a "?" seed that shows its bug later
  • World 10: everything together
Leafy Bugs: a new twist in every world, from mystery bugs to pollen haze, frost, vine bow and a rainbow beetle

17 garden bugs with faces and poses

There are 16 garden bugs plus the rainbow beetle. Every bug has 9 faces (idle, blink, happy, wow, sleepy, worried, dizzy, sad and yawn), a peek head and 8 poses (crouch, dangle, leap, fall, curl, stretch, wave and cheer). The bug lifts, hops in an arc and lands softly, with combos, praise words, a "Perfect!" stamp and seeds that float up when their basket is full.

Three helps per level, with limits: Undo (5 per level), Shuffle (1 per level, always a layout that can still be solved) and Extra leaf (1 per level, an empty leaf with 4 seats). If no move is left, a panel offers Try again. A tutorial teaches by doing in levels 1 to 4, and the hints can be turned off in Settings.

Leafy Bugs: 17 garden bugs with faces and poses

Phone, tablet and desktop

Layouts for phones, tablets, desktop and ultrawide screens, in portrait and landscape, with touch (tap or drag), mouse and keyboard (arrow keys pick a leaf, Space or Enter act, Esc closes panels). Options for Music, Effects, Vibration (where the device supports it), Reduce motion (it also follows the system), Tips, full screen (where supported) and language.

Each world has its own garden scenery, its own music track and its own ambient loop: 1 menu track, 10 world tracks, 10 ambient loops and sound effects, with separate Music and Effects volumes. All the art is separate WebP files. 14 languages: English, Portuguese, Spanish, French, German, Italian, Dutch, Polish, Turkish, Russian, Indonesian, Japanese, Korean and Chinese.

Leafy Bugs on a phone, a tablet and a computer

Change the look: what is in which file

The game reads its data when it starts, so most changes need no build step:

  • src/game/rules.js: the rules (leaves, moves, seeds, the twists) and, at the top, the number of helps per level
  • src/game/levels/: the levels, one data file per world, made by the level generator and its solver
  • src/config.js: the feel and rhythm numbers (timings, shake, particles) and the 17 garden bugs
  • src/locales/: one text file for each of the 14 languages
  • assets/: the pictures (bugs, leaves, seeds, world sceneries, interface), the music, the ambient loops, the sound effects and the fonts, found by file name

What is in the package

  • The game, ready to host. Upload it to any static host; no server language, database or account.
  • The complete editable project in plain HTML, CSS and JavaScript ES modules, with 43 automated checks. Node.js 26.13 or newer is only needed for the optional tools (the tests and the level generator).
  • A buyer guide and a customization guide.
  • All the art, music and sound effects, and the Fredoka and Nunito fonts (SIL OFL 1.1).

Notes

  • For one person. This edition has no online play, accounts, leaderboards, ads or purchases, and no integration with ad or payment services.
  • Progress is saved in the browser of each player (localStorage, keys leafy-bugs-save and leafy-bugs-prefs). The game makes no requests to other servers.
  • It needs HTTP(S) hosting and does not run from file://.
  • Tested on a computer in the Chrome and Safari (WebKit) engines. It has not been tested on physical phones or tablets.

本版本的游戏画面

截取自此处销售的版本。

包含

  • 100 levels in 10 worlds of 10 levels, in a level select with a grid of 5 by 2 levels per world. Each world has its own garden scenery, its own music track and its own ambient loop
  • The sort rules: only the bug on the right end of a leaf moves, 2 or 3 matching bugs on the right move together, an empty leaf takes any bug, bugs only land next to a matching bug, each leaf holds 4 bugs, and 4 matching bugs fill a seed’s acorn basket. 3 seeds are shown at a time, each one showing the bug it wants
  • A new twist in worlds 2 to 9, and world 10 mixes them: mystery bugs, a tiny leaf for 1 bug, hazy leaves that ask for a bug ×N, frost that melts when a matching bug lands next to it, a rainbow beetle that matches any bug, leaves of 2, 3 and 5 seats, bugs tied with a vine bow that move together, and a "?" surprise seed
  • Levels made by a level generator with a solver that proves each level can be solved and stores the par moves; the levels are plain data files, one per world
  • 3 helps per level with limits: Undo (5 per level), Shuffle (1 per level, always a layout that can still be solved) and Extra leaf (1 per level), plus a "No moves left" panel with Try again
  • Stars in every level (3 stars up to 1.3 times the par moves, 2 stars up to 1.8 times, otherwise 1; 300 stars in all), combos, praise words, a "Perfect!" stamp and seeds that float up when their basket is full
  • A tutorial that teaches by doing in levels 1 to 4, with one hint at a time and a pointing hand, and a short hint on the first level of each new twist; the hints can be turned off in Settings
  • 17 garden bugs (16 garden bugs plus the rainbow beetle), each one with 9 faces (idle, blink, happy, wow, sleepy, worried, dizzy, sad and yawn), a peek head and 8 poses (crouch, dangle, leap, fall, curl, stretch, wave and cheer)
  • Feel: the bug lifts, hops in an arc and lands softly, with light and parallax on the leaves and world transitions where the camera follows the seed
  • All the art is separate WebP files: the bugs, 10 world sceneries in 3 shapes (portrait, landscape and ultrawide) plus the menu scenery, leaves, seeds and interface pieces
  • Music (1 menu track and 10 world tracks), 10 ambient loops and sound effects, with separate Music and Effects volumes
  • 14 interface languages (English, Portuguese, Spanish, French, German, Italian, Dutch, Polish, Turkish, Russian, Indonesian, Japanese, Korean and Chinese); the browser language is used the first time and the list is in Settings
  • Layouts for phones, tablets, desktop and ultrawide screens, in portrait and landscape, with touch (tap or drag), mouse and keyboard; options for Music, Effects, Vibration (where the device supports it), Reduce motion (it also follows the system), Tips, full screen (where supported) and language
  • The game ready to host and the complete editable project (plain HTML, CSS and JavaScript ES modules, no framework, no library and no runtime dependencies) with 43 automated checks
  • A buyer guide and a customization guide

本版本不包含

  • Online play, accounts or leaderboards
  • Ads, in-app purchases or any integration with an ad or payment service
  • Publishing to app stores or portals, native apps, hosting and custom development

ZIP 包里有什么

您下载的安装包的真实文件夹结构,名称和大小均直接读取自包内。

leafy-bugs-1.0.0-complete.zip1,839 个文件 · 63.6 MB
  • leafy-bugs-static-1.0.0/1,838 个文件 · 63.6 MB
    • documentation/HTML 指南,购买前请先打开36 个文件 · 4 MB
      • img/JPG · PNG · 21 个文件 · 2.9 MB
      • customization-de.html33 KB
      • customization-es.html31 KB
      • customization-fr.html32 KB
      • customization-id.html30 KB
      • customization-it.html31 KB
      • customization-ja.html34 KB
      • customization-ko.html32 KB
      • customization-nl.html31 KB
      • customization-pl.html30 KB
      • customization-pt.html30 KB
      • customization-ru.html39 KB
      • customization-tr.html32 KB
      • +3 个文件685 KB
    • game/可直接部署:上传此文件夹即可892 个文件 · 29.8 MB
      • assets/美术、音频和字体JSON · MP3 · PNG · WEBP · 802 个文件 · 29.2 MB
      • css/CSS · 4 个文件 · 53 KB
      • fonts/内置字体TXT · WOFF2 · 4 个文件 · 32 KB
      • src/源代码模块JS · 80 个文件 · 472 KB
      • DOCUMENTATION.txt1 KB
      • index.html12 KB
    • source/可读的源代码904 个文件 · 29.8 MB
      • assets/美术、音频和字体JSON · MP3 · PNG · WEBP · 802 个文件 · 29.2 MB
      • css/CSS · 4 个文件 · 53 KB
      • fonts/内置字体TXT · WOFF2 · 4 个文件 · 32 KB
      • src/源代码模块JS · 80 个文件 · 472 KB
      • test/自动化测试MJS · 5 个文件 · 32 KB
      • tools/构建与检查脚本MJS · 4 个文件 · 25 KB
      • DO-NOT-UPLOAD.txt1 KB
      • index.html12 KB
      • package-lock.json1 KB
      • package.json1 KB
      • README.md4 KB
    • THIRD-PARTY-LICENSES/需与游戏一并保留的许可声明2 个文件 · 6 KB
      • Fredoka-and-Nunito-OFL.txt5 KB
      • README.txt2 KB
    • CHANGELOG.txt版本历史1 KB
    • CUSTOMIZATION.html1 KB
    • DOCUMENTATION.html打开指南1 KB
    • START-HERE.txt快速入门2 KB
  • POLAR-MARKETPLACE-START-HERE.txt从这里开始:许可、支持与上手步骤1 KB

商品详情

版本
Standalone Browser Edition
版本号
1.0.0
发布于
2026年12月1日
更新于
2026年12月1日
分类
益智
语言
英语, 葡萄牙语, 西班牙语, 法语, 德语, 意大利语, 荷兰语, 波兰语, 土耳其语, 俄语, 印度尼西亚语, 日语, 韩语, 简体中文
包含的文件
HTML, CSS, JavaScript, WebP, MP3, WOFF2
技术栈
HTML5, Vanilla JavaScript, ES Modules, Canvas, Web Audio
浏览器
支持的浏览器:Chrome 110+, Edge 110+, Firefox 115+, Safari 16.4+ (macOS, iPhone, iPad), Samsung Internet 21+, Android 10+, iOS/iPadOS 16.4+。不支持智能电视和过时的浏览器。
文档
文档

作者

Polar Games

来自巴西、专注浏览器游戏的工作室。这里的每个模板都是我们自己开发并发布的游戏。

查看我们的游戏

运行要求

  • 支持的浏览器:Chrome 110+, Edge 110+, Firefox 115+, Safari 16.4+ (macOS, iPhone, iPad), Samsung Internet 21+, Android 10+, iOS/iPadOS 16.4+。不支持智能电视和过时的浏览器。
  • Static HTTP(S) hosting (it does not run from file://); no database, PHP or author account required
  • Only for editing the source with the optional tools: Node.js 26.13 or newer

技术支持涵盖技术问题,以及所提供游戏中可复现的缺陷。安装和定制属于单独的服务。

更新日志

  1. 1.0.02026年12月1日

常见问题

Do I need to build the game?

No. There is no compile step: upload the game folder to any static HTTP(S) host and play. The optional tools are only for the tests and the level generator.

Can I change the theme and the bugs?

Yes. The art is separate WebP files with fixed names, such as assets/cats/<bug>-<face>.webp and assets/cats/<bug>-p-<pose>.webp for the bugs, and the leaves, seeds and world sceneries in assets/game/ and assets/bg/. Swap the pictures and keep the names. A new theme also needs new texts and sounds. The customization guide has step-by-step recipes.

Can I add levels?

Yes. The levels are plain data files, one per world (src/game/levels/world-N.js), made by the level generator with its solver, which proves each level can be solved and stores the par moves. Run the generator for a world, or edit the files, and the game reads them when it starts.

Can I change the helps and the difficulty?

Yes. The number of helps per level (Undo, Shuffle and Extra leaf) is one line at the top of src/game/rules.js, and all the feel numbers (timings, shake, particles) are in src/config.js.

Which languages does it have?

14: English, Portuguese, Spanish, French, German, Italian, Dutch, Polish, Turkish, Russian, Indonesian, Japanese, Korean and Chinese. Japanese, Korean and Chinese use the fonts of the device.

Where is the progress saved?

In the browser of each player (localStorage, keys leafy-bugs-save and leafy-bugs-prefs): the unlocked level, the stars of each level, the language, the volumes and the options. There is no server or account.

Does it have ads, purchases or online play?

No. It is a single-player game with no ads, purchases or server built in, and no online play or leaderboards. If you add any of that for your own audience, it is yours to build.

Does it use a framework or a library?

No. It is plain HTML, CSS and JavaScript ES modules with no runtime dependencies. The rules are pure functions, and the canvas only draws picture files.

Does it work on phones?

It supports touch (tap or drag) in portrait and landscape, and has layouts for tablets, desktop and ultrawide screens. It was tested on a computer in the Chrome and Safari (WebKit) engines. It has not been tested on physical phones or tablets.

What licence applies?

The Polar Games Marketplace terms shown at checkout.

阅读完整的授权、支持、退款和隐私条款

Before you buy: guides and reviews

从巴西走向世界

买家遍布 25 个国家

为你的网站、应用或品牌授权一款附源代码的现成 HTML5 游戏。

  • 900+次销售
  • 25个国家
  • 2016开始销售
我们售出过的国家: 巴西, 美国, 英国, 德国, 加拿大, 澳大利亚, 法国, 印度, 荷兰, 西班牙, 意大利, 日本, 韩国, 波兰, 墨西哥, 瑞典, 瑞士, 新加坡, 阿拉伯联合酋长国, 沙特阿拉伯, 印度尼西亚, 土耳其, 葡萄牙, 菲律宾, 越南.

Polar Games 的更多作品

Leafy BugsUS$59 US$50.15 -15%
立即购买