Browse Source

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

master
Bryan Miller 6 years ago
parent
commit
ef644c0988
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      game/gbe/nodes.py

+ 2
- 2
game/gbe/nodes.py View File

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


fsurf = ssurf fsurf = ssurf


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


# Call on all children # Call on all children

Loading…
Cancel
Save