feat: working on in app quiz creation

This commit is contained in:
2026-09-01 20:33:25 -07:00
parent 691c3adb37
commit c7592404f1
9 changed files with 50 additions and 2 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ return {
name = 'Jeopardy', -- name of the game for your executable name = 'Jeopardy', -- name of the game for your executable
developer = 'Ryan Ward', -- dev name used in metadata of the file developer = 'Ryan Ward', -- dev name used in metadata of the file
output = 'bin', -- output location for your game, defaults to $SAVE_DIRECTORY output = 'bin', -- output location for your game, defaults to $SAVE_DIRECTORY
version = '1.0.4', -- 'version' of your game, used to name the folder in output version = '1.0.5', -- 'version' of your game, used to name the folder in output
love = '11.5', -- version of LÖVE to use, must match github releases love = '11.5', -- version of LÖVE to use, must match github releases
ignore = {'bin', 'love', 'server_test', '.gitignore', '.gitmodules', 'build.lua', 'login_dialog.yaml', 'package.bat', 'README.md'}, -- folders/files to ignore in your project ignore = {'bin', 'love', 'server_test', '.gitignore', '.gitmodules', 'build.lua', 'login_dialog.yaml', 'package.bat', 'README.md'}, -- folders/files to ignore in your project
icon = 'assets/icon.png', -- 256x256px PNG icon for game, will be converted for you icon = 'assets/icon.png', -- 256x256px PNG icon for game, will be converted for you
+1 -1
Submodule gui updated: 27995af07f...351f2762d5
+7
View File
@@ -171,6 +171,12 @@ function LoadTemplate(name, path)
ALIGN_LEFT = gui.ALIGN_LEFT, ALIGN_LEFT = gui.ALIGN_LEFT,
ALIGN_RIGHT = gui.ALIGN_RIGHT, ALIGN_RIGHT = gui.ALIGN_RIGHT,
ALIGN_JUSTIFY = gui.ALIGN_JUSTIFY, ALIGN_JUSTIFY = gui.ALIGN_JUSTIFY,
IMAGE = "image",
AUDIO = "audio",
VIDEO = "video",
TEXT = "text",
LIST = "list",
NUMBER = "number",
-- Global vars -- Global vars
color = color, color = color,
error = multi.error, error = multi.error,
@@ -182,6 +188,7 @@ function LoadTemplate(name, path)
-- love stuff -- love stuff
newSource = love.audio.newSource, newSource = love.audio.newSource,
log = templateLog, log = templateLog,
} }
env._G = env env._G = env
+5
View File
@@ -44,6 +44,11 @@ local function index(window, q, callback)
}, imageHolder, plusLabel, imageHolder2) }, imageHolder, plusLabel, imageHolder2)
useDefaultHandler(callback) useDefaultHandler(callback)
return {
{imageA=IMAGE, description="First image to display"},
{imageB=IMAGE, description="Second image to display"},
}
end end
local function update(dt) local function update(dt)
+5
View File
@@ -84,6 +84,11 @@ local function index(window, q, callback)
end end
end, end,
},confirm) },confirm)
-- Return the expected types
return {
{choices=LIST, description="List of options"}
}
end end
local function update(dt) -- time in seconds that has passed since local function update(dt) -- time in seconds that has passed since
+5
View File
@@ -29,6 +29,11 @@ local function index(window, q, callback)
imageHolder:setDualDim(0,0,imageHolder.imageWidth,imageHolder.imageHeight) imageHolder:setDualDim(0,0,imageHolder.imageWidth,imageHolder.imageHeight)
useDefaultHandler(callback) useDefaultHandler(callback)
-- Return the expected types
return {
{image=IMGAE, description="Image the question is about"}
}
end end
local function update(dt) -- time in seconds that has passed since local function update(dt) -- time in seconds that has passed since
+5
View File
@@ -44,6 +44,11 @@ local function index(window, q, callback)
end) end)
useDefaultHandler(callback) useDefaultHandler(callback)
-- Return the expected types
return {
{sound=AUDIO, description="Sound that will be played"}
}
end end
local function update(dt) -- time in seconds that has passed since local function update(dt) -- time in seconds that has passed since
+5
View File
@@ -36,6 +36,11 @@ local function index(window, q, callback)
video.XButton.visible = false video.XButton.visible = false
useDefaultHandler(callback) useDefaultHandler(callback)
-- Return the expected types
return {
{video=VIDEO, description="Video that will be played"}
}
end end
local function update(dt) -- time in seconds that has passed since local function update(dt) -- time in seconds that has passed since
+16
View File
@@ -73,6 +73,22 @@ local function index(window, q, callback)
end) end)
useDefaultHandler(callback) useDefaultHandler(callback)
-- Return the expected types
return {
{
zoom=IMAGE,
description = "Full zoom in on an image"
},
{
minzoom=IMAGE,
description = "Minimum zoom before the full image is revealed"
},
{
fullimage=IMAGE,
description = "Full image to show"
}
}
end end
local function update(dt) -- time in seconds that has passed since local function update(dt) -- time in seconds that has passed since