Tile dot跨螢幕圓點
Several screens lying on a table become one canvas: one photo places them, one clock and one seed keep them together.幾台平放在桌上的螢幕變成一張畫布:拍一張照片定位,同一個時鐘、同一個種子讓它們一起演。
Try these three things試試這三件事
- Run node serve.js, open this page with ?room=desk on three screens, tap Join on each and lay them flat on the table.
- On a phone open packages/tile/?room=desk, press Markers, then take one photo from above with every screen in it.
- Watch the dot leave one screen and come out of the next one where it really is; move a screen and take the photo again.
- 跑 node serve.js,在三台螢幕上打開這一頁並加上 ?room=desk,各點一下 Tap to join,平放在桌上。
- 用一支手機打開 packages/tile/?room=desk,按「標記」,從上方拍一張把每台螢幕都拍進去的照片。
- 看圓點離開一台螢幕,從下一台它真正所在的位置出來。移動一台螢幕,再拍一次。
Needs: Phone or iPad.需要:手機或 iPad。
No hardware? Use Plays itself.沒有硬體?用它自己會播。
Read these lines讀這幾行
main.js:28–35 Every position is a function of the shared time and seed, never a sum of this screen's frames.每個位置都是共同時間與種子的函式,從不累加這台螢幕自己的影格。main.js:65–70 The view says which piece of the shared canvas this screen draws: one setTransform.view 說這台螢幕畫共同畫布的哪一塊:一個 setTransform。main.js:121–141 Join the room, wrap the world, route the camera page's Markers to a param, keep the timeline on the shared clock.加入房間、包住世界、把拍照頁的「標記」接到參數、讓時間軸跟著共同時鐘。
Next step下一步
In the docs: Several screens, one canvas · In your own world文件裡:多螢幕拼接:一張畫布、用在你自己的世界
Next on this route: 31 Align →這條路線的下一個:31 投影對位 →
All examples所有範例