lightmask.tscn 2.7 KB

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