Skip to content

能否请教一些问题 #55

Answered by benny502
benny502 asked this question in Q&A
Apr 28, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

来自问自答吧,earth.002这些文件里的是素材的索引。理论上来讲,靠这里的索引已经能计算出素材的坐标
p.x = -y * TILE_W + x * TILE_W + render_center_x_; p.y = y * TILE_H + x * TILE_H + render_center_y_;
但是这些素材不知道为什么还有一定的坐标偏移,存在index.ka里,真正的显示坐标要用计算出来的坐标减去偏移坐标

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@scarsty
Comment options

Answer selected by godka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants