0
Q
水平移動背景圖像
A
回答
1
您鏈接的jsbin在我的電腦上不起作用,所以可能還有其他問題。
總之,使背景在你的遊戲水平移動,你會發現功能function Background()
,並改變this.y asignations到this.x
(例如,this.y += this.speed
將成爲this.x += this.speed
)。
相關問題
- 1. 背景圖像的水平滾動
- 2. JQuery無限水平背景圖像平移
- 3. 背景圖像水平視差
- 4. CSS類背景圖像水平定位?
- 5. 背景圖像水平伸展
- 6. 水平添加背景圖像
- 7. CSS移動背景圖像
- 8. CSS背景圖像移動
- 9. JQuery水平滑動背景
- 10. 網格視圖與背景圖像水平滾動
- 11. 用鼠標-CSS和JS移動背景圖像 - 多個水平堆疊的DIV
- 12. 背景圖像平移背景大小:封面?
- 13. 防止背景圖像的水平滾動
- 14. 標題背景圖像時會導致水平滾動
- 15. 沒有水平滾動條的大背景圖像
- 16. 水平平鋪背景
- 17. 水平重複圖像(非背景圖像)
- 18. 當在Chrome中水平滾動時,平鋪背景圖像的動畫背景位置停止。
- 19. 在CSS中保留移動或平鋪的背景圖像
- 20. 在mousemove上移動背景圖像
- 21. 移動身體的背景圖像
- 22. 從上往下移動背景圖像
- 23. 使用Stellar.js背景圖像移動
- 24. 移動背景圖像超過帆布
- 25. 背景圖像移動OpenGL ES2
- 26. 隨機移動背景圖像
- 27. 背景圖像中移動的jQuery
- 28. div在移動的背景圖像
- 29. 水平滾動的CSS背景
- 30. 視頻背景創建水平滾動
您的遊戲目前無法正常運行,您也應該在問題本身中包含相關代碼。 – APAD1 2014-12-02 22:32:44