我已经设置了配置文件,我刚开始编写程序来设置基于文本的RPG /模拟游戏的标题屏幕。 背景颜色似乎没有从默认黑色改变,这有点问题。我在下面发布了我现有的代码。是的,我正在执行包含配置文件和此代码的整个文件夹。
function love.load()
love.graphics.setBackgroundColor( 255, 255, 255 )
end
function love.update(dt)
end
function
love.graphics.newImage (\LUA txt adventure\Title.png)
end
$
function love.conf(t)
t.modules.joystick = true -- Enable the joystick module (boolean)
t.modules.audio = false -- Enable the audio module (boolean)
t.modules.keyboard = true -- Enable the keyboard module (boolean)
t.modules.event = true -- Enable the event module (boolean)
t.modules.image = true -- Enable the image module (boolean)
t.modules.graphics = true -- Enable the graphics module (boolean)
t.modules.timer = true -- Enable the timer module (boolean)
t.modules.mouse = true -- Enable the mouse module (boolean)
t.modules.sound = false -- Enable the sound module (boolean)
t.modules.thread = true
t.modules.physics = true -- Enable the physics module (boolean)
t.console = false -- Attach a console (boolean, Windows only)
t.title = "Space Trade Sim" -- The title of the window the game is in (string)
t.author = "Magikarp" -- The author of the game (string)
t.window.fullscreen = false -- Enable fullwindow (boolean)
t.window.vsync = false -- Enable vertical sync (boolean)
t.window.fsaa = 0 -- The number of FSAA-buffers (number)
t.window.height = 600 -- The window height (number)
t.window.width = 800 -- The window width (number)
end