lib/fantasy/hud_image.rb in fantasy-0.1.7 vs lib/fantasy/hud_image.rb in fantasy-0.1.9
- old
+ new
@@ -35,10 +35,10 @@
draw_debug if Global.debug
end
def draw_debug
- Global.pixel_font.draw_text("#{@position.x.floor},#{@position.y.floor}", @position.x, @position.y - 20, 1)
+ Global.pixel_fonts["medium"].draw_text("#{@position.x.floor},#{@position.y.floor}", @position.x, @position.y - 20, 1)
end
def destroy
Global.hud_images.delete(self)
end