# I am the Watcher. I am your guide through this vast new twtiverse.
# 
# Usage:
#     https://watcher.sour.is/api/plain/users              View list of users and latest twt date.
#     https://watcher.sour.is/api/plain/twt                View all twts.
#     https://watcher.sour.is/api/plain/mentions?uri=:uri  View all mentions for uri.
#     https://watcher.sour.is/api/plain/conv/:hash         View all twts for a conversation subject.
# 
# Options:
#     uri     Filter to show a specific users twts.
#     offset  Start index for quey.
#     limit   Count of items to return (going back in time).
# 
# twt range = 1 1
# self = https://watcher.sour.is/conv/5czy7na
一起用 Go 做一個小遊戲(中)**
限制飛船的活動範圍---------上一篇文章還留了個尾巴,細心的同學應該發現了:飛船可以移動出屏幕!!!現在我們就來限制一下飛船的移動範圍。我們規定飛船可以左右超過半個身位,如下圖所示:很容易計算得出,左邊位置的 x 座標爲:x = -W2/2右邊位置的座標爲:x = W1 - W2/2修改 input.go 的代碼如下:func (i Input) Update(ship Ship, cfg ⌘ Read more