mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Centered spineboy.
This commit is contained in:
parent
95c550bc0c
commit
d91ea8d5a5
@ -11,8 +11,8 @@ function skeleton:createImage (attachment)
|
|||||||
-- Customize where images are loaded.
|
-- Customize where images are loaded.
|
||||||
return love.graphics.newImage("data/" .. attachment.name .. ".png")
|
return love.graphics.newImage("data/" .. attachment.name .. ".png")
|
||||||
end
|
end
|
||||||
skeleton.x = 150
|
skeleton.x = love.graphics.getWidth() / 2
|
||||||
skeleton.y = 325
|
skeleton.y = love.graphics.getHeight() / 2 + 150
|
||||||
skeleton.flipX = false
|
skeleton.flipX = false
|
||||||
skeleton.flipY = false
|
skeleton.flipY = false
|
||||||
skeleton.debugBones = true -- Omit or set to false to not draw debug lines on top of the images.
|
skeleton.debugBones = true -- Omit or set to false to not draw debug lines on top of the images.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user