Prototype/AmbientSound: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Added page.)
 
(overhaul to include Prototype)
Line 1: Line 1:
==Basics==
==Basics==
This prototype is used to make sound, while playing the game. This includes background noise, such as trees and wind, or the in-game's music, composed by Daniel James Taylor.
This prototype is used to make sound, while playing the game. This includes background noise, such as trees and wind, or the in-game's music, composed by Daniel James Taylor. Inherits all properties from [[Prototype]].
==Properties==
==Properties==
===type===
'''Type''': [[Types/string]]
Must be: "ambient-sound".
===name===
'''Type''': [[Types/string]]
This is the name of the Prototype. It can be anything.
===track_type===
===track_type===
'''Type''': [[Types/string]]
'''Type''': [[Types/string]]

Revision as of 12:47, 23 January 2018

Basics

This prototype is used to make sound, while playing the game. This includes background noise, such as trees and wind, or the in-game's music, composed by Daniel James Taylor. Inherits all properties from Prototype.

Properties

track_type

Type: Types/string

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

The ones the game uses are as follows:

 "early-game"
 "main-track"
 "interlude"

sound

Type: Types/Sound

This links the sound file, and volume to the prototype.

Example

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