labeling temporary code

This commit is contained in:
tangent committed 2026-09-26 21:33:31 -06:00
1 parent 68d9bec872
commit a0ea5d71c5
1 file changed
+7 -5
+7 -5
View File
@@ -113,6 +113,7 @@ local level_up = function(character)
-- TODO this is where a spell could be added, and -- TODO this is where a spell could be added, and
end end
-- TEMP
local test_new_character = function() local test_new_character = function()
local character = new_character() local character = new_character()
local message = "My name is " .. character.name .. ", and I am a " .. character.class .. " " .. character.race .. "!" local message = "My name is " .. character.name .. ", and I am a " .. character.class .. " " .. character.race .. "!"
@@ -120,7 +121,7 @@ local test_new_character = function()
end end
test_new_character() test_new_character()
-- test progress_bar -- TEMP test progress_bar
local test_bar = progress_bar(0, window_height - constants.progress_bar_height * 2, window_width, constants.progress_bar_height) local test_bar = progress_bar(0, window_height - constants.progress_bar_height * 2, window_width, constants.progress_bar_height)
local test_message = "This is a test text string of significant length. It exists to test printing over a progress bar." local test_message = "This is a test text string of significant length. It exists to test printing over a progress bar."
test_bar:set_text(test_message) test_bar:set_text(test_message)
@@ -129,6 +130,7 @@ local test_timer = timer.every(#test_message * constants.reading_time_multiplier
-- macOS_say(test_message) -- macOS_say(test_message)
end) end)
-- I started this too soon and it needs deletion or massive change
local task_queue local task_queue
task_queue = { task_queue = {
pending_tasks = {}, pending_tasks = {},
@@ -151,14 +153,14 @@ love.update = function(dt)
lovebird.update() lovebird.update()
timer.update(dt) timer.update(dt)
test_bar:set_progress(test_timer.run_time / test_timer:get_interval()) test_bar:set_progress(test_timer.run_time / test_timer:get_interval()) -- TEMP
macOS_say:update() macOS_say:update()
end end
love.draw = function() love.draw = function()
love.graphics.draw(images.love_image, images.grass, 50, 50) -- TEMP love.graphics.draw(images.love_image, images.grass, 50, 50) -- TEMP
test_bar:draw() test_bar:draw() -- TEMP
book_progress:draw() book_progress:draw()
end end
@@ -172,9 +174,9 @@ love.keypressed = function(key)
update_book_progress(-1) update_book_progress(-1)
elseif key == "right" then elseif key == "right" then
update_book_progress(1) update_book_progress(1)
elseif key == "v" then elseif key == "v" then -- TEMP testing voices
macOS_say() macOS_say()
elseif key == "c" then elseif key == "c" then -- TEMP gen character and say introduction
test_new_character() test_new_character()
end end
end end