mirror of
https://github.com/ApfelTeeSaft/PlanetFleet.git
synced 2026-08-26 19:33:38 +00:00
playable music in game
This commit is contained in:
@@ -65,3 +65,7 @@ mappings = {
|
||||
graphics = {
|
||||
resolution = {x = 1920, y = 1080}
|
||||
}
|
||||
audio = {
|
||||
sfxVolume = 100,
|
||||
musicVolume = 100,
|
||||
}
|
||||
|
||||
@@ -3,6 +3,28 @@ Size = {x = 70, y = 70}
|
||||
sz = 210
|
||||
s = 40
|
||||
|
||||
function generateFactionMusic(factionId)
|
||||
asianTracks = {'ACS/asian_theme_1.ogg', 'ACS/asian_theme_2.ogg'}
|
||||
americanTracks = {'AInc/american_theme_1.ogg', 'AInc/american_theme_2.ogg'}
|
||||
europeanTracks = {'ER/european_theme_1.ogg', 'ER/european_theme_2.ogg'}
|
||||
|
||||
factionTracks = {}
|
||||
|
||||
if factionId == 0 then
|
||||
factionTracks = americanTracks
|
||||
elseif factionId == 1 then
|
||||
factionTracks = europeanTracks
|
||||
elseif factionId == 2 then
|
||||
factionTracks = asianTracks
|
||||
end
|
||||
|
||||
return {
|
||||
loop = true,
|
||||
shuffle = false,
|
||||
tracks = factionTracks
|
||||
}
|
||||
end
|
||||
|
||||
eyeIcon = 'eye.png'
|
||||
refIcon = 'refineds.png'
|
||||
minimapSize = {x = 200, y = 200}
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
Size = {x = 150, y = 40}
|
||||
|
||||
numGui = 4
|
||||
music = {
|
||||
loop = true,
|
||||
shuffle = false,
|
||||
tracks = {'intro.ogg'}
|
||||
}
|
||||
gui = {
|
||||
{
|
||||
pos = {x = 110, y = 40, z = 0},
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user