Skip to content

Commit

Permalink
added resource display
Browse files Browse the repository at this point in the history
  • Loading branch information
bricks42 committed Jan 7, 2012
1 parent 2ed6b19 commit a5bfa28
Show file tree
Hide file tree
Showing 3 changed files with 416 additions and 0 deletions.
4 changes: 4 additions & 0 deletions class/Game.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ local LogFlasher = require "engine.LogFlasher"
local DebugConsole = require "engine.DebugConsole"
local FlyingText = require "engine.FlyingText"
local Tooltip = require "engine.Tooltip"
local PlayerDisplay = require "mod.class.PlayerDisplay"

local QuitDialog = require "mod.dialogs.Quit"

Expand Down Expand Up @@ -121,6 +122,8 @@ function _M:setupDisplayMode()
Map:setViewPort(200, 20, self.w - 200, math.floor(self.h * 0.80) - 20, 32, 32, nil, 22, true)
Map:resetTiles()
Map.tiles.use_images = false
-- Setup the player display
self.player_display = PlayerDisplay.new(0, 20, 200, math.floor(self.h * 0.80) - 20, {0, 0, 0}, "/data/font/VeraMono.ttf", 10)

if self.level then
self.level.map:recreate()
Expand Down Expand Up @@ -230,6 +233,7 @@ function _M:display(nb_keyframe)

-- We display the player's interface
self.flash:toScreen(nb_keyframe)
self.player_display:toScreen(nb_keyframe)
self.logdisplay:toScreen()
if self.show_npc_list then
self.npcs_display:toScreen()
Expand Down
Loading

0 comments on commit a5bfa28

Please sign in to comment.