{"id":33585347,"url":"https://github.com/deadronos/vibe-idle-bricks","last_synced_at":"2026-04-26T15:01:30.156Z","repository":{"id":326459059,"uuid":"1105629363","full_name":"deadronos/vibe-idle-bricks","owner":"deadronos","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-26T13:39:11.000Z","size":868,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-26T14:34:40.235Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://deadronos.github.io/vibe-idle-bricks/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deadronos.png","metadata":{"files":{"readme":"README.md","changelog":"changes_summary.txt","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2025-11-27T23:15:02.000Z","updated_at":"2026-04-26T13:03:46.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/deadronos/vibe-idle-bricks","commit_stats":null,"previous_names":["deadronos/vibe-idle-bricks"],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/deadronos/vibe-idle-bricks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deadronos%2Fvibe-idle-bricks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deadronos%2Fvibe-idle-bricks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deadronos%2Fvibe-idle-bricks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deadronos%2Fvibe-idle-bricks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deadronos","download_url":"https://codeload.github.com/deadronos/vibe-idle-bricks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deadronos%2Fvibe-idle-bricks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32301330,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T09:34:17.070Z","status":"ssl_error","status_checked_at":"2026-04-26T09:34:00.993Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-11-29T07:02:14.497Z","updated_at":"2026-04-26T15:01:30.136Z","avatar_url":"https://github.com/deadronos.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🧱 Idle Bricks\n\nAn idle/incremental breakout-style game where balls autonomously smash through bricks while you upgrade and expand your arsenal. Built with React, Phaser, and Zustand.\n\n![React](https://img.shields.io/badge/React-19-61DAFB?logo=react)\n![Phaser](https://img.shields.io/badge/Phaser-3-blue)\n![TypeScript](https://img.shields.io/badge/TypeScript-5.9-3178C6?logo=typescript)\n![License](https://img.shields.io/badge/License-MIT-green)\n\n## 📖 Table of Contents\n\n- [Features](#-features)\n- [How to Play](#-how-to-play)\n- [Ball Types](#-ball-types)\n- [Getting Started](#-getting-started)\n- [Architecture](#-architecture)\n- [Project Structure](#-project-structure)\n- [Development](#-development)\n- [License](#-license)\n\n## ⚡ Features\n\n- **Autonomous gameplay** — Runs itself while you strategize upgrades.\n- **6 unique ball types** — Each with distinct physics, stats, and abilities.\n- **10 brick tiers** — Progressive difficulty with scaling rewards and colors.\n- **Prestige system** — Reset progress for permanent coin multipliers (+25% per level).\n- **Auto-save** — Progress is saved to local storage every 30 seconds.\n- **Offline Earnings** — Earn coins based on your production rate while the game is closed.\n- **Large number support** — Handles arbitrarily large values using `break_infinity.js`.\n\n## 🎮 How to Play\n\n1. **Watch balls bounce** — They automatically break bricks and earn coins.\n2. **Buy upgrades** — Increase global speed, damage, and coin multipliers from the Shop.\n3. **Unlock new balls** — Purchase specialized balls like Plasma (piercing) or Explosive (AoE).\n4. **Tier up** — Breaking bricks increases the brick tier (harder but more valuable).\n5. **Prestige** — Once you reach a brick threshold (e.g., 10,000), you can prestige to reset for a permanent bonus.\n\n## 🎱 Ball Types\n\n| Ball | Cost | Special Ability |\n|------|------|-----------------|\n| ⚪ **Basic** | 10 | Standard starter ball. Balanced stats. |\n| 🔵 **Fast** | 50 | 2× speed for more frequent hits. |\n| 🟠 **Heavy** | 100 | 3× damage, but moves slower. Good for high-health bricks. |\n| 🟣 **Plasma** | 500 | Pierces through bricks, damaging multiple in a line. |\n| 🔴 **Explosive** | 1,000 | Deals area-of-effect damage to nearby bricks on impact. |\n| 🟢 **Sniper** | 2,500 | Actively steers towards the weakest brick on screen. |\n\n## 🚀 Getting Started\n\n### Prerequisites\n\n- Node.js (v18+ recommended)\n- npm or yarn\n\n### Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/yourusername/idle-bricks.git\n   cd idle-bricks\n   ```\n\n2. Install dependencies:\n   ```bash\n   npm install\n   ```\n\n3. Start the development server:\n   ```bash\n   npm run dev\n   ```\n\n4. Open your browser at `http://localhost:5173`.\n\n## 🏗️ Architecture\n\nThe application uses a layered architecture separating UI, State, and Game Logic:\n\n- **React 19** handles the UI (Shop, Stats, Footer).\n- **Phaser 3** handles the game loop, physics, collisions, and rendering in a canvas.\n- **Zustand** acts as the single source of truth for game state (coins, balls, bricks).\n\n### Data Flow\n\n1. **State**: All game data (coins, balls, bricks) resides in the Zustand store (`useGameStore`).\n2. **Game Loop**: The Phaser `GameScene` subscribes to the store and updates the visual representation of balls and bricks every frame.\n3. **Actions**: User interactions (clicking \"Buy\") dispatch actions to the store. Game events (collisions) also dispatch actions (e.g., `damageBrick`, `addCoins`).\n\n### Numeric Precision\n\nAll gameplay values (health, coins, damage) use `break_infinity.js` `Decimal` objects to support incremental game scale numbers (e.g., 1e50).\n\n## 📁 Project Structure\n\n```text\nsrc/\n├── components/     # React UI components (Shop, Stats, etc.)\n│   └── PhaserGame.tsx # Wrapper for the Phaser engine\n├── game/           # Phaser game logic\n│   └── GameScene.ts   # Main scene handling physics \u0026 rendering\n├── store/          # Zustand state management\n│   └── gameStore.ts   # Central store definition\n├── types/          # TypeScript interfaces and constants\n│   └── game.ts        # Ball types, Brick data, Game state\n├── utils/          # Helper functions\n│   └── helpers.ts     # ID generation, number formatting\n├── App.tsx         # Main layout\n└── main.tsx        # Entry point\n```\n\n## 💻 Development\n\n### Commands\n\n- `npm run dev`: Start dev server.\n- `npm run build`: Build for production.\n- `npm run lint`: Run ESLint.\n- `npm run typecheck`: Run TypeScript compiler check.\n- `npm test`: Run Vitest unit tests.\n\n### Documentation\n\nAll source files are fully documented with JSDoc/TSDoc comments. You can inspect the code to see detailed descriptions of functions, parameters, and types.\n\n## 📄 License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeadronos%2Fvibe-idle-bricks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeadronos%2Fvibe-idle-bricks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeadronos%2Fvibe-idle-bricks/lists"}