浏览代码

gbe.nodes.* updated to render to the world position instead of their location positions.

master
Bryan Miller 6 年前
父节点
当前提交
ef644c0988
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      game/gbe/nodes.py

+ 2
- 2
game/gbe/nodes.py 查看文件

@@ -659,7 +659,7 @@ class NodeText(Node2D):
res.clear("font", self._NODETEXT_DATA["font_src"])
Node2D._render(self, surface)
if self._NODETEXT_DATA["surface"] is not None:
pos = self.position
pos = self.get_world_position()
pos = (int(pos[0]), int(pos[1]))
surface.blit(self._NODETEXT_DATA["surface"], pos)

@@ -863,7 +863,7 @@ class NodeSprite(Node2D):
fsurf = ssurf

# Place the sprite! WHEEEEE!
pos = self.position
pos = self.get_world_position()
surface.blit(fsurf, pos)

# Call on all children

正在加载...
取消
保存