playable music in game

This commit is contained in:
devZoGok
2025-06-21 19:42:17 +03:00
parent 5eaefb47a5
commit d092f61fe0
18 changed files with 84 additions and 16 deletions
+4
View File
@@ -65,3 +65,7 @@ mappings = {
graphics = {
resolution = {x = 1920, y = 1080}
}
audio = {
sfxVolume = 100,
musicVolume = 100,
}
+22
View File
@@ -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}
+5
View File
@@ -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.