From 67b62dde3dfd4fddba82940894f5b3416eee4c06 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Wed, 30 Sep 2015 19:46:44 -0400 Subject: more fonts, entity name displays --- src/world.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/world.cpp') diff --git a/src/world.cpp b/src/world.cpp index 1d56643..2a0e471 100644 --- a/src/world.cpp +++ b/src/world.cpp @@ -117,7 +117,10 @@ LOOP2: // Draw each world for(i=0;iinWorld==this){ entity[i]->draw(); - ui::putText(entity[i]->loc.x,entity[i]->loc.y,"%d",i); + if(entity[i]->near){ + ui::setFontSize(14); + ui::putText(entity[i]->loc.x,entity[i]->loc.y-ui::fontSize-HLINE/2,"%s",entity[i]->name); + } } } } -- cgit v1.2.3