2-24-16 build changes
This commit is contained in:
29
Zennysoft.Game.Ma/src/vfx/Torch.cs
Normal file
29
Zennysoft.Game.Ma/src/vfx/Torch.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using Chickensoft.AutoInject;
|
||||
using Chickensoft.Introspection;
|
||||
using Godot;
|
||||
using System;
|
||||
using Zennysoft.Game.Implementation;
|
||||
|
||||
[Meta(typeof(IAutoNode))]
|
||||
public partial class Torch : AnimatedSprite3D
|
||||
{
|
||||
public override void _Notification(int what) => this.Notify(what);
|
||||
|
||||
[Node] public DimmableAudioStreamPlayer3D SFX { get; set; }
|
||||
|
||||
[Node] public OmniLight3D Light { get; set; }
|
||||
|
||||
public void OnReady()
|
||||
{
|
||||
VisibilityChanged += Torch_VisibilityChanged;
|
||||
Torch_VisibilityChanged();
|
||||
}
|
||||
|
||||
private void Torch_VisibilityChanged()
|
||||
{
|
||||
if (Visible)
|
||||
SFX.Play();
|
||||
else
|
||||
SFX.Stop();
|
||||
}
|
||||
}
|
||||
1
Zennysoft.Game.Ma/src/vfx/Torch.cs.uid
Normal file
1
Zennysoft.Game.Ma/src/vfx/Torch.cs.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://bhciq00l1hhtp
|
||||
337
Zennysoft.Game.Ma/src/vfx/Torch.tscn
Normal file
337
Zennysoft.Game.Ma/src/vfx/Torch.tscn
Normal file
@@ -0,0 +1,337 @@
|
||||
[gd_scene load_steps=48 format=3 uid="uid://doncarj3f8iua"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://urhj7jw2wvor" path="res://src/vfx/World/PURPLE_FLAME.png" id="1_d7idw"]
|
||||
[ext_resource type="Script" uid="uid://bhciq00l1hhtp" path="res://src/vfx/Torch.cs" id="2_exj1s"]
|
||||
[ext_resource type="AudioStream" uid="uid://b306wov6yfaan" path="res://src/audio/sfx/amb_flame_burning.ogg" id="2_ur7ht"]
|
||||
[ext_resource type="Script" uid="uid://b83kye8yinfxs" path="res://src/audio/AmbientSFXPlayer3D.cs" id="3_exj1s"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ite3w"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(1024, 0, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_a0f4o"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(1536, 0, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mqssl"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(2048, 0, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_xkomc"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(2560, 0, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_kfe0s"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(3072, 0, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_nok26"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(3584, 0, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_cy8jb"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(4096, 0, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_clbkd"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(4608, 0, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_xjavm"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(5120, 0, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_xii6f"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(5632, 0, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_363cy"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(6144, 0, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_qur0e"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(6656, 0, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_jyfct"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(7168, 0, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_qwnn7"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(7680, 0, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_7id4m"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(8192, 0, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_iyxdg"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(8704, 0, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_7ma8s"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(9216, 0, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_hlp34"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(9728, 0, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_8thc3"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(10240, 0, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_2y1it"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(10752, 0, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_m2s7h"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(11264, 0, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ym48q"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(11776, 0, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_chki8"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(12288, 0, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0dr0x"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(12800, 0, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_tjd11"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(13312, 0, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_acu2h"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(13824, 0, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_jn4j6"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(14336, 0, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_um2xj"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(14848, 0, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_6rj6q"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(15360, 0, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_3hnmy"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(15872, 0, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_uusgd"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(0, 502, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_1chqi"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(512, 502, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_i42ge"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(1024, 502, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_i73hc"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(1536, 502, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_we64s"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(2048, 502, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_4dw2r"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(2560, 502, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_nqgn1"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(3072, 502, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_6djdn"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(3584, 502, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_2t4cj"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(4096, 502, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_qg3ak"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(4608, 502, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_462bj"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(5120, 502, 512, 502)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_qas3x"]
|
||||
atlas = ExtResource("1_d7idw")
|
||||
region = Rect2(5632, 502, 512, 502)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_cnruo"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ite3w")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_a0f4o")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_mqssl")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_xkomc")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_kfe0s")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_nok26")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_cy8jb")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_clbkd")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_xjavm")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_xii6f")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_363cy")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_qur0e")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_jyfct")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_qwnn7")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_7id4m")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_iyxdg")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_7ma8s")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_hlp34")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_8thc3")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_2y1it")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_m2s7h")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ym48q")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_chki8")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_0dr0x")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_tjd11")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_acu2h")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_jn4j6")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_um2xj")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_6rj6q")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_3hnmy")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_uusgd")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_1chqi")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_i42ge")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_i73hc")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_we64s")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_4dw2r")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_nqgn1")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_6djdn")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_2t4cj")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_qg3ak")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_462bj")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_qas3x")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 22.0
|
||||
}]
|
||||
|
||||
[node name="DeathTorch" type="AnimatedSprite3D"]
|
||||
billboard = 1
|
||||
sprite_frames = SubResource("SpriteFrames_cnruo")
|
||||
autoplay = "default"
|
||||
frame_progress = 0.271099
|
||||
script = ExtResource("2_exj1s")
|
||||
|
||||
[node name="SFX" type="AudioStreamPlayer3D" parent="." groups=["DimmableAudio"]]
|
||||
unique_name_in_owner = true
|
||||
process_mode = 3
|
||||
transform = Transform3D(1.62602, 0, 0, 0, 2.24719, 0, 0, 0, 2.24719, -0.237626, -1.0051, -0.623936)
|
||||
stream = ExtResource("2_ur7ht")
|
||||
volume_db = -5.0
|
||||
unit_size = 2.0
|
||||
max_db = 0.0
|
||||
max_distance = 25.0
|
||||
bus = &"AMBIENT"
|
||||
parameters/looping = true
|
||||
script = ExtResource("3_exj1s")
|
||||
|
||||
[node name="Light" type="OmniLight3D" parent="."]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.180455, -0.538921, -0.0176468)
|
||||
light_color = Color(0.585033, 0.233362, 0.75879, 1)
|
||||
shadow_enabled = true
|
||||
shadow_blur = 10.0
|
||||
omni_range = 19.166
|
||||
omni_attenuation = 1.106
|
||||
Reference in New Issue
Block a user