 				@bufferPut (e.x - c.x + x), (e.y - c.y + y), graphic
 
 	renderHealth: (x, y) ->
-		program.fillArea x, y, 40, 2, ' '
+		@fillArea x, y, 40, 2, ' '
 		health = @game.player.creature.health
 
 		@renderRatio x, y, health, ' health'

	render: ->
		switch @game.state
			when 'game'
				# @renderLog 0, 0
				@renderMap 0, 1
				# @renderMenu @menu if @menu?

				# @renderHealth 0, 22

			else null

		@flipBuffer()

	renderLog: (x, y) ->
		program.fillArea x, y, 80, 1, ' '

		if @logs.length > 0
			program.move x, y
			program.write @logs[0]

			if @hasMoreLogs()
				program.write TtyRenderer.strMore

	renderMenu: (menu) ->
		x = menu.x ? 0

	renderRatio: (x, y, {min, current, max}, suffix = '') ->
		min ?= 0

		str =
			if min is 0
				"#{current} / #{max}#{suffix}"
			else
				"#{min} <= #{current} <= #{max}#{suffix}"

		@write x, y, str

	renderBar: (x, y, w, {min, current, max}) ->
		min ?= 0
