Skip to content

feat: add Honeycomb Rush tower defense example#16

Merged
penta2himajin merged 6 commits into
masterfrom
feat/honeycomb-rush
Mar 26, 2026
Merged

feat: add Honeycomb Rush tower defense example#16
penta2himajin merged 6 commits into
masterfrom
feat/honeycomb-rush

Conversation

@penta2himajin

@penta2himajin penta2himajin commented Mar 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • Honeycomb Rush タワーディフェンス作例を追加(~960 LOC)。RECS新機能(System phases, createIndex)の実証を主目的とし、100+エンティティの同時管理・hooks/RECSハイブリッド構成を検証
  • E2Eテスト追加(desktop 11件 + mobile 5件)、playwright.config.tsへの登録
  • サイトへの追加(docsページ、サイドバー、ビルド済みアプリ)
  • scripts/build-examples.ts によるクロスプラットフォームのexampleビルド+site同期自動化(npm run build:examples / npm run sync:examples

RECS検証ポイント

項目 実装
createIndex 4セット walking / blocked / slowed / dying
pre phase UnblockSystem, SlowFieldSystem
main phase EnemyMove, EnemySpawn, ProjectileMove, SpawnAnim, DyingAnim
post phase BlockCheck, ProjectileHit, GoalCheck
100+ entities Wave 4で蟻80 + スズメバチ15 + 射出物20 = 115+
Hybrid 敵・弾=RECS, バチ=hooks, 幼虫=Signal

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

…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>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Mar 26, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

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

penta2himajin and others added 5 commits March 26, 2026 15:39
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>
@penta2himajin penta2himajin merged commit 8bbb078 into master Mar 26, 2026
2 checks passed
@penta2himajin penta2himajin deleted the feat/honeycomb-rush branch March 26, 2026 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant