Jump to content

Recommended Posts

 

 

So, it would be nice in Atlas/biomes/random maps to be able to choose a different ambient sound for a map. The current "birds chirping in a North American forest" sound is pretty played out. How difficult would it be to code something like that? Just a drop list in Atlas and then some lines in the biome and random map code.

While playtesting the new NAVAL OVERHAUL (PLEASE REVIEW!), I play something like the video in the background to give me that ocean ambient.

 

^Great for island maps

  • Like 1
Link to comment
Share on other sites

9 hours ago, Stan` said:

Currently hardcoded in one js file called ambient.js or something. Maybe it could read the biome data or something.

/**
 * This class is concerned with playing an ambient track, birds chirping etc.
 */
class Ambient
{
	constructor()
	{
		Engine.PlayAmbientSound(pickRandom(this.Tracks), true);
	}
}

/**
 * TODO: Let the map decide the tracks.
 */
Ambient.prototype.Tracks = [
	"audio/ambient/dayscape/day_tropical_10.ogg",
	"audio/ambient/dayscape/day_tropical_11.ogg"
];

 

I altered the tracks in the list at the bottom and it works. Yeah, unfortunately there's still no way to change it on a per map basis. Definitely a desire. Either the ambient tracks could be listed in the biome file or this ambient.js file could allow you to do it. 

  • Like 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...