now with sound! (#20287)

This commit is contained in:
Tunguso4ka
2023-09-18 22:17:59 +03:00
committed by GitHub
parent b75fd719cb
commit 60ae564279
4 changed files with 12 additions and 4 deletions

View File

@@ -6,7 +6,9 @@
components: components:
- type: Sprite - type: Sprite
sprite: Structures/Decoration/bonfire.rsi sprite: Structures/Decoration/bonfire.rsi
state: burning layers:
- state: bonfire
- state: burning
- type: PointLight - type: PointLight
radius: 5 radius: 5
energy: 3 energy: 3
@@ -22,6 +24,11 @@
behaviors: behaviors:
- !type:DoActsBehavior - !type:DoActsBehavior
acts: [ "Destruction" ] acts: [ "Destruction" ]
- type: AmbientSound
volume: -5
range: 5
sound:
path: /Audio/Ambience/Objects/fireplace.ogg
- type: entity - type: entity
id: LegionnaireBonfire id: LegionnaireBonfire
@@ -30,6 +37,7 @@
description: There, in the land of lava and ash, place to to cook marshmallow and potato. description: There, in the land of lava and ash, place to to cook marshmallow and potato.
components: components:
- type: Sprite - type: Sprite
state: legionnaire_bonfire layers:
- state: legionnaire_bonfire
- type: PointLight - type: PointLight
color: "#FF5601" color: "#FF5601"

View File

Before

Width:  |  Height:  |  Size: 652 B

After

Width:  |  Height:  |  Size: 652 B

View File

@@ -8,10 +8,10 @@
}, },
"states": [ "states": [
{ {
"name": "bonfire_0" "name": "bonfire"
}, },
{ {
"name": "bonfire_1" "name": "bonfire_extinguished"
}, },
{ {
"name": "burning", "name": "burning",