【发布时间】:2016-06-17 13:05:03
【问题描述】:
function love.collide ()
if x < 0 then
x = 0
end
if x < love.graphics.getWidth () - Dolphin:getWidth () then
x = love.graphics.getWidth () - Dolphin:getWidth ()
end
end
我正在尝试进行 x 坐标碰撞,并且我之前已经定义了 x。没有错误,但碰撞无法正常工作。
【问题讨论】: