Sfoglia il codice sorgente

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

master
Bryan Miller 6 anni fa
parent
commit
ef644c0988
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      game/gbe/nodes.py

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

@@ -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

Loading…
Annulla
Salva