Added background for options screen

pull/1/head v0.1.6
Oshisaure 2020-10-09 18:44:48 +01:00
parent 63c0721978
commit 4cb20101b0
3 changed files with 8 additions and 0 deletions

View File

@ -20,6 +20,7 @@ backgrounds = {
love.graphics.newImage("res/backgrounds/1800-railways.png"),
love.graphics.newImage("res/backgrounds/1900-world-wide-web.png"),
title = love.graphics.newImage("res/backgrounds/title_v0.1.png"),
input_config = love.graphics.newImage("res/backgrounds/options-gears.png")
}
blocks = {

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 MiB

View File

@ -28,6 +28,13 @@ function ConfigScene:update()
end
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)
for i, input in pairs(configurable_inputs) do
if config.input[input] then