Skip to content

feat: Add tank textures with connected border rendering#30

Draft
turtton wants to merge 1 commit intomainfrom
feat/1
Draft

feat: Add tank textures with connected border rendering#30
turtton wants to merge 1 commit intomainfrom
feat/1

Conversation

@turtton
Copy link
Owner

@turtton turtton commented Mar 16, 2026

Summary

Closes #1

  • ティア別タンクテクスチャを追加 (木/石/銅/鉄/金/ダイヤ/ネザライト)
  • 隣接タンク間のボーダーが消える接続テクスチャシステムを実装
  • テクスチャ生成スクリプト (scripts/generate_textures.py) を追加

Test plan

  • 各ティアのタンクが正しいテクスチャで表示される
  • 単独配置時に全面にボーダーが表示される
  • 隣接タンク間の接続面のボーダーが消える
  • 縦/横/奥行き全方向の接続が正しく動作する
  • タンクの設置/破壊時にボーダーが正しく更新される
  • アイテムアイコンが正しく表示されるようにする
  • 異なるティアのタンク同士でもボーダーが接続されないようにする
  • 左側にタンクがある時に目盛表示を省略する
2026-03-16_23 38 50

タンクブロック用のティア別テクスチャを追加し、隣接タンク間のボーダーが
消えて1つの大きなタンクに見える接続テクスチャシステムを実装。

- テクスチャ生成スクリプト (scripts/generate_textures.py) を追加
  - PEP 723 インラインメタデータで Pillow 依存を指定
  - side (ゲージのみ), frame (ソリッドカラー), item (ボーダー+ゲージ) を生成
- ConnectedTankBlock に6方向の接続プロパティを追加
  - getPlacementState / getStateForNeighborUpdate で隣接タンクを検出
- multipart ブロックステートでボーダーオーバーレイを条件付き表示
  - 接続されていない方向にのみフレームボーダーを描画
  - cullface 指定で isSideInvisible と正しく連携
- CLAUDE.md に scripts セクションを追記
@turtton turtton marked this pull request as draft March 16, 2026 14:40
@turtton turtton marked this pull request as draft March 16, 2026 14:40
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.

Texture

1 participant