RomVerifier.tscn 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. [gd_scene load_steps=27 format=3 uid="uid://d0mmkuq7wtpcl"]
  2. [ext_resource type="Theme" uid="uid://dtn507x2b5de7" path="res://Resources/Theme.tres" id="1_qwra1"]
  3. [ext_resource type="Script" uid="uid://dhxt5av5njyiv" path="res://Scripts/UI/RomVerifier.gd" id="1_r85ci"]
  4. [ext_resource type="Texture2D" uid="uid://bhuybr2gtuco5" path="res://Assets/Sprites/UI/MenuBG.png" id="2_r85ci"]
  5. [ext_resource type="Texture2D" uid="uid://3ai0ggxah360" path="res://Assets/Sprites/UI/MenuBorder.png" id="3_4o1wk"]
  6. [ext_resource type="Script" uid="uid://xem6lai3ufyj" path="res://Scripts/Classes/UI/PackNinePatch.gd" id="4_2ok7u"]
  7. [ext_resource type="Texture2D" uid="uid://bghn5xwo51hp4" path="res://Assets/Sprites/Backgrounds/BooMenuBG.png" id="5_qwra1"]
  8. [ext_resource type="Script" uid="uid://cq6f682453q6o" path="res://Scripts/Classes/Components/ResourceSetter.gd" id="6_y6sry"]
  9. [ext_resource type="Script" uid="uid://cixtosud3mfaq" path="res://Scripts/Classes/Resources/CampaignResource.gd" id="7_6q27m"]
  10. [ext_resource type="Script" uid="uid://cmvlgsjmsk0v5" path="res://Scripts/Classes/Resources/ThemedResource.gd" id="8_c20ch"]
  11. [ext_resource type="AudioStream" uid="uid://b26qanomle5ug" path="res://Assets/Audio/BGM/Setup.mp3" id="9_cloha"]
  12. [ext_resource type="AudioStream" uid="uid://c70oyr23fyxwb" path="res://Assets/Audio/SFX/1up.wav" id="11_4o1wk"]
  13. [ext_resource type="AudioStream" uid="uid://02i3v6iqndob" path="res://Assets/Audio/SFX/Bump.wav" id="12_2ok7u"]
  14. [sub_resource type="Shader" id="Shader_mm3k3"]
  15. code = "shader_type canvas_item;
  16. uniform vec2 motion = vec2(0.0);
  17. uniform float scale = 1.0;
  18. uniform vec2 offset = vec2(0.0);
  19. void vertex(){
  20. UV = (VERTEX + offset + TIME * motion) * TEXTURE_PIXEL_SIZE * (1.0/scale);
  21. }"
  22. [sub_resource type="ShaderMaterial" id="ShaderMaterial_6hpoa"]
  23. shader = SubResource("Shader_mm3k3")
  24. shader_parameter/motion = Vector2(-4, -4)
  25. shader_parameter/scale = 1.0
  26. shader_parameter/offset = Vector2(0, 0)
  27. [sub_resource type="AtlasTexture" id="AtlasTexture_1cvbg"]
  28. atlas = ExtResource("3_4o1wk")
  29. region = Rect2(0, 0, 32, 32)
  30. [sub_resource type="AtlasTexture" id="AtlasTexture_8vm44"]
  31. atlas = ExtResource("3_4o1wk")
  32. region = Rect2(32, 32, 31, 32)
  33. [sub_resource type="AtlasTexture" id="AtlasTexture_i43xv"]
  34. atlas = ExtResource("3_4o1wk")
  35. region = Rect2(32, 0, 32, 32)
  36. [sub_resource type="AtlasTexture" id="AtlasTexture_sx1vw"]
  37. atlas = ExtResource("3_4o1wk")
  38. region = Rect2(0, 32, 32, 32)
  39. [sub_resource type="Resource" id="Resource_22hnx"]
  40. script = ExtResource("7_6q27m")
  41. SMB1 = SubResource("AtlasTexture_1cvbg")
  42. SMBLL = SubResource("AtlasTexture_i43xv")
  43. SMBS = SubResource("AtlasTexture_sx1vw")
  44. SMBANN = SubResource("AtlasTexture_8vm44")
  45. metadata/_custom_type_script = "uid://cixtosud3mfaq"
  46. [sub_resource type="Resource" id="Resource_v5xmg"]
  47. script = ExtResource("8_c20ch")
  48. Overworld = SubResource("Resource_22hnx")
  49. metadata/_custom_type_script = "uid://cmvlgsjmsk0v5"
  50. [sub_resource type="AtlasTexture" id="AtlasTexture_sxtnd"]
  51. atlas = ExtResource("2_r85ci")
  52. region = Rect2(0, 0, 16, 16)
  53. [sub_resource type="AtlasTexture" id="AtlasTexture_xuqid"]
  54. atlas = ExtResource("2_r85ci")
  55. region = Rect2(48, 0, 16, 16)
  56. [sub_resource type="AtlasTexture" id="AtlasTexture_eii5q"]
  57. atlas = ExtResource("2_r85ci")
  58. region = Rect2(16, 0, 16, 16)
  59. [sub_resource type="AtlasTexture" id="AtlasTexture_hjtxo"]
  60. atlas = ExtResource("2_r85ci")
  61. region = Rect2(32, 0, 16, 16)
  62. [sub_resource type="Resource" id="Resource_euqtg"]
  63. script = ExtResource("7_6q27m")
  64. SMB1 = SubResource("AtlasTexture_sxtnd")
  65. SMBLL = SubResource("AtlasTexture_eii5q")
  66. SMBS = SubResource("AtlasTexture_hjtxo")
  67. SMBANN = SubResource("AtlasTexture_xuqid")
  68. metadata/_custom_type_script = "uid://cixtosud3mfaq"
  69. [sub_resource type="Resource" id="Resource_e3hrc"]
  70. script = ExtResource("8_c20ch")
  71. Overworld = SubResource("Resource_euqtg")
  72. metadata/_custom_type_script = "uid://cmvlgsjmsk0v5"
  73. [node name="ROMVerifier" type="Node"]
  74. script = ExtResource("1_r85ci")
  75. [node name="BG" type="NinePatchRect" parent="."]
  76. texture_repeat = 2
  77. anchors_preset = 15
  78. anchor_right = 1.0
  79. anchor_bottom = 1.0
  80. grow_horizontal = 2
  81. grow_vertical = 2
  82. theme = ExtResource("1_qwra1")
  83. texture = ExtResource("2_r85ci")
  84. region_rect = Rect2(0, 0, 16, 16)
  85. axis_stretch_horizontal = 1
  86. axis_stretch_vertical = 1
  87. [node name="Border" type="NinePatchRect" parent="BG"]
  88. layout_mode = 1
  89. anchors_preset = -1
  90. anchor_left = 0.05
  91. anchor_right = 0.95
  92. anchor_bottom = 1.0
  93. grow_horizontal = 2
  94. grow_vertical = 2
  95. texture = ExtResource("3_4o1wk")
  96. region_rect = Rect2(0, 0, 31, 32)
  97. patch_margin_left = 8
  98. patch_margin_top = 8
  99. patch_margin_right = 8
  100. patch_margin_bottom = 8
  101. axis_stretch_horizontal = 2
  102. axis_stretch_vertical = 2
  103. script = ExtResource("4_2ok7u")
  104. [node name="BG" type="TextureRect" parent="BG/Border"]
  105. show_behind_parent = true
  106. material = SubResource("ShaderMaterial_6hpoa")
  107. layout_mode = 1
  108. anchors_preset = 15
  109. anchor_right = 1.0
  110. anchor_bottom = 1.0
  111. grow_horizontal = 2
  112. grow_vertical = 2
  113. texture = ExtResource("5_qwra1")
  114. stretch_mode = 1
  115. [node name="ResourceSetter" type="Node" parent="BG/Border" node_paths=PackedStringArray("node_to_affect")]
  116. script = ExtResource("6_y6sry")
  117. node_to_affect = NodePath("..")
  118. property_name = "texture"
  119. themed_resource = SubResource("Resource_v5xmg")
  120. metadata/_custom_type_script = "uid://cq6f682453q6o"
  121. [node name="MarginContainer" type="MarginContainer" parent="BG/Border"]
  122. layout_mode = 1
  123. anchors_preset = 15
  124. anchor_right = 1.0
  125. anchor_bottom = 1.0
  126. grow_horizontal = 2
  127. grow_vertical = 2
  128. theme_override_constants/margin_left = 16
  129. theme_override_constants/margin_top = 16
  130. theme_override_constants/margin_right = 16
  131. theme_override_constants/margin_bottom = 16
  132. [node name="DefaultText" type="Control" parent="BG/Border/MarginContainer"]
  133. unique_name_in_owner = true
  134. layout_mode = 2
  135. [node name="Label" type="Label" parent="BG/Border/MarginContainer/DefaultText"]
  136. layout_mode = 1
  137. anchors_preset = -1
  138. anchor_right = 1.0
  139. offset_bottom = 16.0
  140. grow_horizontal = 2
  141. size_flags_vertical = 0
  142. text = "ROM VERIFICATION REQUIRED!"
  143. horizontal_alignment = 1
  144. autowrap_mode = 2
  145. [node name="Label2" type="Label" parent="BG/Border/MarginContainer/DefaultText"]
  146. layout_mode = 1
  147. anchors_preset = 15
  148. anchor_right = 1.0
  149. anchor_bottom = 1.0
  150. grow_horizontal = 2
  151. grow_vertical = 2
  152. text = "Please Drag and drop your vanilla WORLD \"super mario bros\" rom onto the window."
  153. horizontal_alignment = 1
  154. vertical_alignment = 1
  155. autowrap_mode = 2
  156. uppercase = true
  157. [node name="Error" type="Label" parent="BG/Border/MarginContainer/DefaultText"]
  158. unique_name_in_owner = true
  159. visible = false
  160. modulate = Color(0.99999994, 0.17417294, 0.12721592, 1)
  161. layout_mode = 1
  162. anchors_preset = -1
  163. anchor_top = 1.0
  164. anchor_right = 1.0
  165. anchor_bottom = 1.0
  166. offset_top = -40.0
  167. grow_horizontal = 2
  168. grow_vertical = 0
  169. size_flags_vertical = 8
  170. text = "ERROR VERIFYING ROM!
  171. ARE YOU SURE ITS A VALID VANILLA NES SMB1 ROM?"
  172. horizontal_alignment = 1
  173. autowrap_mode = 2
  174. [node name="SuccessMSG" type="Label" parent="BG/Border/MarginContainer"]
  175. unique_name_in_owner = true
  176. visible = false
  177. modulate = Color(0, 1, 0, 1)
  178. layout_mode = 2
  179. text = "ROM VERIFIED! THANK YOU!
  180. PROCEEDING..."
  181. horizontal_alignment = 1
  182. autowrap_mode = 2
  183. [node name="ResourceSetter" type="Node" parent="BG" node_paths=PackedStringArray("node_to_affect")]
  184. script = ExtResource("6_y6sry")
  185. node_to_affect = NodePath("..")
  186. property_name = "texture"
  187. themed_resource = SubResource("Resource_e3hrc")
  188. metadata/_custom_type_script = "uid://cq6f682453q6o"
  189. [node name="BGM" type="AudioStreamPlayer" parent="."]
  190. stream = ExtResource("9_cloha")
  191. autoplay = true
  192. bus = &"Music"
  193. [node name="SuccessSFX" type="AudioStreamPlayer" parent="."]
  194. stream = ExtResource("11_4o1wk")
  195. [node name="ErrorSFX" type="AudioStreamPlayer" parent="."]
  196. stream = ExtResource("12_2ok7u")