main.tscn 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795
  1. [gd_scene load_steps=42 format=2]
  2. [ext_resource path="res://spawner.gd" type="Script" id=1]
  3. [ext_resource path="res://bacteria.tscn" type="PackedScene" id=2]
  4. [ext_resource path="res://restarter.gd" type="Script" id=3]
  5. [ext_resource path="res://Healthpickup.tscn" type="PackedScene" id=4]
  6. [ext_resource path="res://PowerUpControl.gd" type="Script" id=5]
  7. [ext_resource path="res://font/ComfortaaRegular.ttf" type="DynamicFontData" id=6]
  8. [ext_resource path="res://newdynamicfont.tres" type="DynamicFont" id=7]
  9. [ext_resource path="res://buttonsgens.gd" type="Script" id=8]
  10. [ext_resource path="res://font/newdynamicfont.tres" type="DynamicFont" id=9]
  11. [ext_resource path="res://font/newtheme.tres" type="Theme" id=10]
  12. [ext_resource path="res://ui/InterfaceLevelUpNew.png" type="Texture" id=11]
  13. [ext_resource path="res://ui/Area2D2.gd" type="Script" id=12]
  14. [ext_resource path="res://audio.ogg" type="AudioStream" id=13]
  15. [ext_resource path="res://debug.gd" type="Script" id=14]
  16. [ext_resource path="res://sandtex22.png" type="Texture" id=15]
  17. [ext_resource path="res://sounds/keylock.ogg" type="AudioStream" id=16]
  18. [ext_resource path="res://ui/BesourinhoULTRA4K.png" type="Texture" id=17]
  19. [ext_resource path="res://ui/logo.png" type="Texture" id=18]
  20. [ext_resource path="res://ui/play.png" type="Texture" id=19]
  21. [ext_resource path="res://mainmenu.gd" type="Script" id=20]
  22. [sub_resource type="DynamicFont" id=1]
  23. font_data = ExtResource( 6 )
  24. [sub_resource type="Theme" id=2]
  25. default_font = SubResource( 1 )
  26. [sub_resource type="CircleShape2D" id=3]
  27. radius = 20.0
  28. [sub_resource type="GDScript" id=11]
  29. script/source = "extends Sprite
  30. func _process(delta):
  31. global_position = get_viewport_transform().get_origin() * -1
  32. region_rect.position.x = get_viewport_transform().get_origin().x * -1
  33. region_rect.position.y = get_viewport_transform().get_origin().y * -1
  34. # pass
  35. "
  36. [sub_resource type="Shader" id=4]
  37. code = "// NOTE: Shader automatically converted from Godot Engine 3.4.4.stable's CanvasItemMaterial.
  38. shader_type canvas_item;
  39. render_mode blend_mix;
  40. uniform sampler2D noise;
  41. uniform sampler2D noise2;
  42. uniform sampler2D grad;
  43. void fragment(){
  44. float col = texture(noise, UV).r * texture(noise2, UV+TIME*0.1).r + 0.3;
  45. COLOR = texture(grad, vec2( round(col)) ) + clamp(col,0.0,0.6) - 0.3;
  46. }"
  47. [sub_resource type="Gradient" id=5]
  48. offsets = PoolRealArray( 0.00833333, 0.970833 )
  49. colors = PoolColorArray( 0.00156975, 0.401855, 0.337356, 1, 0.144711, 0.686035, 0.256252, 1 )
  50. [sub_resource type="GradientTexture" id=6]
  51. gradient = SubResource( 5 )
  52. [sub_resource type="OpenSimplexNoise" id=7]
  53. [sub_resource type="NoiseTexture" id=8]
  54. width = 256
  55. height = 256
  56. noise = SubResource( 7 )
  57. [sub_resource type="NoiseTexture" id=9]
  58. width = 96
  59. height = 96
  60. seamless = true
  61. noise = SubResource( 7 )
  62. [sub_resource type="ShaderMaterial" id=10]
  63. shader = SubResource( 4 )
  64. shader_param/noise = SubResource( 8 )
  65. shader_param/noise2 = SubResource( 9 )
  66. shader_param/grad = SubResource( 6 )
  67. [sub_resource type="Shader" id=12]
  68. code = "// NOTE: Shader automatically converted from Godot Engine 3.4.4.stable's CanvasItemMaterial.
  69. shader_type canvas_item;
  70. render_mode blend_mix;
  71. void fragment(){
  72. COLOR = texture(TEXTURE,UV+vec2(TIME*0.2));
  73. }"
  74. [sub_resource type="ShaderMaterial" id=13]
  75. shader = SubResource( 12 )
  76. [sub_resource type="AtlasTexture" id=14]
  77. atlas = ExtResource( 17 )
  78. region = Rect2( 0, 0, 150, 152 )
  79. [sub_resource type="AtlasTexture" id=15]
  80. atlas = ExtResource( 17 )
  81. region = Rect2( 150, 0, 150, 152 )
  82. [sub_resource type="AtlasTexture" id=16]
  83. atlas = ExtResource( 17 )
  84. region = Rect2( 300, 0, 150, 152 )
  85. [sub_resource type="SpriteFrames" id=17]
  86. animations = [ {
  87. "frames": [ SubResource( 14 ), SubResource( 15 ), SubResource( 16 ), SubResource( 14 ), SubResource( 14 ), SubResource( 14 ), SubResource( 14 ), SubResource( 14 ), SubResource( 14 ), SubResource( 14 ), SubResource( 14 ), SubResource( 14 ), SubResource( 14 ), SubResource( 14 ), SubResource( 14 ), SubResource( 14 ) ],
  88. "loop": true,
  89. "name": "default",
  90. "speed": 12.0
  91. } ]
  92. [sub_resource type="Animation" id=21]
  93. resource_name = "Nova Animação"
  94. length = 0.4
  95. loop = true
  96. tracks/0/type = "value"
  97. tracks/0/path = NodePath("BesourinhoUltra4k6:rotation_degrees")
  98. tracks/0/interp = 1
  99. tracks/0/loop_wrap = true
  100. tracks/0/imported = false
  101. tracks/0/enabled = true
  102. tracks/0/keys = {
  103. "times": PoolRealArray( 0, 0.2 ),
  104. "transitions": PoolRealArray( 1, 1 ),
  105. "update": 0,
  106. "values": [ -45.637, 32.1438 ]
  107. }
  108. tracks/1/type = "value"
  109. tracks/1/path = NodePath("BesourinhoUltra4k5:rotation_degrees")
  110. tracks/1/interp = 1
  111. tracks/1/loop_wrap = true
  112. tracks/1/imported = false
  113. tracks/1/enabled = true
  114. tracks/1/keys = {
  115. "times": PoolRealArray( 0, 0.2 ),
  116. "transitions": PoolRealArray( 1, 1 ),
  117. "update": 0,
  118. "values": [ 41.0534, -25.7133 ]
  119. }
  120. tracks/2/type = "value"
  121. tracks/2/path = NodePath("BesourinhoUltra4k4:rotation_degrees")
  122. tracks/2/interp = 1
  123. tracks/2/loop_wrap = true
  124. tracks/2/imported = false
  125. tracks/2/enabled = true
  126. tracks/2/keys = {
  127. "times": PoolRealArray( 0, 0.2 ),
  128. "transitions": PoolRealArray( 1, 1 ),
  129. "update": 0,
  130. "values": [ -32.2563, 35.6285 ]
  131. }
  132. tracks/3/type = "value"
  133. tracks/3/path = NodePath("BesourinhoUltra4k7:rotation_degrees")
  134. tracks/3/interp = 1
  135. tracks/3/loop_wrap = true
  136. tracks/3/imported = false
  137. tracks/3/enabled = true
  138. tracks/3/keys = {
  139. "times": PoolRealArray( 0, 0.2 ),
  140. "transitions": PoolRealArray( 1, 1 ),
  141. "update": 0,
  142. "values": [ -32.2563, 35.6285 ]
  143. }
  144. tracks/4/type = "value"
  145. tracks/4/path = NodePath("BesourinhoUltra4k8:rotation_degrees")
  146. tracks/4/interp = 1
  147. tracks/4/loop_wrap = true
  148. tracks/4/imported = false
  149. tracks/4/enabled = true
  150. tracks/4/keys = {
  151. "times": PoolRealArray( 0, 0.2 ),
  152. "transitions": PoolRealArray( 1, 1 ),
  153. "update": 0,
  154. "values": [ 41.0534, -25.7133 ]
  155. }
  156. tracks/5/type = "value"
  157. tracks/5/path = NodePath("BesourinhoUltra4k3:rotation_degrees")
  158. tracks/5/interp = 1
  159. tracks/5/loop_wrap = true
  160. tracks/5/imported = false
  161. tracks/5/enabled = true
  162. tracks/5/keys = {
  163. "times": PoolRealArray( 0, 0.2 ),
  164. "transitions": PoolRealArray( 1, 1 ),
  165. "update": 0,
  166. "values": [ -45.637, 32.1438 ]
  167. }
  168. [sub_resource type="Animation" id=22]
  169. length = 0.001
  170. tracks/0/type = "value"
  171. tracks/0/path = NodePath("BesourinhoUltra4k6:rotation_degrees")
  172. tracks/0/interp = 1
  173. tracks/0/loop_wrap = true
  174. tracks/0/imported = false
  175. tracks/0/enabled = true
  176. tracks/0/keys = {
  177. "times": PoolRealArray( 0 ),
  178. "transitions": PoolRealArray( 1 ),
  179. "update": 0,
  180. "values": [ 0.0 ]
  181. }
  182. tracks/1/type = "value"
  183. tracks/1/path = NodePath("BesourinhoUltra4k5:rotation_degrees")
  184. tracks/1/interp = 1
  185. tracks/1/loop_wrap = true
  186. tracks/1/imported = false
  187. tracks/1/enabled = true
  188. tracks/1/keys = {
  189. "times": PoolRealArray( 0 ),
  190. "transitions": PoolRealArray( 1 ),
  191. "update": 0,
  192. "values": [ 0.0 ]
  193. }
  194. tracks/2/type = "value"
  195. tracks/2/path = NodePath("BesourinhoUltra4k4:rotation_degrees")
  196. tracks/2/interp = 1
  197. tracks/2/loop_wrap = true
  198. tracks/2/imported = false
  199. tracks/2/enabled = true
  200. tracks/2/keys = {
  201. "times": PoolRealArray( 0 ),
  202. "transitions": PoolRealArray( 1 ),
  203. "update": 0,
  204. "values": [ 0.0 ]
  205. }
  206. tracks/3/type = "value"
  207. tracks/3/path = NodePath("BesourinhoUltra4k7:rotation_degrees")
  208. tracks/3/interp = 1
  209. tracks/3/loop_wrap = true
  210. tracks/3/imported = false
  211. tracks/3/enabled = true
  212. tracks/3/keys = {
  213. "times": PoolRealArray( 0 ),
  214. "transitions": PoolRealArray( 1 ),
  215. "update": 0,
  216. "values": [ 0.0 ]
  217. }
  218. tracks/4/type = "value"
  219. tracks/4/path = NodePath("BesourinhoUltra4k8:rotation_degrees")
  220. tracks/4/interp = 1
  221. tracks/4/loop_wrap = true
  222. tracks/4/imported = false
  223. tracks/4/enabled = true
  224. tracks/4/keys = {
  225. "times": PoolRealArray( 0 ),
  226. "transitions": PoolRealArray( 1 ),
  227. "update": 0,
  228. "values": [ 0.0 ]
  229. }
  230. tracks/5/type = "value"
  231. tracks/5/path = NodePath("BesourinhoUltra4k3:rotation_degrees")
  232. tracks/5/interp = 1
  233. tracks/5/loop_wrap = true
  234. tracks/5/imported = false
  235. tracks/5/enabled = true
  236. tracks/5/keys = {
  237. "times": PoolRealArray( 0 ),
  238. "transitions": PoolRealArray( 1 ),
  239. "update": 0,
  240. "values": [ 0.0 ]
  241. }
  242. [sub_resource type="Animation" id=18]
  243. resource_name = "Nova Animação"
  244. length = 3.0
  245. tracks/0/type = "value"
  246. tracks/0/path = NodePath("BesourinhoUltra4k:visible")
  247. tracks/0/interp = 1
  248. tracks/0/loop_wrap = true
  249. tracks/0/imported = false
  250. tracks/0/enabled = true
  251. tracks/0/keys = {
  252. "times": PoolRealArray( 0, 2.6 ),
  253. "transitions": PoolRealArray( 1, 1 ),
  254. "update": 1,
  255. "values": [ false, true ]
  256. }
  257. tracks/1/type = "value"
  258. tracks/1/path = NodePath("BesourinhoUltra4k2:visible")
  259. tracks/1/interp = 1
  260. tracks/1/loop_wrap = true
  261. tracks/1/imported = false
  262. tracks/1/enabled = true
  263. tracks/1/keys = {
  264. "times": PoolRealArray( 0, 2.6 ),
  265. "transitions": PoolRealArray( 1, 1 ),
  266. "update": 1,
  267. "values": [ true, false ]
  268. }
  269. tracks/2/type = "animation"
  270. tracks/2/path = NodePath("BesourinhoUltra4k2/AnimationPlayer")
  271. tracks/2/interp = 1
  272. tracks/2/loop_wrap = true
  273. tracks/2/imported = false
  274. tracks/2/enabled = true
  275. tracks/2/keys = {
  276. "clips": PoolStringArray( "Nova Animação" ),
  277. "times": PoolRealArray( 0 )
  278. }
  279. tracks/3/type = "value"
  280. tracks/3/path = NodePath("BesourinhoUltra4k2:position")
  281. tracks/3/interp = 1
  282. tracks/3/loop_wrap = true
  283. tracks/3/imported = false
  284. tracks/3/enabled = true
  285. tracks/3/keys = {
  286. "times": PoolRealArray( 0, 0.2, 0.4, 0.6, 0.8, 1, 1.2, 1.4, 1.6, 1.8, 2, 2.2, 2.4, 2.6 ),
  287. "transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ),
  288. "update": 0,
  289. "values": [ Vector2( 462, 1133 ), Vector2( 506, 969 ), Vector2( 520, 834 ), Vector2( 494, 664 ), Vector2( 284, 551 ), Vector2( 47, 616 ), Vector2( -2, 751 ), Vector2( 19, 892 ), Vector2( 121, 986 ), Vector2( 261, 1025 ), Vector2( 388, 1009 ), Vector2( 451, 936 ), Vector2( 464, 858 ), Vector2( 436, 817 ) ]
  290. }
  291. tracks/4/type = "value"
  292. tracks/4/path = NodePath("BesourinhoUltra4k2:rotation_degrees")
  293. tracks/4/interp = 2
  294. tracks/4/loop_wrap = true
  295. tracks/4/imported = false
  296. tracks/4/enabled = true
  297. tracks/4/keys = {
  298. "times": PoolRealArray( 0, 0.2, 0.4, 0.6, 0.8, 1, 1.2, 1.4, 1.6, 1.8, 2, 2.2, 2.4, 2.6 ),
  299. "transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ),
  300. "update": 0,
  301. "values": [ 16.3775, 11.7284, 3.1746, -23.8115, -84.7542, -123.438, -173.394, -212.013, -232.128, -271.241, -303.323, -324.038, -368.21, -394.796 ]
  302. }
  303. [sub_resource type="Animation" id=19]
  304. length = 0.001
  305. tracks/0/type = "value"
  306. tracks/0/path = NodePath("BesourinhoUltra4k:visible")
  307. tracks/0/interp = 1
  308. tracks/0/loop_wrap = true
  309. tracks/0/imported = false
  310. tracks/0/enabled = true
  311. tracks/0/keys = {
  312. "times": PoolRealArray( 0 ),
  313. "transitions": PoolRealArray( 1 ),
  314. "update": 0,
  315. "values": [ false ]
  316. }
  317. tracks/1/type = "value"
  318. tracks/1/path = NodePath("BesourinhoUltra4k2:visible")
  319. tracks/1/interp = 1
  320. tracks/1/loop_wrap = true
  321. tracks/1/imported = false
  322. tracks/1/enabled = true
  323. tracks/1/keys = {
  324. "times": PoolRealArray( 0 ),
  325. "transitions": PoolRealArray( 1 ),
  326. "update": 0,
  327. "values": [ true ]
  328. }
  329. tracks/2/type = "value"
  330. tracks/2/path = NodePath("BesourinhoUltra4k2:position")
  331. tracks/2/interp = 1
  332. tracks/2/loop_wrap = true
  333. tracks/2/imported = false
  334. tracks/2/enabled = true
  335. tracks/2/keys = {
  336. "times": PoolRealArray( 0 ),
  337. "transitions": PoolRealArray( 1 ),
  338. "update": 0,
  339. "values": [ Vector2( 384, 613 ) ]
  340. }
  341. tracks/3/type = "value"
  342. tracks/3/path = NodePath("BesourinhoUltra4k2:rotation_degrees")
  343. tracks/3/interp = 1
  344. tracks/3/loop_wrap = true
  345. tracks/3/imported = false
  346. tracks/3/enabled = true
  347. tracks/3/keys = {
  348. "times": PoolRealArray( 0 ),
  349. "transitions": PoolRealArray( 1 ),
  350. "update": 0,
  351. "values": [ 0.0 ]
  352. }
  353. [node name="main" type="YSort"]
  354. position = Vector2( 2, 0 )
  355. [node name="bacteria" parent="." instance=ExtResource( 2 )]
  356. [node name="spawner" type="Node2D" parent="."]
  357. script = ExtResource( 1 )
  358. spawnspeed = 1.0
  359. [node name="spawner2" type="Node2D" parent="."]
  360. script = ExtResource( 1 )
  361. enemy_ = ExtResource( 4 )
  362. spawnspeed = 1.0
  363. [node name="restarter" type="CanvasLayer" parent="."]
  364. pause_mode = 2
  365. script = ExtResource( 3 )
  366. [node name="MarginContainer" type="MarginContainer" parent="restarter"]
  367. visible = false
  368. anchor_right = 1.0
  369. anchor_bottom = 1.0
  370. margin_left = 80.0
  371. margin_right = -80.0
  372. theme = SubResource( 2 )
  373. [node name="VBoxContainer" type="VBoxContainer" parent="restarter/MarginContainer"]
  374. margin_right = 380.0
  375. margin_bottom = 960.0
  376. theme = SubResource( 2 )
  377. alignment = 1
  378. [node name="Label" type="Label" parent="restarter/MarginContainer/VBoxContainer"]
  379. margin_top = 456.0
  380. margin_right = 380.0
  381. margin_bottom = 475.0
  382. custom_fonts/font = ExtResource( 7 )
  383. text = "game over"
  384. align = 1
  385. valign = 1
  386. [node name="Button" type="Button" parent="restarter/MarginContainer/VBoxContainer"]
  387. margin_top = 479.0
  388. margin_right = 380.0
  389. margin_bottom = 504.0
  390. custom_fonts/font = ExtResource( 7 )
  391. text = "restart"
  392. [node name="PowerUpControl" type="CanvasLayer" parent="."]
  393. pause_mode = 2
  394. script = ExtResource( 5 )
  395. [node name="Control" type="MarginContainer" parent="PowerUpControl"]
  396. pause_mode = 2
  397. visible = false
  398. anchor_right = 1.0
  399. anchor_bottom = 1.0
  400. margin_left = 120.0
  401. margin_right = -120.0
  402. theme = SubResource( 2 )
  403. [node name="VSeparator" type="VBoxContainer" parent="PowerUpControl/Control"]
  404. margin_right = 300.0
  405. margin_bottom = 960.0
  406. theme = SubResource( 2 )
  407. alignment = 1
  408. [node name="Label" type="Label" parent="PowerUpControl/Control/VSeparator"]
  409. margin_top = 408.0
  410. margin_right = 300.0
  411. margin_bottom = 427.0
  412. custom_fonts/font = ExtResource( 7 )
  413. text = "Choose a power:"
  414. [node name="ItemList" type="ItemList" parent="PowerUpControl/Control/VSeparator"]
  415. margin_top = 431.0
  416. margin_right = 300.0
  417. margin_bottom = 551.0
  418. rect_min_size = Vector2( 0, 120 )
  419. custom_fonts/font = ExtResource( 7 )
  420. items = [ "Item 0", null, false, "Item 1", null, false, "Item 2", null, false, "Item 3", null, false, "Item 4", null, false ]
  421. [node name="Control2" type="MarginContainer" parent="PowerUpControl"]
  422. pause_mode = 2
  423. visible = false
  424. anchor_right = 1.0
  425. anchor_bottom = 1.0
  426. margin_left = 80.0
  427. margin_right = -80.0
  428. theme = ExtResource( 10 )
  429. [node name="VSeparator" type="VBoxContainer" parent="PowerUpControl/Control2"]
  430. margin_right = 380.0
  431. margin_bottom = 960.0
  432. theme = SubResource( 2 )
  433. alignment = 1
  434. [node name="Label" type="Label" parent="PowerUpControl/Control2/VSeparator"]
  435. margin_top = 154.0
  436. margin_right = 380.0
  437. margin_bottom = 173.0
  438. theme = ExtResource( 10 )
  439. custom_fonts/font = ExtResource( 9 )
  440. text = "Choose a power:"
  441. [node name="ItemList" type="ItemList" parent="PowerUpControl/Control2/VSeparator"]
  442. visible = false
  443. margin_top = 431.0
  444. margin_right = 300.0
  445. margin_bottom = 551.0
  446. rect_min_size = Vector2( 0, 120 )
  447. custom_fonts/font = ExtResource( 7 )
  448. items = [ "Item 0", null, false, "Item 1", null, false, "Item 2", null, false, "Item 3", null, false, "Item 4", null, false ]
  449. [node name="ColorRect" type="ColorRect" parent="PowerUpControl/Control2/VSeparator"]
  450. margin_top = 177.0
  451. margin_right = 380.0
  452. margin_bottom = 777.0
  453. rect_min_size = Vector2( 0, 600 )
  454. color = Color( 0.117647, 0.172549, 0.211765, 1 )
  455. [node name="InterfaceLevelUpNew" type="Sprite" parent="PowerUpControl/Control2/VSeparator/ColorRect"]
  456. position = Vector2( 186, 117 )
  457. scale = Vector2( 0.75, 0.75 )
  458. texture = ExtResource( 11 )
  459. [node name="menbros" type="Node2D" parent="PowerUpControl/Control2/VSeparator"]
  460. self_modulate = Color( 0, 1, 0.952941, 1 )
  461. position = Vector2( 186, 293 )
  462. scale = Vector2( 0.75, 0.75 )
  463. [node name="Area2D2" type="Area2D" parent="PowerUpControl/Control2/VSeparator/menbros"]
  464. position = Vector2( -177.333, 36 )
  465. scale = Vector2( 1.33333, 1.33333 )
  466. collision_layer = 4
  467. collision_mask = 4
  468. script = ExtResource( 12 )
  469. [node name="CollisionShape2D" type="CollisionShape2D" parent="PowerUpControl/Control2/VSeparator/menbros/Area2D2"]
  470. position = Vector2( 32, 32 )
  471. shape = SubResource( 3 )
  472. [node name="Area2D3" type="Area2D" parent="PowerUpControl/Control2/VSeparator/menbros"]
  473. position = Vector2( -177.333, -120 )
  474. scale = Vector2( 1.33333, 1.33333 )
  475. collision_layer = 4
  476. collision_mask = 4
  477. script = ExtResource( 12 )
  478. [node name="CollisionShape2D" type="CollisionShape2D" parent="PowerUpControl/Control2/VSeparator/menbros/Area2D3"]
  479. position = Vector2( 32, 32 )
  480. shape = SubResource( 3 )
  481. [node name="Area2D6" type="Area2D" parent="PowerUpControl/Control2/VSeparator/menbros"]
  482. position = Vector2( -74.6667, 54.6667 )
  483. scale = Vector2( 1.33333, 1.33333 )
  484. collision_layer = 4
  485. collision_mask = 4
  486. script = ExtResource( 12 )
  487. id = 1
  488. [node name="CollisionShape2D" type="CollisionShape2D" parent="PowerUpControl/Control2/VSeparator/menbros/Area2D6"]
  489. position = Vector2( 32, 32 )
  490. shape = SubResource( 3 )
  491. [node name="Area2D7" type="Area2D" parent="PowerUpControl/Control2/VSeparator/menbros"]
  492. position = Vector2( -74.6667, -141.333 )
  493. scale = Vector2( 1.33333, 1.33333 )
  494. collision_layer = 4
  495. collision_mask = 4
  496. script = ExtResource( 12 )
  497. id = 1
  498. [node name="CollisionShape2D" type="CollisionShape2D" parent="PowerUpControl/Control2/VSeparator/menbros/Area2D7"]
  499. position = Vector2( 32, 32 )
  500. shape = SubResource( 3 )
  501. [node name="Area2D4" type="Area2D" parent="PowerUpControl/Control2/VSeparator/menbros"]
  502. position = Vector2( 22.6667, 36 )
  503. scale = Vector2( 1.33333, 1.33333 )
  504. collision_layer = 4
  505. collision_mask = 4
  506. script = ExtResource( 12 )
  507. id = 2
  508. [node name="CollisionShape2D" type="CollisionShape2D" parent="PowerUpControl/Control2/VSeparator/menbros/Area2D4"]
  509. position = Vector2( 32, 32 )
  510. shape = SubResource( 3 )
  511. [node name="Area2D5" type="Area2D" parent="PowerUpControl/Control2/VSeparator/menbros"]
  512. position = Vector2( 22.6667, -120 )
  513. scale = Vector2( 1.33333, 1.33333 )
  514. collision_layer = 4
  515. collision_mask = 4
  516. script = ExtResource( 12 )
  517. id = 2
  518. [node name="CollisionShape2D" type="CollisionShape2D" parent="PowerUpControl/Control2/VSeparator/menbros/Area2D5"]
  519. position = Vector2( 32, 32 )
  520. shape = SubResource( 3 )
  521. [node name="corpo" type="Node2D" parent="PowerUpControl/Control2/VSeparator"]
  522. self_modulate = Color( 1, 0.494118, 0, 1 )
  523. position = Vector2( 186, 293 )
  524. scale = Vector2( 0.75, 0.75 )
  525. [node name="Area2D8" type="Area2D" parent="PowerUpControl/Control2/VSeparator/corpo"]
  526. position = Vector2( -196, -42.6667 )
  527. scale = Vector2( 1.33333, 1.33333 )
  528. collision_layer = 8
  529. collision_mask = 8
  530. script = ExtResource( 12 )
  531. [node name="CollisionShape2D" type="CollisionShape2D" parent="PowerUpControl/Control2/VSeparator/corpo/Area2D8"]
  532. position = Vector2( 32, 32 )
  533. shape = SubResource( 3 )
  534. [node name="Area2D9" type="Area2D" parent="PowerUpControl/Control2/VSeparator/corpo"]
  535. position = Vector2( -117.333, -42.6667 )
  536. scale = Vector2( 1.33333, 1.33333 )
  537. collision_layer = 8
  538. collision_mask = 8
  539. script = ExtResource( 12 )
  540. id = 1
  541. [node name="CollisionShape2D" type="CollisionShape2D" parent="PowerUpControl/Control2/VSeparator/corpo/Area2D9"]
  542. position = Vector2( 32, 32 )
  543. shape = SubResource( 3 )
  544. [node name="Area2D10" type="Area2D" parent="PowerUpControl/Control2/VSeparator/corpo"]
  545. position = Vector2( -38.6667, -42.6667 )
  546. scale = Vector2( 1.33333, 1.33333 )
  547. collision_layer = 8
  548. collision_mask = 8
  549. script = ExtResource( 12 )
  550. id = 2
  551. [node name="CollisionShape2D" type="CollisionShape2D" parent="PowerUpControl/Control2/VSeparator/corpo/Area2D10"]
  552. position = Vector2( 32, 32 )
  553. shape = SubResource( 3 )
  554. [node name="Area2D11" type="Area2D" parent="PowerUpControl/Control2/VSeparator/corpo"]
  555. position = Vector2( 38.6667, -42.6667 )
  556. scale = Vector2( 1.33333, 1.33333 )
  557. collision_layer = 8
  558. collision_mask = 8
  559. script = ExtResource( 12 )
  560. id = 3
  561. [node name="CollisionShape2D" type="CollisionShape2D" parent="PowerUpControl/Control2/VSeparator/corpo/Area2D11"]
  562. position = Vector2( 32, 32 )
  563. shape = SubResource( 3 )
  564. [node name="Area2D12" type="Area2D" parent="PowerUpControl/Control2/VSeparator/corpo"]
  565. position = Vector2( 116, -42.6667 )
  566. scale = Vector2( 1.33333, 1.33333 )
  567. collision_layer = 8
  568. collision_mask = 8
  569. script = ExtResource( 12 )
  570. id = 4
  571. [node name="CollisionShape2D" type="CollisionShape2D" parent="PowerUpControl/Control2/VSeparator/corpo/Area2D12"]
  572. position = Vector2( 32, 32 )
  573. shape = SubResource( 3 )
  574. [node name="buttons" type="Node2D" parent="PowerUpControl/Control2/VSeparator"]
  575. position = Vector2( 24, 422 )
  576. script = ExtResource( 8 )
  577. [node name="Button" type="Button" parent="PowerUpControl/Control2/VSeparator"]
  578. margin_top = 781.0
  579. margin_right = 380.0
  580. margin_bottom = 806.0
  581. text = "accept"
  582. [node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="PowerUpControl"]
  583. stream = ExtResource( 16 )
  584. bus = "menu"
  585. [node name="TextureButton2" type="Sprite" parent="."]
  586. position = Vector2( -2, 0 )
  587. z_index = -255
  588. texture = ExtResource( 15 )
  589. centered = false
  590. region_enabled = true
  591. region_rect = Rect2( 0, 0, 540, 960 )
  592. script = SubResource( 11 )
  593. [node name="CanvasLayer" type="CanvasLayer" parent="."]
  594. layer = -1
  595. [node name="TextureButton" type="ColorRect" parent="CanvasLayer"]
  596. visible = false
  597. material = SubResource( 10 )
  598. anchor_right = 1.0
  599. anchor_bottom = 1.0
  600. theme = SubResource( 2 )
  601. [node name="debug" type="Label" parent="CanvasLayer"]
  602. visible = false
  603. margin_left = 22.0
  604. margin_top = 890.0
  605. margin_right = 96.0
  606. margin_bottom = 938.0
  607. text = "Fps: 60
  608. Vram: 0 mb
  609. ram: 0 mb"
  610. script = ExtResource( 14 )
  611. [node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
  612. stream = ExtResource( 13 )
  613. autoplay = true
  614. [node name="PauseMenu" type="CanvasLayer" parent="."]
  615. pause_mode = 2
  616. script = ExtResource( 20 )
  617. [node name="TextureButton3" type="Sprite" parent="PauseMenu"]
  618. material = SubResource( 13 )
  619. z_index = -255
  620. texture = ExtResource( 15 )
  621. centered = false
  622. region_enabled = true
  623. region_rect = Rect2( 0, 0, 540, 960 )
  624. [node name="Logo" type="Sprite" parent="PauseMenu"]
  625. position = Vector2( 267, 162 )
  626. texture = ExtResource( 18 )
  627. [node name="BesourinhoUltra4k" type="AnimatedSprite" parent="PauseMenu"]
  628. visible = false
  629. position = Vector2( 434, 819 )
  630. rotation = -0.561978
  631. z_index = 20
  632. frames = SubResource( 17 )
  633. frame = 11
  634. playing = true
  635. [node name="Play" type="TouchScreenButton" parent="PauseMenu"]
  636. position = Vector2( -2, 697 )
  637. normal = ExtResource( 19 )
  638. [node name="BesourinhoUltra4k2" type="Sprite" parent="PauseMenu"]
  639. position = Vector2( 384, 613 )
  640. z_index = 20
  641. texture = ExtResource( 17 )
  642. region_enabled = true
  643. region_rect = Rect2( 35.4951, -1.51037, 78.6197, 152.539 )
  644. [node name="BesourinhoUltra4k3" type="Sprite" parent="PauseMenu/BesourinhoUltra4k2"]
  645. position = Vector2( -33, -24 )
  646. texture = ExtResource( 17 )
  647. offset = Vector2( -17, -22 )
  648. region_enabled = true
  649. region_rect = Rect2( 6.85741, 1.01094, 34.8782, 55.8891 )
  650. [node name="BesourinhoUltra4k4" type="Sprite" parent="PauseMenu/BesourinhoUltra4k2"]
  651. position = Vector2( -38, 4 )
  652. texture = ExtResource( 17 )
  653. offset = Vector2( -19, 8 )
  654. region_enabled = true
  655. region_rect = Rect2( -4.90872, 69.5066, 40.7612, 39.0803 )
  656. [node name="BesourinhoUltra4k5" type="Sprite" parent="PauseMenu/BesourinhoUltra4k2"]
  657. position = Vector2( -39, 42 )
  658. texture = ExtResource( 17 )
  659. offset = Vector2( -12, 15 )
  660. region_enabled = true
  661. region_rect = Rect2( 9.37872, 111.949, 27.7344, 43.7028 )
  662. [node name="BesourinhoUltra4k6" type="Sprite" parent="PauseMenu/BesourinhoUltra4k2"]
  663. position = Vector2( 33, -24 )
  664. scale = Vector2( -1, 1 )
  665. texture = ExtResource( 17 )
  666. offset = Vector2( -17, -22 )
  667. region_enabled = true
  668. region_rect = Rect2( 6.85741, 1.01094, 34.8782, 55.8891 )
  669. [node name="BesourinhoUltra4k7" type="Sprite" parent="PauseMenu/BesourinhoUltra4k2"]
  670. position = Vector2( 38, 4 )
  671. scale = Vector2( -1, 1 )
  672. texture = ExtResource( 17 )
  673. offset = Vector2( -19, 8 )
  674. region_enabled = true
  675. region_rect = Rect2( -4.90872, 69.5066, 40.7612, 39.0803 )
  676. [node name="BesourinhoUltra4k8" type="Sprite" parent="PauseMenu/BesourinhoUltra4k2"]
  677. position = Vector2( 38.5, 42 )
  678. scale = Vector2( -1, 1 )
  679. texture = ExtResource( 17 )
  680. offset = Vector2( -12, 15 )
  681. region_enabled = true
  682. region_rect = Rect2( 9.37872, 111.949, 27.7344, 43.7028 )
  683. [node name="AnimationPlayer" type="AnimationPlayer" parent="PauseMenu/BesourinhoUltra4k2"]
  684. pause_mode = 2
  685. "anims/Nova Animação" = SubResource( 21 )
  686. anims/RESET = SubResource( 22 )
  687. [node name="AnimationPlayer2" type="AnimationPlayer" parent="PauseMenu/BesourinhoUltra4k2"]
  688. pause_mode = 2
  689. root_node = NodePath("../..")
  690. autoplay = "Nova Animação"
  691. "anims/Nova Animação" = SubResource( 18 )
  692. anims/RESET = SubResource( 19 )
  693. [connection signal="dieproxy" from="bacteria" to="restarter" method="_on_bacteria_dieproxy"]
  694. [connection signal="level_up" from="bacteria" to="PowerUpControl" method="_on_bacteria_level_up"]
  695. [connection signal="button_down" from="restarter/MarginContainer/VBoxContainer/Button" to="restarter" method="_on_Button_button_down"]
  696. [connection signal="item_activated" from="PowerUpControl/Control/VSeparator/ItemList" to="PowerUpControl" method="_on_ItemList_item_activated"]
  697. [connection signal="item_activated" from="PowerUpControl/Control2/VSeparator/ItemList" to="PowerUpControl" method="_on_ItemList_item_activated"]
  698. [connection signal="button_down" from="PowerUpControl/Control2/VSeparator/Button" to="PowerUpControl" method="_on_Button_button_down"]
  699. [connection signal="button_down" from="PowerUpControl/Control2/VSeparator/Button" to="PowerUpControl/AudioStreamPlayer" method="play"]
  700. [connection signal="pressed" from="PauseMenu/Play" to="PauseMenu" method="_on_Play_pressed"]