lightmask.tscn 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. [gd_scene load_steps=6 format=3 uid="uid://bft5oglfrg7xi"]
  2. [ext_resource type="Texture2D" uid="uid://cxid0eg3r5npy" path="res://burano.png" id="1"]
  3. [ext_resource type="Texture2D" uid="uid://ynxew87k6xvm" path="res://splat.png" id="2"]
  4. [sub_resource type="CanvasItemMaterial" id="1"]
  5. light_mode = 2
  6. [sub_resource type="Animation" id="2"]
  7. length = 4.0
  8. tracks/0/type = "value"
  9. tracks/0/imported = false
  10. tracks/0/enabled = true
  11. tracks/0/path = NodePath("Light1:position")
  12. tracks/0/interp = 1
  13. tracks/0/loop_wrap = true
  14. tracks/0/keys = {
  15. "times": PackedFloat32Array(0, 1, 2, 3),
  16. "transitions": PackedFloat32Array(-2, -2, -2, -2),
  17. "update": 0,
  18. "values": [Vector2(601.028, 242.639), Vector2(318.649, 327.353), Vector2(381.263, 130.915), Vector2(462.294, 389.968)]
  19. }
  20. tracks/1/type = "value"
  21. tracks/1/imported = false
  22. tracks/1/enabled = true
  23. tracks/1/path = NodePath("Light2:position")
  24. tracks/1/interp = 1
  25. tracks/1/loop_wrap = true
  26. tracks/1/keys = {
  27. "times": PackedFloat32Array(0, 1, 2, 3),
  28. "transitions": PackedFloat32Array(-2, -2, -2, -2),
  29. "update": 0,
  30. "values": [Vector2(196.528, 185.139), Vector2(135.142, 454.013), Vector2(638.105, 334.923), Vector2(331.375, 101.653)]
  31. }
  32. tracks/2/type = "value"
  33. tracks/2/imported = false
  34. tracks/2/enabled = true
  35. tracks/2/path = NodePath("Light3:position")
  36. tracks/2/interp = 1
  37. tracks/2/loop_wrap = true
  38. tracks/2/keys = {
  39. "times": PackedFloat32Array(0, 1, 2, 3),
  40. "transitions": PackedFloat32Array(-2, -2, -2, -2),
  41. "update": 0,
  42. "values": [Vector2(442.528, 411.139), Vector2(635.283, 236.8), Vector2(216.215, 396.815), Vector2(682.96, 294.708)]
  43. }
  44. [sub_resource type="AnimationLibrary" id="AnimationLibrary_co4us"]
  45. _data = {
  46. "maskmotion": SubResource("2")
  47. }
  48. [node name="Lightmask" type="Control"]
  49. layout_mode = 3
  50. anchors_preset = 15
  51. anchor_right = 1.0
  52. anchor_bottom = 1.0
  53. size_flags_horizontal = 2
  54. size_flags_vertical = 2
  55. [node name="Burano" type="TextureRect" parent="."]
  56. material = SubResource("1")
  57. layout_mode = 0
  58. offset_right = 800.0
  59. offset_bottom = 600.0
  60. size_flags_horizontal = 2
  61. size_flags_vertical = 2
  62. texture = ExtResource("1")
  63. [node name="Light1" type="PointLight2D" parent="."]
  64. position = Vector2(601.028, 242.639)
  65. texture = ExtResource("2")
  66. [node name="Light2" type="PointLight2D" parent="."]
  67. position = Vector2(196.528, 185.139)
  68. texture = ExtResource("2")
  69. [node name="Light3" type="PointLight2D" parent="."]
  70. position = Vector2(442.528, 411.139)
  71. texture = ExtResource("2")
  72. [node name="AnimationPlayer" type="AnimationPlayer" parent="."]
  73. autoplay = "maskmotion"
  74. libraries = {
  75. "": SubResource("AnimationLibrary_co4us")
  76. }
  77. [node name="Camera2D" type="Camera2D" parent="."]
  78. offset = Vector2(576, 324)
  79. current = true