bacteria.tscn 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. [gd_scene load_steps=17 format=2]
  2. [ext_resource path="res://bacteria.gd" type="Script" id=1]
  3. [ext_resource path="res://sprite/Besourinho.png" type="Texture" id=2]
  4. [ext_resource path="res://Health.tscn" type="PackedScene" id=3]
  5. [ext_resource path="res://hitbox.tscn" type="PackedScene" id=4]
  6. [ext_resource path="res://particles.tscn" type="PackedScene" id=5]
  7. [ext_resource path="res://newdynamicfont.tres" type="DynamicFont" id=6]
  8. [ext_resource path="res://ui/interfaceBevel.png" type="Texture" id=7]
  9. [sub_resource type="RectangleShape2D" id=1]
  10. [sub_resource type="StyleBoxFlat" id=4]
  11. bg_color = Color( 0.0705882, 0.262745, 0.329412, 1 )
  12. [sub_resource type="StyleBoxFlat" id=5]
  13. bg_color = Color( 0.0156863, 0.709804, 0.0196078, 1 )
  14. [sub_resource type="Theme" id=6]
  15. ProgressBar/colors/font_color = Color( 0, 0, 0, 1 )
  16. ProgressBar/colors/font_color_shadow = Color( 0, 0, 0, 1 )
  17. ProgressBar/fonts/font = null
  18. ProgressBar/styles/bg = SubResource( 4 )
  19. ProgressBar/styles/fg = SubResource( 5 )
  20. [sub_resource type="StyleBoxFlat" id=7]
  21. bg_color = Color( 0.270588, 0, 0, 1 )
  22. [sub_resource type="StyleBoxFlat" id=8]
  23. bg_color = Color( 1, 0, 0, 1 )
  24. [sub_resource type="Theme" id=9]
  25. ProgressBar/colors/font_color = Color( 0, 0, 0, 1 )
  26. ProgressBar/colors/font_color_shadow = Color( 0, 0, 0, 1 )
  27. ProgressBar/fonts/font = null
  28. ProgressBar/styles/bg = SubResource( 7 )
  29. ProgressBar/styles/fg = SubResource( 8 )
  30. [sub_resource type="Animation" id=2]
  31. resource_name = "Nova Animação"
  32. loop = true
  33. tracks/0/type = "value"
  34. tracks/0/path = NodePath("Icon/l/menbros0:rotation_degrees")
  35. tracks/0/interp = 1
  36. tracks/0/loop_wrap = true
  37. tracks/0/imported = false
  38. tracks/0/enabled = true
  39. tracks/0/keys = {
  40. "times": PoolRealArray( -0.00999999, 0.5, 0.99 ),
  41. "transitions": PoolRealArray( 1, 1, 1 ),
  42. "update": 0,
  43. "values": [ 80.0, 100.0, 80.0 ]
  44. }
  45. tracks/1/type = "value"
  46. tracks/1/path = NodePath("Icon/l/menbros1:rotation_degrees")
  47. tracks/1/interp = 1
  48. tracks/1/loop_wrap = true
  49. tracks/1/imported = false
  50. tracks/1/enabled = true
  51. tracks/1/keys = {
  52. "times": PoolRealArray( -0.00999999, 0.5, 1 ),
  53. "transitions": PoolRealArray( 1, 1, 1 ),
  54. "update": 0,
  55. "values": [ 80.0, 100.0, 80.0 ]
  56. }
  57. tracks/2/type = "value"
  58. tracks/2/path = NodePath("Icon/r/menbros0:rotation_degrees")
  59. tracks/2/interp = 1
  60. tracks/2/loop_wrap = true
  61. tracks/2/imported = false
  62. tracks/2/enabled = true
  63. tracks/2/keys = {
  64. "times": PoolRealArray( 0, 0.5, 1 ),
  65. "transitions": PoolRealArray( 1, 1, 1 ),
  66. "update": 0,
  67. "values": [ 100.0, 80.0, 100.0 ]
  68. }
  69. tracks/3/type = "value"
  70. tracks/3/path = NodePath("Icon/l/menbros2:rotation_degrees")
  71. tracks/3/interp = 1
  72. tracks/3/loop_wrap = true
  73. tracks/3/imported = false
  74. tracks/3/enabled = true
  75. tracks/3/keys = {
  76. "times": PoolRealArray( 0, 0.5, 1 ),
  77. "transitions": PoolRealArray( 1, 1, 1 ),
  78. "update": 0,
  79. "values": [ 100.0, 80.0, 100.0 ]
  80. }
  81. tracks/4/type = "value"
  82. tracks/4/path = NodePath("Icon/r/menbros1:rotation_degrees")
  83. tracks/4/interp = 1
  84. tracks/4/loop_wrap = true
  85. tracks/4/imported = false
  86. tracks/4/enabled = true
  87. tracks/4/keys = {
  88. "times": PoolRealArray( 0, 0.5, 1 ),
  89. "transitions": PoolRealArray( 1, 1, 1 ),
  90. "update": 0,
  91. "values": [ 100.0, 80.0, 100.0 ]
  92. }
  93. tracks/5/type = "value"
  94. tracks/5/path = NodePath("Icon/r/menbros2:rotation_degrees")
  95. tracks/5/interp = 1
  96. tracks/5/loop_wrap = true
  97. tracks/5/imported = false
  98. tracks/5/enabled = true
  99. tracks/5/keys = {
  100. "times": PoolRealArray( -0.00999999, 0.5, 1 ),
  101. "transitions": PoolRealArray( 1, 1, 1 ),
  102. "update": 0,
  103. "values": [ 80.0, 100.0, 80.0 ]
  104. }
  105. [sub_resource type="Animation" id=3]
  106. length = 0.001
  107. tracks/0/type = "value"
  108. tracks/0/path = NodePath("Icon/l/menbros0:rotation_degrees")
  109. tracks/0/interp = 1
  110. tracks/0/loop_wrap = true
  111. tracks/0/imported = false
  112. tracks/0/enabled = true
  113. tracks/0/keys = {
  114. "times": PoolRealArray( 0 ),
  115. "transitions": PoolRealArray( 1 ),
  116. "update": 0,
  117. "values": [ 90.0 ]
  118. }
  119. tracks/1/type = "value"
  120. tracks/1/path = NodePath("Icon/l/menbros1:rotation_degrees")
  121. tracks/1/interp = 1
  122. tracks/1/loop_wrap = true
  123. tracks/1/imported = false
  124. tracks/1/enabled = true
  125. tracks/1/keys = {
  126. "times": PoolRealArray( 0 ),
  127. "transitions": PoolRealArray( 1 ),
  128. "update": 0,
  129. "values": [ 90.0 ]
  130. }
  131. tracks/2/type = "value"
  132. tracks/2/path = NodePath("Icon/r/menbros0:rotation_degrees")
  133. tracks/2/interp = 1
  134. tracks/2/loop_wrap = true
  135. tracks/2/imported = false
  136. tracks/2/enabled = true
  137. tracks/2/keys = {
  138. "times": PoolRealArray( 0 ),
  139. "transitions": PoolRealArray( 1 ),
  140. "update": 0,
  141. "values": [ 90.0 ]
  142. }
  143. tracks/3/type = "value"
  144. tracks/3/path = NodePath("Icon/l/menbros2:rotation_degrees")
  145. tracks/3/interp = 1
  146. tracks/3/loop_wrap = true
  147. tracks/3/imported = false
  148. tracks/3/enabled = true
  149. tracks/3/keys = {
  150. "times": PoolRealArray( 0 ),
  151. "transitions": PoolRealArray( 1 ),
  152. "update": 0,
  153. "values": [ 90.0 ]
  154. }
  155. tracks/4/type = "value"
  156. tracks/4/path = NodePath("Icon/r/menbros1:rotation_degrees")
  157. tracks/4/interp = 1
  158. tracks/4/loop_wrap = true
  159. tracks/4/imported = false
  160. tracks/4/enabled = true
  161. tracks/4/keys = {
  162. "times": PoolRealArray( 0 ),
  163. "transitions": PoolRealArray( 1 ),
  164. "update": 0,
  165. "values": [ 90.0 ]
  166. }
  167. tracks/5/type = "value"
  168. tracks/5/path = NodePath("Icon/r/menbros2:rotation_degrees")
  169. tracks/5/interp = 1
  170. tracks/5/loop_wrap = true
  171. tracks/5/imported = false
  172. tracks/5/enabled = true
  173. tracks/5/keys = {
  174. "times": PoolRealArray( 0 ),
  175. "transitions": PoolRealArray( 1 ),
  176. "update": 0,
  177. "values": [ 90.0 ]
  178. }
  179. [node name="bacteria" type="KinematicBody2D" groups=["player"]]
  180. script = ExtResource( 1 )
  181. [node name="particles" parent="." instance=ExtResource( 5 )]
  182. [node name="CollisionShape2D" type="CollisionShape2D" parent="."]
  183. shape = SubResource( 1 )
  184. [node name="Camera2D" type="Camera2D" parent="."]
  185. current = true
  186. [node name="Icon" type="Sprite" parent="."]
  187. texture = ExtResource( 2 )
  188. [node name="l" type="Node2D" parent="Icon"]
  189. z_index = -1
  190. [node name="menbros0" type="Position2D" parent="Icon/l"]
  191. position = Vector2( -27, -20 )
  192. rotation = 1.5708
  193. [node name="menbros1" type="Position2D" parent="Icon/l"]
  194. position = Vector2( 8, -16 )
  195. rotation = 1.5708
  196. [node name="menbros2" type="Position2D" parent="Icon/l"]
  197. position = Vector2( -9, -20 )
  198. rotation = 1.5708
  199. [node name="r" type="Node2D" parent="Icon"]
  200. scale = Vector2( 1, -1 )
  201. z_index = -1
  202. [node name="menbros0" type="Position2D" parent="Icon/r"]
  203. position = Vector2( -27, -20 )
  204. rotation = 1.5708
  205. [node name="menbros1" type="Position2D" parent="Icon/r"]
  206. position = Vector2( 8, -16 )
  207. rotation = 1.5708
  208. [node name="menbros2" type="Position2D" parent="Icon/r"]
  209. position = Vector2( -9, -20 )
  210. rotation = 1.5708
  211. [node name="hitbox" parent="." instance=ExtResource( 4 )]
  212. dmg = 10
  213. [node name="Health" parent="." instance=ExtResource( 3 )]
  214. health_max = 50
  215. progressbar = NodePath("../CanvasLayer/ProgressBar3")
  216. text = NodePath("../CanvasLayer/VBoxContainer/Label2")
  217. [node name="CanvasLayer" type="CanvasLayer" parent="."]
  218. [node name="ProgressBar2" type="ProgressBar" parent="CanvasLayer"]
  219. show_behind_parent = true
  220. margin_left = 19.0
  221. margin_top = 18.0
  222. margin_right = 520.0
  223. margin_bottom = 40.0
  224. theme = SubResource( 6 )
  225. custom_fonts/font = ExtResource( 6 )
  226. max_value = 0.1
  227. percent_visible = false
  228. [node name="ProgressBar3" type="ProgressBar" parent="CanvasLayer"]
  229. show_behind_parent = true
  230. margin_left = 38.0
  231. margin_top = 38.0
  232. margin_right = 502.0
  233. margin_bottom = 55.0
  234. theme = SubResource( 9 )
  235. custom_fonts/font = ExtResource( 6 )
  236. max_value = 50.0
  237. value = 20.0
  238. percent_visible = false
  239. [node name="InterfaceBevel" type="Sprite" parent="CanvasLayer"]
  240. scale = Vector2( 0.75, 0.75 )
  241. texture = ExtResource( 7 )
  242. centered = false
  243. [node name="VBoxContainer" type="Control" parent="CanvasLayer"]
  244. anchor_right = 1.0
  245. anchor_bottom = 1.0
  246. [node name="Label" type="Label" parent="CanvasLayer/VBoxContainer"]
  247. margin_top = 22.0
  248. margin_right = 540.0
  249. margin_bottom = 41.0
  250. custom_fonts/font = ExtResource( 6 )
  251. text = "0"
  252. align = 1
  253. [node name="Label2" type="Label" parent="CanvasLayer/VBoxContainer"]
  254. margin_top = 38.0
  255. margin_right = 540.0
  256. margin_bottom = 57.0
  257. custom_fonts/font = ExtResource( 6 )
  258. text = "999"
  259. align = 1
  260. [node name="Label3" type="Label" parent="CanvasLayer/VBoxContainer"]
  261. margin_top = 6.0
  262. margin_right = 540.0
  263. margin_bottom = 25.0
  264. custom_fonts/font = ExtResource( 6 )
  265. text = "Lv.1"
  266. align = 1
  267. [node name="AnimationPlayer" type="AnimationPlayer" parent="."]
  268. autoplay = "Nova Animação"
  269. playback_speed = 1.5
  270. "anims/Nova Animação" = SubResource( 2 )
  271. anims/RESET = SubResource( 3 )
  272. [connection signal="gotxp" from="hitbox" to="." method="_on_hitbox_gotxp"]
  273. [connection signal="regenhealth" from="hitbox" to="Health" method="_damage"]
  274. [connection signal="die" from="Health" to="." method="_on_Health_die"]