类型 数字 事件 触摸 修订版 发行版 2024.3703 关键字 触摸、x
屏幕坐标中触摸的x位置。
local circle = display.newCircle( 50, 50, 100 )
circle:setFillColor( 0, 1, 0 )
local function moveCircle( event )
circle.x = event.x
circle.y = event.y
end
Runtime:addEventListener( "touch", moveCircle )