feat: add Honeycomb Rush tower defense example#16
Merged
Conversation
…ld automation - Add examples/honeycomb-rush/ (~960 LOC) demonstrating RECS at scale: createIndex (4 sets), System phases (pre/main/post), 100+ entities, hooks/RECS hybrid architecture, pixel art texture generation - Add E2E tests (desktop 11 + mobile 5) with debug.expose() integration - Register in playwright.config.ts (port 3014) - Add to site: docs page, sidebar entry, built app - Add scripts/build-examples.ts for cross-platform example build + sync - Update package.json: build:examples, sync:examples, build pipeline Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
solidion | b06cabb | Commit Preview URL Branch Preview URL |
Mar 26 2026, 07:48 AM |
The spec requires "各セルに六角形テクスチャを被せる。判定は正方形" — hexagonal textures with square hit detection. The previous implementation drew plain rectangles. Now uses Canvas path-based flat-top hexagons for all 5 cell types (ground, wall, high, nest, spawn) with proper fill/stroke layers. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Redesign larva textures from 8x8 square to 8x12 oval/elliptical form with proper segment grooves and expressive faces (blushing/scared/crying) - Fix null dereference crash in selBee()!.type (Solidion's Show always renders children, only toggles visible — cannot rely on Show for null guard) - Replace overlapping Show-based UI with alpha-driven visibility to prevent ghost elements (Start Wave / interval text, bee info panel) - Spread 3 larvae in triangular layout across nest cells Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Generated build artifacts (examples/*/dist/ and site/public/examples/) are now excluded from git. They are regenerated by `npm run build` (build:examples builds + syncs, then build:site runs Astro). This eliminates the "forgot to sync" problem — there is no tracked copy that can go stale. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
CF Pages runs `npm run build` in site/ directory. Add prebuild hook (site/scripts/sync-examples.js) that copies examples/*/dist/ into site/public/examples/*-app/ before Astro build. site/public/examples/ is gitignored since it's generated at build time. examples/*/dist/ remains in git so CF Pages has the source to copy from. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
scripts/build-examples.tsによるクロスプラットフォームのexampleビルド+site同期自動化(npm run build:examples/npm run sync:examples)RECS検証ポイント
Test plan
npm run test(452 unit tests pass)npm run build:examples(全6 examples ビルド成功)npx playwright test --project honeycomb-rush(E2E desktop)npx playwright test --project honeycomb-rush-mobile(E2E mobile)npm run build:site)🤖 Generated with Claude Code