mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 14:39:02 -06:00
Added background for options screen
This commit is contained in:
parent
63c0721978
commit
4cb20101b0
@ -20,6 +20,7 @@ backgrounds = {
|
|||||||
love.graphics.newImage("res/backgrounds/1800-railways.png"),
|
love.graphics.newImage("res/backgrounds/1800-railways.png"),
|
||||||
love.graphics.newImage("res/backgrounds/1900-world-wide-web.png"),
|
love.graphics.newImage("res/backgrounds/1900-world-wide-web.png"),
|
||||||
title = love.graphics.newImage("res/backgrounds/title_v0.1.png"),
|
title = love.graphics.newImage("res/backgrounds/title_v0.1.png"),
|
||||||
|
input_config = love.graphics.newImage("res/backgrounds/options-gears.png")
|
||||||
}
|
}
|
||||||
|
|
||||||
blocks = {
|
blocks = {
|
||||||
|
BIN
res/backgrounds/options-gears.png
Normal file
BIN
res/backgrounds/options-gears.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.9 MiB |
@ -28,6 +28,13 @@ function ConfigScene:update()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function ConfigScene:render()
|
function ConfigScene:render()
|
||||||
|
love.graphics.setColor(1, 1, 1, 1)
|
||||||
|
love.graphics.draw(
|
||||||
|
backgrounds["input_config"],
|
||||||
|
0, 0, 0,
|
||||||
|
0.5, 0.5
|
||||||
|
)
|
||||||
|
|
||||||
love.graphics.setFont(font_3x5_2)
|
love.graphics.setFont(font_3x5_2)
|
||||||
for i, input in pairs(configurable_inputs) do
|
for i, input in pairs(configurable_inputs) do
|
||||||
if config.input[input] then
|
if config.input[input] then
|
||||||
|
Loading…
Reference in New Issue
Block a user