Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Each clip is a real Claude Code session driving a small voxel game through `uloo

`uloop launch` opens the project in the Unity version it specifies and returns once the Editor can take commands.

https://github.com/user-attachments/assets/4e83a196-66a4-4f39-80fb-f33b7a038066
https://github.com/user-attachments/assets/9e1edafe-07e6-4439-862f-4bbe6ff86f0f

## Add a feature and test it: `compile`, `run-tests`

Expand Down
18 changes: 9 additions & 9 deletions README_ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,55 +43,55 @@ Unity CLI Loopのコアとなるコンセプトは次の4つです。

`uloop launch` は、プロジェクトが指定するバージョンの Unity でプロジェクトを開き、Editor がコマンドを受け付けられるようになるまで待ちます。

https://github.com/user-attachments/assets/4e83a196-66a4-4f39-80fb-f33b7a038066
https://github.com/user-attachments/assets/06cb2abf-7d05-49f3-8b0d-afb90417f7f8

## 機能を足してテストする:`compile`、`run-tests`

Claude が光る松明ブロックを追加し、`compile` でビルドして、`run-tests` で EditMode テストを実行します。失敗したテストを直し、Play Mode で夜にして松明を確かめます。

https://github.com/user-attachments/assets/98bba49f-1846-4b8e-9702-733207e8318f
https://github.com/user-attachments/assets/f0daa13b-af3a-4560-9acc-4f6c8262889d

## Play Mode のままコードを変える:`hot-reload`

Claude が二段ジャンプを追加し、Play Mode を止めずに `hot-reload` で反映します。続けて `simulate-keyboard` で Space を押し、ジャンプの高さを測ります。

https://github.com/user-attachments/assets/fdba761a-b65a-4297-92f1-5cb274f4c4cf
https://github.com/user-attachments/assets/a1661238-e215-460b-8236-fc5b5707f5e8

## 指定した行で止めて、そのフレームを読む:`pause-point`

水が隙間へ初めて流れ込むとき、セルの新しい水位を決める行で `pause-point` がゲームを止め、そのフレームのローカル変数・フィールド・呼び出し経路を返します。続いてウォッチ式で水路の水位を追いながら、水を 1 tick ずつ進めます。

https://github.com/user-attachments/assets/99ef7b4a-b32f-4e75-9aa8-9e976f7b0078
https://github.com/user-attachments/assets/7d6bbef6-64e7-4d70-af73-676a85f3ad05

## ゲームの中で C# を実行する:`execute-dynamic-code`

`execute-dynamic-code` は実行中のゲームの中で C# を動かします。Claude がプレイヤーの前にガラスブロックを 10 個積み、一時的なカメラから塔全体を撮ります。

https://github.com/user-attachments/assets/804d81bc-e019-4423-bfcd-089cd0e207c2
https://github.com/user-attachments/assets/ff4ec461-a7bc-4cb5-bcc8-8e1bdfa7fefd

## ゲーム画面を撮る:`screenshot`

Claude が `execute-dynamic-code` で湖を探してカメラを真上に移し、`screenshot` で撮ります。そのあと HUD を隠して撮り直します。

https://github.com/user-attachments/assets/da9302a6-7785-4b21-affa-e6f814094c48
https://github.com/user-attachments/assets/6af6c20d-8ea5-49d9-b913-6e5bc124ff58

## シーンの構造を読む:`get-hierarchy`、`find-game-objects`

`get-hierarchy` が実行中のシーンのツリーをファイルに保存し、`find-game-objects` がプレイヤーのコンポーネントを読みます。

https://github.com/user-attachments/assets/ccb960a9-fa8a-40d8-b72c-7e24e11d32c8
https://github.com/user-attachments/assets/c836df71-d66c-4bf1-8bc4-afc7f69969cb

## キーを押す:`simulate-keyboard`

`simulate-keyboard` が Input System 経由で W キーを押し続けます。プレイヤーは岸から湖に入り、スクリーンショットで水中の視界を確かめます。

https://github.com/user-attachments/assets/7b7abb7c-6d87-464e-b7d7-223109c27d30
https://github.com/user-attachments/assets/cc4e44d5-9a78-49db-99ab-3164a58b472b

## マウスを動かしてクリックする:`simulate-mouse-input`

`simulate-mouse-input` が人の手のようにマウスを少しずつ動かし、ブロックを 3 つ壊して、できた穴を水で満たします。

https://github.com/user-attachments/assets/0ecf0876-8230-4b4d-b51a-fe72cf9ca4c7
https://github.com/user-attachments/assets/118c8b4a-8254-4798-a63c-f6a213fc1031

# クイックスタート

Expand Down
Loading