level.tscn 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. [gd_scene load_steps=8 format=2]
  2. [ext_resource path="res://ArcadiaGodot/ArcadiaHook.cs" type="Script" id=1]
  3. [ext_resource path="res://nodes/paddle.tscn" type="PackedScene" id=2]
  4. [ext_resource path="res://fonts/apl385.tres" type="DynamicFont" id=3]
  5. [ext_resource path="res://sprites/boundry.png" type="Texture" id=4]
  6. [ext_resource path="res://sprites/reticule.png" type="Texture" id=5]
  7. [sub_resource type="RectangleShape2D" id=1]
  8. extents = Vector2( 35.5957, 384.076 )
  9. [sub_resource type="RectangleShape2D" id=2]
  10. extents = Vector2( 483.927, 32.071 )
  11. [node name="level" type="Node2D"]
  12. script = ExtResource( 1 )
  13. ready_fn = "#'game.core/level-ready"
  14. process_fn = "#'game.core/level-update"
  15. physics_process_fn = "#'game.core/level-physics"
  16. input_fn = "#'game.core/level-input"
  17. [node name="NinePatchRect" type="NinePatchRect" parent="."]
  18. margin_left = 32.4455
  19. margin_top = 35.1181
  20. margin_right = 982.445
  21. margin_bottom = 735.118
  22. texture = ExtResource( 4 )
  23. patch_margin_left = 8
  24. patch_margin_top = 8
  25. patch_margin_right = 8
  26. patch_margin_bottom = 8
  27. axis_stretch_horizontal = 1
  28. axis_stretch_vertical = 1
  29. __meta__ = {
  30. "_edit_lock_": true,
  31. "_edit_use_anchors_": false
  32. }
  33. [node name="StaticBody2D" type="StaticBody2D" parent="NinePatchRect"]
  34. visible = false
  35. position = Vector2( 475, 350 )
  36. collision_mask = 2147483745
  37. [node name="CollisionShape2D" type="CollisionShape2D" parent="NinePatchRect/StaticBody2D"]
  38. position = Vector2( -504.224, 0 )
  39. shape = SubResource( 1 )
  40. [node name="CollisionShape2D2" type="CollisionShape2D" parent="NinePatchRect/StaticBody2D"]
  41. position = Vector2( 503.035, 0 )
  42. shape = SubResource( 1 )
  43. [node name="CollisionShape2D3" type="CollisionShape2D" parent="NinePatchRect/StaticBody2D"]
  44. position = Vector2( -1.18924, -374.6 )
  45. shape = SubResource( 2 )
  46. [node name="CollisionShape2D4" type="CollisionShape2D" parent="NinePatchRect/StaticBody2D"]
  47. position = Vector2( -1.18924, 373.066 )
  48. shape = SubResource( 2 )
  49. [node name="paddle" parent="." instance=ExtResource( 2 )]
  50. position = Vector2( 512, 574.255 )
  51. [node name="Camera2D" type="Camera2D" parent="."]
  52. position = Vector2( 511.371, 299.465 )
  53. current = true
  54. [node name="UI" type="Node2D" parent="."]
  55. position = Vector2( 38, 7 )
  56. [node name="orbs_label" type="Label" parent="UI"]
  57. margin_right = 70.0
  58. margin_bottom = 28.0
  59. rect_pivot_offset = Vector2( -503.221, 166.359 )
  60. custom_fonts/font = ExtResource( 3 )
  61. custom_colors/font_color = Color( 0.941176, 0.654902, 0.0470588, 1 )
  62. text = "ORBS:"
  63. __meta__ = {
  64. "_edit_use_anchors_": false
  65. }
  66. [node name="orbs" type="Label" parent="UI"]
  67. margin_left = 71.0
  68. margin_right = 141.0
  69. margin_bottom = 28.0
  70. rect_pivot_offset = Vector2( -574.221, 166.359 )
  71. custom_fonts/font = ExtResource( 3 )
  72. custom_colors/font_color = Color( 1, 1, 1, 1 )
  73. text = "0"
  74. __meta__ = {
  75. "_edit_use_anchors_": false
  76. }
  77. [node name="score_label" type="Label" parent="UI"]
  78. margin_left = 149.384
  79. margin_right = 219.384
  80. margin_bottom = 28.0
  81. rect_pivot_offset = Vector2( -503.221, 166.359 )
  82. custom_fonts/font = ExtResource( 3 )
  83. custom_colors/font_color = Color( 0.941176, 0.654902, 0.0470588, 1 )
  84. text = "SCORE"
  85. __meta__ = {
  86. "_edit_use_anchors_": false
  87. }
  88. [node name="score" type="Label" parent="UI"]
  89. margin_left = 220.0
  90. margin_right = 408.0
  91. margin_bottom = 28.0
  92. rect_pivot_offset = Vector2( -574.221, 166.359 )
  93. custom_fonts/font = ExtResource( 3 )
  94. custom_colors/font_color = Color( 1, 1, 1, 1 )
  95. text = "0"
  96. __meta__ = {
  97. "_edit_use_anchors_": false
  98. }
  99. [node name="lvl_label" type="Label" parent="UI"]
  100. margin_left = 528.016
  101. margin_right = 598.016
  102. margin_bottom = 28.0
  103. rect_pivot_offset = Vector2( -503.221, 166.359 )
  104. custom_fonts/font = ExtResource( 3 )
  105. custom_colors/font_color = Color( 0.941176, 0.654902, 0.0470588, 1 )
  106. text = "LEVEL"
  107. __meta__ = {
  108. "_edit_use_anchors_": false
  109. }
  110. [node name="lvl" type="Label" parent="UI"]
  111. margin_left = 598.632
  112. margin_right = 786.632
  113. margin_bottom = 28.0
  114. rect_pivot_offset = Vector2( -574.221, 166.359 )
  115. custom_fonts/font = ExtResource( 3 )
  116. custom_colors/font_color = Color( 1, 1, 1, 1 )
  117. text = "0"
  118. __meta__ = {
  119. "_edit_use_anchors_": false
  120. }
  121. [node name="phealth_label" type="Label" parent="UI"]
  122. margin_left = 675.905
  123. margin_right = 773.905
  124. margin_bottom = 28.0
  125. rect_pivot_offset = Vector2( -503.221, 166.359 )
  126. custom_fonts/font = ExtResource( 3 )
  127. custom_colors/font_color = Color( 0.941176, 0.654902, 0.0470588, 1 )
  128. text = "PHEALTH"
  129. __meta__ = {
  130. "_edit_use_anchors_": false
  131. }
  132. [node name="phealth" type="Label" parent="UI"]
  133. margin_left = 775.03
  134. margin_right = 963.03
  135. margin_bottom = 28.0
  136. rect_pivot_offset = Vector2( -574.221, 166.359 )
  137. custom_fonts/font = ExtResource( 3 )
  138. custom_colors/font_color = Color( 1, 1, 1, 1 )
  139. text = "[**********]"
  140. __meta__ = {
  141. "_edit_use_anchors_": false
  142. }
  143. [node name="reticule" type="Sprite" parent="."]
  144. position = Vector2( 667.396, 509.434 )
  145. scale = Vector2( 2, 2 )
  146. texture = ExtResource( 5 )
  147. [node name="music" type="AudioStreamPlayer" parent="."]