A team game with an emphasis on movement (with no shooting), inspired by Overwatch and Zineth
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

189 lines
4.5 KiB

  1. [gd_scene load_steps=5 format=2]
  2. [ext_resource path="res://scripts/objective.gd" type="Script" id=1]
  3. [sub_resource type="BoxShape" id=1]
  4. extents = Vector3( 7, 0.25, 7 )
  5. [sub_resource type="CubeMesh" id=2]
  6. size = Vector3( 14, 0.5, 14 )
  7. subdivide_width = 0
  8. subdivide_height = 0
  9. subdivide_depth = 0
  10. [sub_resource type="CapsuleShape" id=3]
  11. radius = 0.5
  12. height = 14.0
  13. [node name="FullObjective" type="Spatial" index="0"]
  14. [node name="Objective" type="RigidBody" parent="." index="0"]
  15. input_ray_pickable = true
  16. input_capture_on_drag = false
  17. collision_layer = 1
  18. collision_mask = 1
  19. mode = 0
  20. mass = 1000.0
  21. friction = 1.0
  22. bounce = 0.0
  23. gravity_scale = 1.0
  24. custom_integrator = false
  25. continuous_cd = true
  26. contacts_reported = 8
  27. contact_monitor = true
  28. sleeping = false
  29. can_sleep = true
  30. axis_lock_linear_x = false
  31. axis_lock_linear_y = false
  32. axis_lock_linear_z = false
  33. axis_lock_angular_x = false
  34. axis_lock_angular_y = false
  35. axis_lock_angular_z = false
  36. linear_velocity = Vector3( 0, 0, 0 )
  37. linear_damp = -1.0
  38. angular_velocity = Vector3( 0, 0, 0 )
  39. angular_damp = -1.0
  40. script = ExtResource( 1 )
  41. _sections_unfolded = [ "Axis Lock", "Collision", "Linear", "Transform", "Visibility" ]
  42. [node name="CollisionShape" type="CollisionShape" parent="Objective" index="0"]
  43. shape = SubResource( 1 )
  44. disabled = false
  45. _sections_unfolded = [ "Transform" ]
  46. [node name="MeshInstance5" type="MeshInstance" parent="Objective/CollisionShape" index="0"]
  47. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.274852 )
  48. layers = 1
  49. material_override = null
  50. cast_shadow = 1
  51. extra_cull_margin = 0.0
  52. use_in_baked_light = false
  53. lod_min_distance = 0.0
  54. lod_min_hysteresis = 0.0
  55. lod_max_distance = 0.0
  56. lod_max_hysteresis = 0.0
  57. mesh = SubResource( 2 )
  58. skeleton = NodePath("..")
  59. material/0 = null
  60. _sections_unfolded = [ "Transform" ]
  61. [node name="HingeJoint" type="HingeJoint" parent="." index="1"]
  62. transform = Transform( -1.62921e-07, 0, 1, 0, 1, 0, -1, 0, -1.62921e-07, 0, -0.25, 0 )
  63. nodes/node_a = NodePath("../Objective")
  64. nodes/node_b = NodePath("../Rod")
  65. solver/priority = 1
  66. collision/exclude_nodes = true
  67. params/bias = 0.3
  68. angular_limit/enable = false
  69. angular_limit/upper = 90.0
  70. angular_limit/lower = -90.0
  71. angular_limit/bias = 0.3
  72. angular_limit/softness = 0.9
  73. angular_limit/relaxation = 1.0
  74. motor/enable = false
  75. motor/target_velocity = 1.0
  76. motor/max_impulse = 1.0
  77. _sections_unfolded = [ "Transform", "Visibility", "angular_limit", "collision", "motor", "nodes", "params", "solver" ]
  78. [node name="Rod" type="StaticBody" parent="." index="2"]
  79. transform = Transform( -1.62921e-07, 0, 1, 0, 1, 0, -1, 0, -1.62921e-07, 0, -0.75, 0 )
  80. input_ray_pickable = true
  81. input_capture_on_drag = false
  82. collision_layer = 1
  83. collision_mask = 1
  84. friction = 1.0
  85. bounce = 0.0
  86. constant_linear_velocity = Vector3( 0, 0, 0 )
  87. constant_angular_velocity = Vector3( 0, 0, 0 )
  88. _sections_unfolded = [ "Collision", "Transform" ]
  89. [node name="CollisionShape" type="CollisionShape" parent="Rod" index="0"]
  90. shape = SubResource( 3 )
  91. disabled = false
  92. _sections_unfolded = [ "Transform", "Visibility" ]
  93. [node name="HUD" type="Control" parent="." index="3"]
  94. anchor_left = 0.5
  95. anchor_top = 0.0
  96. anchor_right = 0.5
  97. anchor_bottom = 0.0
  98. margin_left = -20.0
  99. margin_right = 20.0
  100. margin_bottom = 40.0
  101. rect_pivot_offset = Vector2( 0, 0 )
  102. mouse_filter = 0
  103. mouse_default_cursor_shape = 0
  104. size_flags_horizontal = 1
  105. size_flags_vertical = 1
  106. [node name="LeftTeam" type="Label" parent="HUD" index="0"]
  107. anchor_left = 0.5
  108. anchor_top = 0.0
  109. anchor_right = 0.5
  110. anchor_bottom = 0.0
  111. margin_left = -44.0
  112. margin_top = 32.0
  113. margin_right = -4.0
  114. margin_bottom = 63.0
  115. rect_pivot_offset = Vector2( 0, 0 )
  116. mouse_filter = 2
  117. mouse_default_cursor_shape = 0
  118. size_flags_horizontal = 1
  119. size_flags_vertical = 4
  120. text = "0%"
  121. percent_visible = 1.0
  122. lines_skipped = 0
  123. max_lines_visible = -1
  124. _sections_unfolded = [ "Theme" ]
  125. [node name="RightTeam" type="Label" parent="HUD" index="1"]
  126. anchor_left = 0.5
  127. anchor_top = 0.0
  128. anchor_right = 0.5
  129. anchor_bottom = 0.0
  130. margin_left = 32.0
  131. margin_top = 30.0
  132. margin_right = 72.0
  133. margin_bottom = 44.0
  134. rect_pivot_offset = Vector2( 0, 0 )
  135. mouse_filter = 2
  136. mouse_default_cursor_shape = 0
  137. size_flags_horizontal = 1
  138. size_flags_vertical = 4
  139. text = "0%"
  140. percent_visible = 1.0
  141. lines_skipped = 0
  142. max_lines_visible = -1
  143. [node name="Finish" type="Label" parent="HUD" index="2"]
  144. anchor_left = 0.5
  145. anchor_top = 0.0
  146. anchor_right = 0.5
  147. anchor_bottom = 0.0
  148. margin_left = -14.0
  149. margin_top = 83.0
  150. margin_right = 26.0
  151. margin_bottom = 97.0
  152. rect_pivot_offset = Vector2( 0, 0 )
  153. mouse_filter = 2
  154. mouse_default_cursor_shape = 0
  155. size_flags_horizontal = 1
  156. size_flags_vertical = 4
  157. percent_visible = 1.0
  158. lines_skipped = 0
  159. max_lines_visible = -1