|
@@ -1,4 +1,4 @@
|
|
|
-[gd_scene load_steps=21 format=2]
|
|
|
+[gd_scene load_steps=24 format=2]
|
|
|
|
|
|
[ext_resource path="res://spawner.gd" type="Script" id=1]
|
|
|
[ext_resource path="res://bacteria.tscn" type="PackedScene" id=2]
|
|
@@ -8,19 +8,22 @@
|
|
|
[ext_resource path="res://font/ComfortaaRegular.ttf" type="DynamicFontData" id=6]
|
|
|
[ext_resource path="res://newdynamicfont.tres" type="DynamicFont" id=7]
|
|
|
[ext_resource path="res://buttonsgens.gd" type="Script" id=8]
|
|
|
+[ext_resource path="res://font/newdynamicfont.tres" type="DynamicFont" id=9]
|
|
|
+[ext_resource path="res://font/newtheme.tres" type="Theme" id=10]
|
|
|
[ext_resource path="res://ui/InterfaceLevelUpNew.png" type="Texture" id=11]
|
|
|
[ext_resource path="res://ui/Area2D2.gd" type="Script" id=12]
|
|
|
+[ext_resource path="res://audio.ogg" type="AudioStream" id=13]
|
|
|
|
|
|
-[sub_resource type="DynamicFont" id=8]
|
|
|
+[sub_resource type="DynamicFont" id=1]
|
|
|
font_data = ExtResource( 6 )
|
|
|
|
|
|
-[sub_resource type="Theme" id=9]
|
|
|
-default_font = SubResource( 8 )
|
|
|
+[sub_resource type="Theme" id=2]
|
|
|
+default_font = SubResource( 1 )
|
|
|
|
|
|
-[sub_resource type="CircleShape2D" id=11]
|
|
|
+[sub_resource type="CircleShape2D" id=3]
|
|
|
radius = 20.0
|
|
|
|
|
|
-[sub_resource type="Shader" id=1]
|
|
|
+[sub_resource type="Shader" id=4]
|
|
|
code = "// NOTE: Shader automatically converted from Godot Engine 3.4.4.stable's CanvasItemMaterial.
|
|
|
|
|
|
shader_type canvas_item;
|
|
@@ -35,33 +38,34 @@ void fragment(){
|
|
|
COLOR = texture(grad, vec2( round(col)) ) + clamp(col,0.0,0.6) - 0.3;
|
|
|
}"
|
|
|
|
|
|
-[sub_resource type="Gradient" id=2]
|
|
|
+[sub_resource type="Gradient" id=5]
|
|
|
offsets = PoolRealArray( 0.00833333, 0.970833 )
|
|
|
colors = PoolColorArray( 0.00156975, 0.401855, 0.337356, 1, 0.144711, 0.686035, 0.256252, 1 )
|
|
|
|
|
|
-[sub_resource type="GradientTexture" id=3]
|
|
|
-gradient = SubResource( 2 )
|
|
|
+[sub_resource type="GradientTexture" id=6]
|
|
|
+gradient = SubResource( 5 )
|
|
|
|
|
|
-[sub_resource type="OpenSimplexNoise" id=4]
|
|
|
+[sub_resource type="OpenSimplexNoise" id=7]
|
|
|
|
|
|
-[sub_resource type="NoiseTexture" id=5]
|
|
|
+[sub_resource type="NoiseTexture" id=8]
|
|
|
width = 256
|
|
|
height = 256
|
|
|
-noise = SubResource( 4 )
|
|
|
+noise = SubResource( 7 )
|
|
|
|
|
|
-[sub_resource type="NoiseTexture" id=6]
|
|
|
+[sub_resource type="NoiseTexture" id=9]
|
|
|
width = 96
|
|
|
height = 96
|
|
|
seamless = true
|
|
|
-noise = SubResource( 4 )
|
|
|
+noise = SubResource( 7 )
|
|
|
|
|
|
-[sub_resource type="ShaderMaterial" id=7]
|
|
|
-shader = SubResource( 1 )
|
|
|
-shader_param/noise = SubResource( 5 )
|
|
|
-shader_param/noise2 = SubResource( 6 )
|
|
|
-shader_param/grad = SubResource( 3 )
|
|
|
+[sub_resource type="ShaderMaterial" id=10]
|
|
|
+shader = SubResource( 4 )
|
|
|
+shader_param/noise = SubResource( 8 )
|
|
|
+shader_param/noise2 = SubResource( 9 )
|
|
|
+shader_param/grad = SubResource( 6 )
|
|
|
|
|
|
[node name="main" type="YSort"]
|
|
|
+position = Vector2( 2, 0 )
|
|
|
|
|
|
[node name="bacteria" parent="." instance=ExtResource( 2 )]
|
|
|
|
|
@@ -84,12 +88,12 @@ anchor_right = 1.0
|
|
|
anchor_bottom = 1.0
|
|
|
margin_left = 300.0
|
|
|
margin_right = -300.0
|
|
|
-theme = SubResource( 9 )
|
|
|
+theme = SubResource( 2 )
|
|
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="restarter/MarginContainer"]
|
|
|
margin_right = 89.0
|
|
|
margin_bottom = 960.0
|
|
|
-theme = SubResource( 9 )
|
|
|
+theme = SubResource( 2 )
|
|
|
alignment = 1
|
|
|
|
|
|
[node name="Label" type="Label" parent="restarter/MarginContainer/VBoxContainer"]
|
|
@@ -119,12 +123,12 @@ anchor_right = 1.0
|
|
|
anchor_bottom = 1.0
|
|
|
margin_left = 120.0
|
|
|
margin_right = -120.0
|
|
|
-theme = SubResource( 9 )
|
|
|
+theme = SubResource( 2 )
|
|
|
|
|
|
[node name="VSeparator" type="VBoxContainer" parent="PowerUpControl/Control"]
|
|
|
margin_right = 300.0
|
|
|
margin_bottom = 960.0
|
|
|
-theme = SubResource( 9 )
|
|
|
+theme = SubResource( 2 )
|
|
|
alignment = 1
|
|
|
|
|
|
[node name="Label" type="Label" parent="PowerUpControl/Control/VSeparator"]
|
|
@@ -149,19 +153,20 @@ anchor_right = 1.0
|
|
|
anchor_bottom = 1.0
|
|
|
margin_left = 80.0
|
|
|
margin_right = -80.0
|
|
|
-theme = SubResource( 9 )
|
|
|
+theme = ExtResource( 10 )
|
|
|
|
|
|
[node name="VSeparator" type="VBoxContainer" parent="PowerUpControl/Control2"]
|
|
|
margin_right = 380.0
|
|
|
margin_bottom = 960.0
|
|
|
-theme = SubResource( 9 )
|
|
|
+theme = SubResource( 2 )
|
|
|
alignment = 1
|
|
|
|
|
|
[node name="Label" type="Label" parent="PowerUpControl/Control2/VSeparator"]
|
|
|
margin_top = 154.0
|
|
|
margin_right = 380.0
|
|
|
margin_bottom = 173.0
|
|
|
-custom_fonts/font = ExtResource( 7 )
|
|
|
+theme = ExtResource( 10 )
|
|
|
+custom_fonts/font = ExtResource( 9 )
|
|
|
text = "Choose a power:"
|
|
|
|
|
|
[node name="ItemList" type="ItemList" parent="PowerUpControl/Control2/VSeparator"]
|
|
@@ -178,7 +183,7 @@ margin_top = 177.0
|
|
|
margin_right = 380.0
|
|
|
margin_bottom = 777.0
|
|
|
rect_min_size = Vector2( 0, 600 )
|
|
|
-color = Color( 0.886275, 0.717647, 0.556863, 1 )
|
|
|
+color = Color( 0.117647, 0.172549, 0.211765, 1 )
|
|
|
|
|
|
[node name="InterfaceLevelUpNew" type="Sprite" parent="PowerUpControl/Control2/VSeparator/ColorRect"]
|
|
|
position = Vector2( 186, 117 )
|
|
@@ -186,7 +191,7 @@ scale = Vector2( 0.75, 0.75 )
|
|
|
texture = ExtResource( 11 )
|
|
|
|
|
|
[node name="menbros" type="Node2D" parent="PowerUpControl/Control2/VSeparator"]
|
|
|
-modulate = Color( 0, 1, 0.952941, 1 )
|
|
|
+self_modulate = Color( 0, 1, 0.952941, 1 )
|
|
|
position = Vector2( 186, 293 )
|
|
|
scale = Vector2( 0.75, 0.75 )
|
|
|
|
|
@@ -199,7 +204,7 @@ script = ExtResource( 12 )
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="PowerUpControl/Control2/VSeparator/menbros/Area2D2"]
|
|
|
position = Vector2( 32, 32 )
|
|
|
-shape = SubResource( 11 )
|
|
|
+shape = SubResource( 3 )
|
|
|
|
|
|
[node name="Area2D3" type="Area2D" parent="PowerUpControl/Control2/VSeparator/menbros"]
|
|
|
position = Vector2( -177.333, -120 )
|
|
@@ -210,7 +215,7 @@ script = ExtResource( 12 )
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="PowerUpControl/Control2/VSeparator/menbros/Area2D3"]
|
|
|
position = Vector2( 32, 32 )
|
|
|
-shape = SubResource( 11 )
|
|
|
+shape = SubResource( 3 )
|
|
|
|
|
|
[node name="Area2D6" type="Area2D" parent="PowerUpControl/Control2/VSeparator/menbros"]
|
|
|
position = Vector2( -74.6667, 54.6667 )
|
|
@@ -222,7 +227,7 @@ id = 1
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="PowerUpControl/Control2/VSeparator/menbros/Area2D6"]
|
|
|
position = Vector2( 32, 32 )
|
|
|
-shape = SubResource( 11 )
|
|
|
+shape = SubResource( 3 )
|
|
|
|
|
|
[node name="Area2D7" type="Area2D" parent="PowerUpControl/Control2/VSeparator/menbros"]
|
|
|
position = Vector2( -74.6667, -141.333 )
|
|
@@ -234,7 +239,7 @@ id = 1
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="PowerUpControl/Control2/VSeparator/menbros/Area2D7"]
|
|
|
position = Vector2( 32, 32 )
|
|
|
-shape = SubResource( 11 )
|
|
|
+shape = SubResource( 3 )
|
|
|
|
|
|
[node name="Area2D4" type="Area2D" parent="PowerUpControl/Control2/VSeparator/menbros"]
|
|
|
position = Vector2( 22.6667, 36 )
|
|
@@ -246,7 +251,7 @@ id = 2
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="PowerUpControl/Control2/VSeparator/menbros/Area2D4"]
|
|
|
position = Vector2( 32, 32 )
|
|
|
-shape = SubResource( 11 )
|
|
|
+shape = SubResource( 3 )
|
|
|
|
|
|
[node name="Area2D5" type="Area2D" parent="PowerUpControl/Control2/VSeparator/menbros"]
|
|
|
position = Vector2( 22.6667, -120 )
|
|
@@ -258,10 +263,10 @@ id = 2
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="PowerUpControl/Control2/VSeparator/menbros/Area2D5"]
|
|
|
position = Vector2( 32, 32 )
|
|
|
-shape = SubResource( 11 )
|
|
|
+shape = SubResource( 3 )
|
|
|
|
|
|
[node name="corpo" type="Node2D" parent="PowerUpControl/Control2/VSeparator"]
|
|
|
-modulate = Color( 1, 0.494118, 0, 1 )
|
|
|
+self_modulate = Color( 1, 0.494118, 0, 1 )
|
|
|
position = Vector2( 186, 293 )
|
|
|
scale = Vector2( 0.75, 0.75 )
|
|
|
|
|
@@ -274,7 +279,7 @@ script = ExtResource( 12 )
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="PowerUpControl/Control2/VSeparator/corpo/Area2D8"]
|
|
|
position = Vector2( 32, 32 )
|
|
|
-shape = SubResource( 11 )
|
|
|
+shape = SubResource( 3 )
|
|
|
|
|
|
[node name="Area2D9" type="Area2D" parent="PowerUpControl/Control2/VSeparator/corpo"]
|
|
|
position = Vector2( -117.333, -42.6667 )
|
|
@@ -286,7 +291,7 @@ id = 1
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="PowerUpControl/Control2/VSeparator/corpo/Area2D9"]
|
|
|
position = Vector2( 32, 32 )
|
|
|
-shape = SubResource( 11 )
|
|
|
+shape = SubResource( 3 )
|
|
|
|
|
|
[node name="Area2D10" type="Area2D" parent="PowerUpControl/Control2/VSeparator/corpo"]
|
|
|
position = Vector2( -38.6667, -42.6667 )
|
|
@@ -298,7 +303,7 @@ id = 2
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="PowerUpControl/Control2/VSeparator/corpo/Area2D10"]
|
|
|
position = Vector2( 32, 32 )
|
|
|
-shape = SubResource( 11 )
|
|
|
+shape = SubResource( 3 )
|
|
|
|
|
|
[node name="Area2D11" type="Area2D" parent="PowerUpControl/Control2/VSeparator/corpo"]
|
|
|
position = Vector2( 38.6667, -42.6667 )
|
|
@@ -310,7 +315,7 @@ id = 3
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="PowerUpControl/Control2/VSeparator/corpo/Area2D11"]
|
|
|
position = Vector2( 32, 32 )
|
|
|
-shape = SubResource( 11 )
|
|
|
+shape = SubResource( 3 )
|
|
|
|
|
|
[node name="Area2D12" type="Area2D" parent="PowerUpControl/Control2/VSeparator/corpo"]
|
|
|
position = Vector2( 116, -42.6667 )
|
|
@@ -322,7 +327,7 @@ id = 4
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="PowerUpControl/Control2/VSeparator/corpo/Area2D12"]
|
|
|
position = Vector2( 32, 32 )
|
|
|
-shape = SubResource( 11 )
|
|
|
+shape = SubResource( 3 )
|
|
|
|
|
|
[node name="buttons" type="Node2D" parent="PowerUpControl/Control2/VSeparator"]
|
|
|
position = Vector2( 24, 422 )
|
|
@@ -338,10 +343,14 @@ text = "accept"
|
|
|
layer = -1
|
|
|
|
|
|
[node name="TextureButton" type="ColorRect" parent="CanvasLayer"]
|
|
|
-material = SubResource( 7 )
|
|
|
+material = SubResource( 10 )
|
|
|
anchor_right = 1.0
|
|
|
anchor_bottom = 1.0
|
|
|
-theme = SubResource( 9 )
|
|
|
+theme = SubResource( 2 )
|
|
|
+
|
|
|
+[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
|
|
+stream = ExtResource( 13 )
|
|
|
+autoplay = true
|
|
|
|
|
|
[connection signal="dieproxy" from="bacteria" to="restarter" method="_on_bacteria_dieproxy"]
|
|
|
[connection signal="level_up" from="bacteria" to="PowerUpControl" method="_on_bacteria_level_up"]
|