---
title: "Tiny Garden"
url: "https://aigamehub.app/zh-tw/games/tiny-garden-df7de8"
source: "https://github.com/afiapreety/tiny-garden"
source_type: "github"
author: "afiapreety"
author_handle: "afiapreety"
category: "動作"
categories: ["action", "casual"]
tags: ["browser", "catch", "cozy", "one-screen", "pixel-art", "plant"]
added: "2026-11-19T01:07:18.161Z"
updated: "2026-11-19T01:07:18.161Z"
locale: "zh-tw"
content_locale: "zh-tw"
---

# Tiny Garden

一款溫馨的單畫面瀏覽器遊戲：接住落下的水滴與陽光、避開蟲子，讓盆栽歷經五個像素藝術成長階段直到盛開。

## Description

使用方向鍵或 A/D 鍵、在畫布上拖曳，或在行動裝置上使用螢幕按鈕來左右移動。水滴可得 10 分、陽光可得 15 分，而蟲子和漏接的資源會消耗生命葉片。達到 400 分時，植物會歷經五個粉彩像素藝術成長階段並完全盛開，天空也會從白天轉為夜晚。以 TypeScript 和 PixiJS 打造，支援鍵盤、指標與觸控輸入、暫停與重新開始、儲存最高分與音效設定，以及減少動態效果。

## Original post

a cozy catch-and-grow browser game built with TypeScript and PixiJS

Topics: browser-game, cozy-game, pixi-js, pixijs, vibe-coding

# Tiny Garden 🌱 A cozy, one-screen browser game about helping a tiny potted plant reach full bloom. Catch falling water and sunlight, dodge hungry bugs, and grow through five pastel pixel-art stages as the sky shifts from day to night. Built as a portfolio project with **TypeScript**, **PixiJS 8**, **Vite**, and plain CSS. All artwork, particles, animation, and sound are generated in code, so there are no external image or audio assets to manage. I created this project through **vibe coding**, directing the game concept, pixel-art style, mechanics, and iterative refinements while using AI-assisted development to bring it to life. **Play online:** [https://afiaanjumpreety.github.io/tiny-garden/](https://afiaanjumpreety.github.io/tiny-garden/) ## Screenshots ### Start your tiny garden ![Tiny Garden starting screen](docs/screenshots/start-view.png) ### Catch, dodge, and grow ![Tiny Garden gameplay with falling water, sunlight, and bugs](docs/screenshots/gameplay-view.png) ### Reach full bloom <p align="center"> <img src="docs/screenshots/full-bloom-view.png" alt="Tiny Garden fully bloomed victory screen" width="720" /> </p> ## Play ```bash npm install npm run dev ``` Then open the local URL printed by Vite. ## Controls - Move with `←` / `→` or `A` / `D` - Drag across the game canvas on a mouse or touchscreen - Use the on-screen arrow buttons on mobile - Pause with `P`, `Escape`, or the pause button ## Rules - Water drops are worth 10 points - Sunbeams are worth 15 points - Bugs remove one health leaf - Every three missed resources wilts one health leaf - Reach 400 points to fully bloom The pace and bug frequency increase over time. High scores and the sound preference are saved in `localStorage`. ## Highlights - Custom game loop, collision detection, spawning, difficulty, and state management - Five animated pixel-art plant growth stages drawn with PixiJS primitives - Responsive keyboard, pointer, and mobile touch input - Procedural particles, screen shake, drifting clouds, and a day/sunset/night transition - Web Audio API sound effects with a persistent mute control - Pause, restart, victory, and game-over flows - Accessible DOM menus, focus states, live status messaging, and reduced-motion support ## Scripts ```bash npm run dev # Start the development server npm run typecheck # Run strict TypeScript checks npm run build # Create a production build in dist/ npm run preview # Preview the production build ``` ## Project structure ```text . ├── index.html # DOM interface and accessible menus ├── src/ │ ├── components/ │ │ ├── background.ts # Sky, clouds, stars, hills, and atmosphere │ │ ├── characters.ts # Player, falling items, and particles │ │ └── leaderboard.ts # HUD, results, settings, and high scores │ ├── game/ │ │ └── config.ts # Shared types, colors, stages, and helpers │ ├── main.ts # Game state, input, audio, and orchestration │ └── style.css # Responsive UI and presentation ├── package.json └── tsconfig.json ```
