coins_counter.tscn 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. [gd_scene load_steps=17 format=3 uid="uid://bsyqg6eh3wl5i"]
  2. [ext_resource type="Theme" uid="uid://da4noqsij73it" path="res://gui/theme.tres" id="1_mctnl"]
  3. [ext_resource type="Texture2D" uid="uid://cj2absxg54f75" path="res://level/coin.webp" id="2"]
  4. [ext_resource type="Script" path="res://gui/coins_counter.gd" id="3"]
  5. [sub_resource type="AtlasTexture" id="AtlasTexture_0ik14"]
  6. atlas = ExtResource("2")
  7. region = Rect2(0, 0, 32, 32)
  8. [sub_resource type="AtlasTexture" id="AtlasTexture_yoomt"]
  9. atlas = ExtResource("2")
  10. region = Rect2(32, 0, 32, 32)
  11. [sub_resource type="AtlasTexture" id="AtlasTexture_8eq38"]
  12. atlas = ExtResource("2")
  13. region = Rect2(64, 0, 32, 32)
  14. [sub_resource type="AtlasTexture" id="AtlasTexture_2j420"]
  15. atlas = ExtResource("2")
  16. region = Rect2(96, 0, 32, 32)
  17. [sub_resource type="AtlasTexture" id="AtlasTexture_5fk3k"]
  18. atlas = ExtResource("2")
  19. region = Rect2(128, 0, 32, 32)
  20. [sub_resource type="AtlasTexture" id="AtlasTexture_7u8xx"]
  21. atlas = ExtResource("2")
  22. region = Rect2(160, 0, 32, 32)
  23. [sub_resource type="AtlasTexture" id="AtlasTexture_8cxbx"]
  24. atlas = ExtResource("2")
  25. region = Rect2(192, 0, 32, 32)
  26. [sub_resource type="AtlasTexture" id="AtlasTexture_0rdkm"]
  27. atlas = ExtResource("2")
  28. region = Rect2(224, 0, 32, 32)
  29. [sub_resource type="AtlasTexture" id="AtlasTexture_6q04a"]
  30. atlas = ExtResource("2")
  31. region = Rect2(0, 32, 32, 32)
  32. [sub_resource type="AtlasTexture" id="AtlasTexture_tbg33"]
  33. atlas = ExtResource("2")
  34. region = Rect2(32, 32, 32, 32)
  35. [sub_resource type="AtlasTexture" id="AtlasTexture_tpmon"]
  36. atlas = ExtResource("2")
  37. region = Rect2(64, 32, 32, 32)
  38. [sub_resource type="AtlasTexture" id="AtlasTexture_hsrt4"]
  39. atlas = ExtResource("2")
  40. region = Rect2(96, 32, 32, 32)
  41. [sub_resource type="SpriteFrames" id="6"]
  42. animations = [{
  43. "frames": [{
  44. "duration": 1.0,
  45. "texture": SubResource("AtlasTexture_0ik14")
  46. }, {
  47. "duration": 1.0,
  48. "texture": SubResource("AtlasTexture_yoomt")
  49. }, {
  50. "duration": 1.0,
  51. "texture": SubResource("AtlasTexture_8eq38")
  52. }, {
  53. "duration": 1.0,
  54. "texture": SubResource("AtlasTexture_2j420")
  55. }, {
  56. "duration": 1.0,
  57. "texture": SubResource("AtlasTexture_5fk3k")
  58. }, {
  59. "duration": 1.0,
  60. "texture": SubResource("AtlasTexture_7u8xx")
  61. }, {
  62. "duration": 1.0,
  63. "texture": SubResource("AtlasTexture_8cxbx")
  64. }, {
  65. "duration": 1.0,
  66. "texture": SubResource("AtlasTexture_0rdkm")
  67. }, {
  68. "duration": 1.0,
  69. "texture": SubResource("AtlasTexture_6q04a")
  70. }, {
  71. "duration": 1.0,
  72. "texture": SubResource("AtlasTexture_tbg33")
  73. }, {
  74. "duration": 1.0,
  75. "texture": SubResource("AtlasTexture_tpmon")
  76. }, {
  77. "duration": 1.0,
  78. "texture": SubResource("AtlasTexture_hsrt4")
  79. }],
  80. "loop": true,
  81. "name": &"coin_spinning",
  82. "speed": 12.0
  83. }]
  84. [node name="CoinsCounter" type="Panel"]
  85. offset_left = 5.0
  86. offset_top = 5.0
  87. offset_right = 100.0
  88. offset_bottom = 45.0
  89. theme = ExtResource("1_mctnl")
  90. script = ExtResource("3")
  91. [node name="Label" type="Label" parent="."]
  92. layout_mode = 1
  93. anchors_preset = 15
  94. anchor_right = 1.0
  95. anchor_bottom = 1.0
  96. offset_left = -1.0
  97. offset_top = -3.0
  98. offset_right = -9.0
  99. grow_horizontal = 2
  100. grow_vertical = 2
  101. theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
  102. theme_override_constants/outline_size = 8
  103. theme_override_font_sizes/font_size = 32
  104. text = "99"
  105. horizontal_alignment = 2
  106. vertical_alignment = 1
  107. [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
  108. position = Vector2(23.5, 24.5)
  109. sprite_frames = SubResource("6")
  110. animation = &"coin_spinning"