local utility = require "lib.utility" local progress_bar = require "lib.progress_bar" -- test progress_bar local window_width, window_height = love.graphics.getDimensions() local progress_bar_height = 30 -- TODO should not be hardcoded local test = progress_bar(0, window_height - progress_bar_height, window_width, progress_bar_height) test: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()) love.draw = function() test:draw() end love.keypressed = function(key) if key == "escape" then -- TODO save any remaining log love.event.quit() end end