making sure I can reasonably use logging here
This commit is contained in:
+6
-1
@@ -1,7 +1,12 @@
|
||||
local log = require "lib.log"
|
||||
local progress_bar = require "lib.progress_bar"
|
||||
local timer = require "lib.timer"
|
||||
local utility = require "lib.utility"
|
||||
|
||||
log{
|
||||
lol = true,
|
||||
}
|
||||
|
||||
-- test progress_bar
|
||||
local window_width, window_height = love.graphics.getDimensions()
|
||||
local progress_bar_height = 30 -- TODO should not be hardcoded
|
||||
@@ -9,7 +14,7 @@ local test_bar = progress_bar(0, window_height - progress_bar_height, window_wid
|
||||
test_bar:set_text("This is a test text string of significant length. It exists to test printing over a progress bar.")
|
||||
-- test:set_progress(math.random())
|
||||
|
||||
local test_timer = timer.every(1, function() end) -- TODO consider making timer not need a function; cause I don't here!
|
||||
local test_timer = timer.every(1, function() log("lol", "The timer completed.") end) -- TODO consider making timer not need a function; cause I don't here!
|
||||
|
||||
love.update = function(dt)
|
||||
timer.update(dt)
|
||||
|
||||
Reference in New Issue
Block a user