多媒体文件整理到media文件夹内

This commit is contained in:
MrZ626
2020-11-16 22:32:44 +08:00
parent db3c87f852
commit a43a34fe10
283 changed files with 10 additions and 10 deletions

View File

@@ -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)

View File

@@ -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

View File

@@ -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

View File

@@ -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)

View File

@@ -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