amongus_card_swipe.tscn 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. [gd_scene load_steps=14 format=3 uid="uid://bl4udp2dj2ckq"]
  2. [ext_resource type="Script" uid="uid://diiuvjxqt72t8" path="res://Scripts/amongus card swipe.gd" id="1"]
  3. [ext_resource type="FontFile" uid="uid://3088fs7yhrwi" path="res://Misc/comic sans.ttf" id="2"]
  4. [ext_resource type="Texture2D" uid="uid://bqwabj01ydqy6" path="res://Textures/card swipe.png" id="3"]
  5. [ext_resource type="Texture2D" uid="uid://cj0jig84rshek" path="res://Textures/id.png" id="4"]
  6. [ext_resource type="AudioStream" uid="uid://nere750gwbkv" path="res://Audio/sfx/card wrong.mp3" id="5"]
  7. [sub_resource type="LabelSettings" id="LabelSettings_gtfhr"]
  8. font = ExtResource("2")
  9. font_size = 50
  10. [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_xqs8d"]
  11. bg_color = Color(0.190762, 0.190762, 0.190762, 1)
  12. border_width_left = 8
  13. border_width_top = 8
  14. border_width_right = 8
  15. border_width_bottom = 8
  16. corner_radius_top_left = 4
  17. corner_radius_top_right = 4
  18. corner_radius_bottom_right = 4
  19. corner_radius_bottom_left = 4
  20. [sub_resource type="RectangleShape2D" id="RectangleShape2D_sdiig"]
  21. size = Vector2(3158.34, 2123.06)
  22. [sub_resource type="RectangleShape2D" id="RectangleShape2D_xkgo7"]
  23. size = Vector2(2748.05, 1655.51)
  24. [sub_resource type="RectangleShape2D" id="RectangleShape2D_vpg6u"]
  25. size = Vector2(3149.03, 4152.48)
  26. [sub_resource type="RectangleShape2D" id="RectangleShape2D_heee4"]
  27. size = Vector2(47.7664, 14.3127)
  28. [sub_resource type="LabelSettings" id="LabelSettings_0wj38"]
  29. font = ExtResource("2")
  30. font_size = 60
  31. font_color = Color(0.512575, 0.672345, 0, 1)
  32. [sub_resource type="RectangleShape2D" id="RectangleShape2D_e0dw7"]
  33. size = Vector2(801.684, 476)
  34. [node name="amongus card swipe" type="Node2D"]
  35. process_mode = 1
  36. z_index = 100
  37. script = ExtResource("1")
  38. [node name="Label" type="Label" parent="."]
  39. visible = false
  40. z_index = 102
  41. offset_left = 62.0
  42. offset_top = 111.0
  43. offset_right = 349.0
  44. offset_bottom = 226.0
  45. text = "files erased"
  46. label_settings = SubResource("LabelSettings_gtfhr")
  47. horizontal_alignment = 1
  48. vertical_alignment = 1
  49. [node name="Panel" type="Panel" parent="."]
  50. offset_left = 20.0
  51. offset_top = 24.0
  52. offset_right = 422.0
  53. offset_bottom = 338.0
  54. theme_override_styles/panel = SubResource("StyleBoxFlat_xqs8d")
  55. [node name="card swipe" type="Sprite2D" parent="."]
  56. z_index = 3
  57. position = Vector2(223, 118)
  58. scale = Vector2(0.419207, 0.419207)
  59. texture = ExtResource("3")
  60. [node name="boundaries" type="StaticBody2D" parent="card swipe"]
  61. [node name="CollisionShape2D" type="CollisionShape2D" parent="card swipe/boundaries"]
  62. position = Vector2(-78.72, -1032.9)
  63. shape = SubResource("RectangleShape2D_sdiig")
  64. [node name="CollisionShape2D2" type="CollisionShape2D" parent="card swipe/boundaries"]
  65. position = Vector2(221.847, 1450.36)
  66. scale = Vector2(0.999999, 0.999999)
  67. shape = SubResource("RectangleShape2D_xkgo7")
  68. [node name="CollisionShape2D3" type="CollisionShape2D" parent="card swipe/boundaries"]
  69. position = Vector2(2111.13, -151.775)
  70. shape = SubResource("RectangleShape2D_vpg6u")
  71. [node name="CollisionShape2D4" type="CollisionShape2D" parent="card swipe/boundaries"]
  72. position = Vector2(-2225.63, 193.222)
  73. shape = SubResource("RectangleShape2D_vpg6u")
  74. [node name="detector" type="Area2D" parent="card swipe"]
  75. [node name="CollisionShape2D" type="CollisionShape2D" parent="card swipe/detector"]
  76. position = Vector2(-0.0286255, 40.5527)
  77. shape = SubResource("RectangleShape2D_heee4")
  78. [node name="message" type="Label" parent="card swipe"]
  79. offset_left = -351.0
  80. offset_top = -103.0
  81. offset_right = 339.0
  82. offset_bottom = -8.0
  83. label_settings = SubResource("LabelSettings_0wj38")
  84. vertical_alignment = 1
  85. [node name="id" type="CharacterBody2D" parent="."]
  86. z_index = 1
  87. position = Vector2(72, 201)
  88. scale = Vector2(0.279412, 0.279412)
  89. [node name="CollisionShape2D" type="CollisionShape2D" parent="id"]
  90. position = Vector2(-3.05176e-05, -1.78937)
  91. shape = SubResource("RectangleShape2D_e0dw7")
  92. [node name="drag" type="Button" parent="id"]
  93. self_modulate = Color(1, 1, 1, 0)
  94. offset_left = -397.0
  95. offset_top = -236.0
  96. offset_right = 401.0
  97. offset_bottom = 233.0
  98. [node name="sprite" type="Sprite2D" parent="id"]
  99. texture = ExtResource("4")
  100. [node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
  101. stream = ExtResource("5")
  102. volume_db = -9.541
  103. [connection signal="body_entered" from="card swipe/detector" to="." method="_on_detector_body_entered"]
  104. [connection signal="body_exited" from="card swipe/detector" to="." method="_on_detector_body_exited"]
  105. [connection signal="button_down" from="id/drag" to="." method="_on_drag_button_down"]
  106. [connection signal="button_up" from="id/drag" to="." method="_on_drag_button_up"]