Prototype/AmbientSound: Difference between revisions
Jump to navigation
Jump to search
(Set prototype parent) |
(Converted to SMW format) |
||
Line 1: | Line 1: | ||
{{Prototype parent}} | {{Prototype parent}} | ||
This prototype is used to make sound, while playing the game. This includes the in-game's music, composed by Daniel James Taylor. | |||
{{Prototype TOC|ambient-sound}} | |||
Prototype | |||
==Mandatory properties== | |||
== | |||
{{Prototype property|type|[[Types/string|string]]}} | |||
Specification of the type of the prototype. Must be "ambient-sound". | Specification of the type of the prototype. Must be "ambient-sound". | ||
{{Prototype property|name|[[Types/string|string]]}} | |||
Unique textual identification of the prototype. | Unique textual identification of the prototype. | ||
{{Prototype property|sound|[[Types/Sound|Sound]]}} | |||
The sound file and volume. | |||
{{Prototype property|track_type|[[Types/string|string]]}} | |||
This lets the game know in what instances the audio file is played. | This lets the game know in what instances the audio file is played. | ||
The following types are recognized: | The following types are recognized: | ||
* "early-game" | |||
* "main-track" | |||
* "interlude" | |||
* "late-game" | |||
=== | == Optional properties == | ||
{{Prototype property|weight|[[Types/double|double]]|1|optional=true}} | |||
==Example== | == Example == | ||
{ | { | ||
type = "ambient-sound", | type = "ambient-sound", |
Revision as of 21:58, 27 July 2019
Template:Prototype parent This prototype is used to make sound, while playing the game. This includes the in-game's music, composed by Daniel James Taylor.
Mandatory properties
Template:Prototype property Specification of the type of the prototype. Must be "ambient-sound".
Template:Prototype property Unique textual identification of the prototype.
Template:Prototype property The sound file and volume.
Template:Prototype property 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"
Optional properties
Example
{ type = "ambient-sound", name = "world-ambience-4", track_type = "interlude", sound = { filename = "__base__/sound/ambient/world-ambience-4.ogg", volume = 1.2 } },