Skip to content

Commit 69c473f

Browse files
Merge pull request #76 from Stephenson-Software/ui/room-coords
UI - Room Coordinates
2 parents f4bac27 + e222729 commit 69c473f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/screen/worldScreen.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,10 @@ def draw(self):
366366
self.energyBar.draw()
367367
self.selectedItemPreview.draw()
368368

369+
# draw room coordinates in top left corner
370+
coordinatesText = "(" + str(self.currentRoom.getX()) + ", " + str(self.currentRoom.getY()) + ")"
371+
self.graphik.drawText(coordinatesText, 30, 20, 20, (255,255,255))
372+
369373
def handleMouseDownEvent(self):
370374
if pygame.mouse.get_pressed()[0]: # left click
371375
self.player.setGathering(True)

0 commit comments

Comments
 (0)