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.

256 lines
6.0 KiB

  1. [gd_scene load_steps=8 format=2]
  2. [ext_resource path="res://scripts/objective.gd" type="Script" id=1]
  3. [ext_resource path="res://assets/objective.obj" type="ArrayMesh" id=2]
  4. [ext_resource path="res://assets/DejaVuSansMono.ttf" type="DynamicFontData" id=3]
  5. [sub_resource type="BoxShape" id=1]
  6. extents = Vector3( 7, 0.25, 7 )
  7. [sub_resource type="SpatialMaterial" id=2]
  8. render_priority = 0
  9. flags_transparent = false
  10. flags_unshaded = false
  11. flags_vertex_lighting = false
  12. flags_no_depth_test = false
  13. flags_use_point_size = false
  14. flags_world_triplanar = false
  15. flags_fixed_size = false
  16. flags_albedo_tex_force_srgb = false
  17. vertex_color_use_as_albedo = false
  18. vertex_color_is_srgb = false
  19. params_diffuse_mode = 0
  20. params_specular_mode = 0
  21. params_blend_mode = 0
  22. params_cull_mode = 0
  23. params_depth_draw_mode = 0
  24. params_line_width = 1.0
  25. params_point_size = 1.0
  26. params_billboard_mode = 0
  27. params_grow = false
  28. params_use_alpha_scissor = false
  29. albedo_color = Color( 1, 1, 1, 1 )
  30. metallic = 0.0
  31. metallic_specular = 0.5
  32. metallic_texture_channel = 0
  33. roughness = 0.0
  34. roughness_texture_channel = 0
  35. emission_enabled = false
  36. normal_enabled = false
  37. rim_enabled = false
  38. clearcoat_enabled = false
  39. anisotropy_enabled = false
  40. ao_enabled = false
  41. depth_enabled = false
  42. subsurf_scatter_enabled = false
  43. transmission_enabled = false
  44. refraction_enabled = false
  45. detail_enabled = false
  46. uv1_scale = Vector3( 1, 1, 1 )
  47. uv1_offset = Vector3( 0, 0, 0 )
  48. uv1_triplanar = false
  49. uv1_triplanar_sharpness = 1.0
  50. uv2_scale = Vector3( 1, 1, 1 )
  51. uv2_offset = Vector3( 0, 0, 0 )
  52. uv2_triplanar = false
  53. uv2_triplanar_sharpness = 1.0
  54. proximity_fade_enable = false
  55. distance_fade_enable = false
  56. [sub_resource type="CapsuleShape" id=3]
  57. radius = 0.5
  58. height = 14.0
  59. [sub_resource type="DynamicFont" id=4]
  60. size = 50
  61. use_mipmaps = false
  62. use_filter = false
  63. font_data = ExtResource( 3 )
  64. [node name="FullObjective" type="Spatial"]
  65. [node name="Objective" type="RigidBody" parent="." index="0"]
  66. input_ray_pickable = true
  67. input_capture_on_drag = false
  68. collision_layer = 1
  69. collision_mask = 2
  70. mode = 0
  71. mass = 1000.0
  72. friction = 1.0
  73. bounce = 0.0
  74. gravity_scale = 1.0
  75. custom_integrator = false
  76. continuous_cd = true
  77. contacts_reported = 8
  78. contact_monitor = true
  79. sleeping = false
  80. can_sleep = true
  81. axis_lock_linear_x = false
  82. axis_lock_linear_y = false
  83. axis_lock_linear_z = false
  84. axis_lock_angular_x = false
  85. axis_lock_angular_y = false
  86. axis_lock_angular_z = false
  87. linear_velocity = Vector3( 0, 0, 0 )
  88. linear_damp = -1.0
  89. angular_velocity = Vector3( 0, 0, 0 )
  90. angular_damp = -1.0
  91. script = ExtResource( 1 )
  92. [node name="CollisionShape" type="CollisionShape" parent="Objective" index="0"]
  93. shape = SubResource( 1 )
  94. disabled = false
  95. [node name="MeshInstance" type="MeshInstance" parent="Objective" index="1"]
  96. layers = 1
  97. material_override = null
  98. cast_shadow = 1
  99. extra_cull_margin = 0.0
  100. use_in_baked_light = false
  101. lod_min_distance = 0.0
  102. lod_min_hysteresis = 0.0
  103. lod_max_distance = 0.0
  104. lod_max_hysteresis = 0.0
  105. mesh = ExtResource( 2 )
  106. skeleton = NodePath("..")
  107. material/0 = SubResource( 2 )
  108. [node name="HingeJoint" type="HingeJoint" parent="." index="1"]
  109. transform = Transform( -1.62921e-07, 0, 1, 0, 1, 0, -1, 0, -1.62921e-07, 0, -0.25, 0 )
  110. nodes/node_a = NodePath("../Objective")
  111. nodes/node_b = NodePath("../Rod")
  112. solver/priority = 1
  113. collision/exclude_nodes = true
  114. params/bias = 0.3
  115. angular_limit/enable = false
  116. angular_limit/upper = 90.0
  117. angular_limit/lower = -90.0
  118. angular_limit/bias = 0.3
  119. angular_limit/softness = 0.9
  120. angular_limit/relaxation = 1.0
  121. motor/enable = false
  122. motor/target_velocity = 1.0
  123. motor/max_impulse = 1.0
  124. [node name="Rod" type="StaticBody" parent="." index="2"]
  125. transform = Transform( -1.62921e-07, 0, 1, 0, 1, 0, -1, 0, -1.62921e-07, 0, -0.75, 0 )
  126. input_ray_pickable = true
  127. input_capture_on_drag = false
  128. collision_layer = 1
  129. collision_mask = 1
  130. friction = 1.0
  131. bounce = 0.0
  132. constant_linear_velocity = Vector3( 0, 0, 0 )
  133. constant_angular_velocity = Vector3( 0, 0, 0 )
  134. [node name="CollisionShape" type="CollisionShape" parent="Rod" index="0"]
  135. shape = SubResource( 3 )
  136. disabled = false
  137. [node name="HUD" type="Control" parent="." index="3"]
  138. anchor_left = 0.5
  139. anchor_top = 0.0
  140. anchor_right = 0.5
  141. anchor_bottom = 0.0
  142. margin_left = -20.0
  143. margin_right = 20.0
  144. margin_bottom = 40.0
  145. rect_pivot_offset = Vector2( 0, 0 )
  146. mouse_filter = 0
  147. mouse_default_cursor_shape = 0
  148. size_flags_horizontal = 1
  149. size_flags_vertical = 1
  150. [node name="ColorRect" type="ColorRect" parent="HUD" index="0"]
  151. anchor_left = 0.0
  152. anchor_top = 0.0
  153. anchor_right = 0.0
  154. anchor_bottom = 0.0
  155. margin_left = -35.0
  156. margin_top = 18.0
  157. margin_right = 95.0
  158. margin_bottom = 57.0
  159. rect_pivot_offset = Vector2( 0, 0 )
  160. mouse_filter = 0
  161. mouse_default_cursor_shape = 0
  162. size_flags_horizontal = 1
  163. size_flags_vertical = 1
  164. color = Color( 0, 0, 0, 0.3 )
  165. [node name="LeftTeam" type="Label" parent="HUD" index="1"]
  166. anchor_left = 0.5
  167. anchor_top = 0.0
  168. anchor_right = 0.5
  169. anchor_bottom = 0.0
  170. margin_left = -47.0
  171. margin_top = 32.0
  172. margin_right = -7.0
  173. margin_bottom = 63.0
  174. rect_pivot_offset = Vector2( 0, 0 )
  175. mouse_filter = 2
  176. mouse_default_cursor_shape = 0
  177. size_flags_horizontal = 1
  178. size_flags_vertical = 4
  179. text = "0%"
  180. align = 1
  181. percent_visible = 1.0
  182. lines_skipped = 0
  183. max_lines_visible = -1
  184. [node name="RightTeam" type="Label" parent="HUD" index="2"]
  185. anchor_left = 0.5
  186. anchor_top = 0.0
  187. anchor_right = 0.5
  188. anchor_bottom = 0.0
  189. margin_left = 29.0
  190. margin_top = 30.0
  191. margin_right = 69.0
  192. margin_bottom = 44.0
  193. rect_pivot_offset = Vector2( 0, 0 )
  194. mouse_filter = 2
  195. mouse_default_cursor_shape = 0
  196. size_flags_horizontal = 1
  197. size_flags_vertical = 4
  198. text = "0%"
  199. align = 1
  200. percent_visible = 1.0
  201. lines_skipped = 0
  202. max_lines_visible = -1
  203. [node name="Finish" type="Label" parent="HUD" index="3"]
  204. anchor_left = 0.5
  205. anchor_top = 0.0
  206. anchor_right = 0.5
  207. anchor_bottom = 0.0
  208. margin_left = -14.0
  209. margin_top = 83.0
  210. margin_right = 26.0
  211. margin_bottom = 97.0
  212. rect_pivot_offset = Vector2( 0, 0 )
  213. mouse_filter = 2
  214. mouse_default_cursor_shape = 0
  215. size_flags_horizontal = 1
  216. size_flags_vertical = 4
  217. custom_fonts/font = SubResource( 4 )
  218. custom_colors/font_color = Color( 0.0898438, 0.0898438, 0.0898438, 1 )
  219. align = 1
  220. percent_visible = 1.0
  221. lines_skipped = 0
  222. max_lines_visible = -1