The first thing that you need to do is pull editor.lua and game.lua from the source file to your desktop, using 7zip or WinRAR.
Open editor.lua and look for the line that says...
Code: Select all
guielements["backgrounddropdown"] = guielement:new("dropdown", 17, 85, 6, changebackground, background, "blue", "black", "water")
Code: Select all
guielements["backgrounddropdown"] = guielement:new("dropdown", 17, 85, 6, changebackground, background, "blue", "black", "water", "crimson")
Next open game.lua. Look for the line that says...
Code: Select all
function game_load(suspended)
scrollfactor = 0
backgroundcolor = {}
backgroundcolor[1] = {92, 148, 252}
backgroundcolor[2] = {0, 0, 0}
backgroundcolor[3] = {32, 56, 236}
love.graphics.setBackgroundColor(backgroundcolor[1])
Code: Select all
function game_load(suspended)
scrollfactor = 0
backgroundcolor = {}
backgroundcolor[1] = {92, 148, 252}
backgroundcolor[2] = {0, 0, 0}
backgroundcolor[3] = {32, 56, 236}
backgroundcolor[4] = {220, 20, 60}
love.graphics.setBackgroundColor(backgroundcolor[1])
Go into the source file and rename game.lua to game.old and editor.lua to editor.old. Drag your new .lua files from the desktop into the source file. Close it out, then open Mari0. Now, in your Background Color options, you should see your new color.
Have fun!