---
title: "Tiny Garden"
url: "https://aigamehub.app/en/games/tiny-garden-df7de8"
source: "https://github.com/afiapreety/tiny-garden"
source_type: "github"
author: "afiapreety"
author_handle: "afiapreety"
category: "Action"
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: "en"
content_locale: "en"
---

# Tiny Garden

A cozy one-screen browser game where you catch falling water and sunlight, dodge bugs, and grow a potted plant through five pixel-art stages to full bloom.

## Description

Move left and right with the arrow or A/D keys, by dragging on the canvas, or with on-screen buttons on mobile. Water drops score 10 points and sunbeams 15, while bugs and missed resources cost health leaves. Reaching 400 points brings the plant to full bloom across five pastel pixel-art growth stages, with the sky shifting from day to night. Built with TypeScript and PixiJS with keyboard, pointer and touch input, pause and restart, saved high scores and sound settings, and reduced-motion support.

## 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 ```
