Prototype/AmbientSound: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
No edit summary
m (fixed link)
Line 1: Line 1:
{{Prototype parent}}
{{Prototype parent}}
This prototype is used to make sound while playing the game. This includes the game's [[Factorio Soundtrack|music]], composed by Daniel James Taylor.
This prototype is used to make sound while playing the game. This includes the game's [https://store.steampowered.com/app/436090 music], composed by Daniel James Taylor.


{{Prototype TOC|ambient-sound}}
{{Prototype TOC|ambient-sound}}

Revision as of 10:10, 29 November 2021

Prototype definitions » Prototype/AmbientSound


This prototype is used to make sound while playing the game. This includes the game's music, composed by Daniel James Taylor.


Prototype/AmbientSound — ambient-sound
name::string
sound::Sound
track_type::string
type::string
weight::double (optional)

Mandatory properties

type

Type: string
Specification of the type of the prototype. Must be "ambient-sound".

name

Type: string
Unique textual identification of the prototype.

sound

Type: Sound
The sound file and volume.

track_type

Type: string
This lets the game know in what instances the audio file is played.

The following types are recognized:

  • "early-game"
  • "main-track"
  • "interlude"
  • "late-game"
  • "menu-track"

Optional properties

weight

Type: double
Default: 1

Example

 {
   type = "ambient-sound",
   name = "world-ambience-4",
   track_type = "interlude",
   sound =
   {
     filename = "__base__/sound/ambient/world-ambience-4.ogg",
     volume = 1.2
   }
 },