多媒体文件整理到media文件夹内
This commit is contained in:
@@ -28,7 +28,7 @@ function BGM.set(L)
|
||||
end
|
||||
function BGM.loadOne(N)
|
||||
N=BGM.list[N]
|
||||
local file="/BGM/"..N..".ogg"
|
||||
local file="media/BGM/"..N..".ogg"
|
||||
if love.filesystem.getInfo(file)then
|
||||
BGM.list[N]=love.audio.newSource(file,"stream")
|
||||
BGM.list[N]:setLooping(true)
|
||||
|
||||
@@ -32,7 +32,7 @@ function IMG.getCount()
|
||||
end
|
||||
function IMG.loadOne(_)
|
||||
local N=list[_]
|
||||
IMG[N]=love.graphics.newImage("/image/"..IMG[N])
|
||||
IMG[N]=love.graphics.newImage("media/image/"..IMG[N])
|
||||
end
|
||||
function IMG.loadAll()
|
||||
for i=1,count do
|
||||
|
||||
@@ -7,7 +7,7 @@ function SFX.set(L)
|
||||
end
|
||||
function SFX.loadOne(_)
|
||||
_,SFX.list[_]=SFX.list[_]
|
||||
local N="/SFX/".._..".ogg"
|
||||
local N="media/SFX/".._..".ogg"
|
||||
if love.filesystem.getInfo(N)then
|
||||
SFX.list[_]={love.audio.newSource(N,"static")}
|
||||
else
|
||||
|
||||
@@ -6,7 +6,7 @@ local VOC={}
|
||||
VOC.list={}
|
||||
|
||||
local function loadVoiceFile(N,vocName)
|
||||
local fileName="VOICE/"..SETTING.cv.."/"..vocName..".ogg"
|
||||
local fileName="media/VOICE/"..SETTING.cv.."/"..vocName..".ogg"
|
||||
if love.filesystem.getInfo(fileName)then
|
||||
bank[vocName]={love.audio.newSource(fileName,"static")}
|
||||
table.insert(VOC.list[N],vocName)
|
||||
|
||||
2
conf.lua
2
conf.lua
@@ -13,7 +13,7 @@ function love.conf(t)
|
||||
|
||||
local W=t.window
|
||||
W.title="Techmino "..VERSION
|
||||
W.icon="/image/icon.png"
|
||||
W.icon="media/image/icon.png"
|
||||
W.width,W.height=1280,720
|
||||
W.minwidth,W.minheight=640,360
|
||||
W.borderless=false
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user