미청구/godsboy7777-150194

弹珠计算机仿真对比

@GodsBoy7777 的代码动画作品,原作者待认领。

공유
제작자의 소유권 주장 대기 중

@GodsBoy7777, 귀하의 작품은 .motion 템플릿으로 전환될 수 있습니다. 소유권 주장을 확인하여 귀하의 이름으로 등록한 뒤, 재사용 가능한 템플릿을 공개할지 여부를 결정하세요.

제작자입니다 — 이 작품의 소유권을 주장합니다
전체 영상 · 1:19@GodsBoy7777Claude Opus 5.5

원본 음성이 있는 경우 함께 재생되는 전체 영상입니다. 제작자: @GodsBoy7777 의 소유입니다.원본 게시물 보기 ↗

PROMPT제작자의 공개 프롬프트

이 영상이 제작된 방법

Build a single self-contained HTML file: a 3D marble computer, in the spirit of Wintergatan's marble machine and the Digi-Comp II, that adds two 4-bit numbers using nothing but marbles falling through mechanical toggles.

Hard rules:

1. One HTML file. Three.js from https://t.co/KCQbEZLusb via an import map, plus its OrbitControls addon. No other libraries, no physics engine, no external assets.

2. The mechanism is the computer. Each bit of the result is stored in a two-state toggle (flip-flop) that a marble physically flips as it passes. Carries happen because a marble leaving one toggle rolls on to the next. Do not compute the answer in JavaScript arithmetic anywhere. The displayed result must be read from the toggle states after the last marble stops.

3. Marbles move along tracks with believable gravity and timing. Nothing teleports. You may script motion along paths, but every toggle flip must be caused by a marble arriving at it.

4. Input: two rows of four switches (A and B, 0 to 15), set by clicking. A lever labelled RUN releases the marbles. A counter shows how many marbles have fallen.

5. Output: a row of five result toggles, most significant bit on the left, and a readout that shows the binary and decimal value read from those toggles.

6. A DEMO button runs 5+6, then 9+7, then 15+15, resetting between runs, so it can be screen-recorded without touching anything.

7. Looks: a wooden board, brass toggles, glass marbles, warm studio lighting, soft shadows, a slow camera that follows the busiest part of the machine. It should look good in a square 1080x1080 recording.

8. Short click sounds via the Web Audio API when a toggle flips, started only after the first user click.

9. It must run at 60 fps on a normal laptop and have no console errors.

Output only the complete HTML file.

이 프롬프트를 Claude에 전달하여 자신만의 버전을 제작하세요. 원본 제작자는 작품의 소유권을 주장하고 프로젝트를 재사용 가능한 .motion 템플릿으로 패키징할 수 있습니다.

청구되지 않은 더 많은 작업

COMMUNITY

댓글과 제작 결과

질문, 사용 경험, 이 템플릿으로 만든 작품을 공유하세요.

공개되고 소유권 확인된 템플릿만 댓글을 지원합니다.