多媒体文件整理到media文件夹内
This commit is contained in:
@@ -28,7 +28,7 @@ function BGM.set(L)
|
|||||||
end
|
end
|
||||||
function BGM.loadOne(N)
|
function BGM.loadOne(N)
|
||||||
N=BGM.list[N]
|
N=BGM.list[N]
|
||||||
local file="/BGM/"..N..".ogg"
|
local file="media/BGM/"..N..".ogg"
|
||||||
if love.filesystem.getInfo(file)then
|
if love.filesystem.getInfo(file)then
|
||||||
BGM.list[N]=love.audio.newSource(file,"stream")
|
BGM.list[N]=love.audio.newSource(file,"stream")
|
||||||
BGM.list[N]:setLooping(true)
|
BGM.list[N]:setLooping(true)
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ function IMG.getCount()
|
|||||||
end
|
end
|
||||||
function IMG.loadOne(_)
|
function IMG.loadOne(_)
|
||||||
local N=list[_]
|
local N=list[_]
|
||||||
IMG[N]=love.graphics.newImage("/image/"..IMG[N])
|
IMG[N]=love.graphics.newImage("media/image/"..IMG[N])
|
||||||
end
|
end
|
||||||
function IMG.loadAll()
|
function IMG.loadAll()
|
||||||
for i=1,count do
|
for i=1,count do
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ function SFX.set(L)
|
|||||||
end
|
end
|
||||||
function SFX.loadOne(_)
|
function SFX.loadOne(_)
|
||||||
_,SFX.list[_]=SFX.list[_]
|
_,SFX.list[_]=SFX.list[_]
|
||||||
local N="/SFX/".._..".ogg"
|
local N="media/SFX/".._..".ogg"
|
||||||
if love.filesystem.getInfo(N)then
|
if love.filesystem.getInfo(N)then
|
||||||
SFX.list[_]={love.audio.newSource(N,"static")}
|
SFX.list[_]={love.audio.newSource(N,"static")}
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ local VOC={}
|
|||||||
VOC.list={}
|
VOC.list={}
|
||||||
|
|
||||||
local function loadVoiceFile(N,vocName)
|
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
|
if love.filesystem.getInfo(fileName)then
|
||||||
bank[vocName]={love.audio.newSource(fileName,"static")}
|
bank[vocName]={love.audio.newSource(fileName,"static")}
|
||||||
table.insert(VOC.list[N],vocName)
|
table.insert(VOC.list[N],vocName)
|
||||||
|
|||||||
2
conf.lua
2
conf.lua
@@ -13,7 +13,7 @@ function love.conf(t)
|
|||||||
|
|
||||||
local W=t.window
|
local W=t.window
|
||||||
W.title="Techmino "..VERSION
|
W.title="Techmino "..VERSION
|
||||||
W.icon="/image/icon.png"
|
W.icon="media/image/icon.png"
|
||||||
W.width,W.height=1280,720
|
W.width,W.height=1280,720
|
||||||
W.minwidth,W.minheight=640,360
|
W.minwidth,W.minheight=640,360
|
||||||
W.borderless=false
|
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