看來love 0.9.0版本相對於0.8.0還是一個比較大的飛躍。很多改變,已被坑幾次。這次被坑的是conf.lua。
來看論壇一個遇到同樣問題的:https://love2d.org/forums/viewtopic.php?f=4&t=76847 裏面已經給出了說明
在0.8.0的時候,conf配置如下
function love.conf(v)
--configure game
v.title = "My Game Title"
v.author = "Me the Author"
v.screen.width = 400
v.screen.height = 300
v.screen.fullscreen = false
end
0.9.0的時候如下:
function love.conf(v)
--configure game
v.title = "My Game Title"
v.author = "Me the Author"
v.window.width = 400
v.window.height = 300
v.window.fullscreen = false
end
剛纔看了下更新日誌 Love 0.9.0 變化(相對於0.8.0)
裏面Renamed已經說了,所有的t.screen已經改名成t.window了。