123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- [gd_scene load_steps=13 format=2]
- [ext_resource path="res://spawner.gd" type="Script" id=1]
- [ext_resource path="res://bacteria.tscn" type="PackedScene" id=2]
- [ext_resource path="res://restarter.gd" type="Script" id=3]
- [ext_resource path="res://Healthpickup.tscn" type="PackedScene" id=4]
- [ext_resource path="res://PowerUpControl.gd" type="Script" id=5]
- [sub_resource type="Shader" id=1]
- code = "// NOTE: Shader automatically converted from Godot Engine 3.4.4.stable's CanvasItemMaterial.
- shader_type canvas_item;
- render_mode blend_mix;
- uniform sampler2D noise;
- uniform sampler2D noise2;
- uniform sampler2D grad;
- void fragment(){
- float col = texture(noise, UV).r * texture(noise2, UV+TIME*0.1).r + 0.3;
- COLOR = texture(grad, vec2( round(col)) ) + clamp(col,0.0,0.6) - 0.3;
- }"
- [sub_resource type="Gradient" id=2]
- 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="OpenSimplexNoise" id=4]
- [sub_resource type="NoiseTexture" id=5]
- width = 256
- height = 256
- noise = SubResource( 4 )
- [sub_resource type="NoiseTexture" id=6]
- width = 96
- height = 96
- seamless = true
- noise = SubResource( 4 )
- [sub_resource type="ShaderMaterial" id=7]
- shader = SubResource( 1 )
- shader_param/noise = SubResource( 5 )
- shader_param/noise2 = SubResource( 6 )
- shader_param/grad = SubResource( 3 )
- [node name="main" type="YSort"]
- [node name="bacteria" parent="." instance=ExtResource( 2 )]
- [node name="spawner" type="Node2D" parent="."]
- script = ExtResource( 1 )
- [node name="spawner2" type="Node2D" parent="."]
- script = ExtResource( 1 )
- enemy_ = ExtResource( 4 )
- spawnspeed = 15.0
- [node name="restarter" type="CanvasLayer" parent="."]
- pause_mode = 2
- script = ExtResource( 3 )
- [node name="MarginContainer" type="MarginContainer" parent="restarter"]
- visible = false
- anchor_right = 1.0
- anchor_bottom = 1.0
- margin_left = 300.0
- margin_right = -300.0
- [node name="VBoxContainer" type="VBoxContainer" parent="restarter/MarginContainer"]
- margin_right = 67.0
- margin_bottom = 960.0
- alignment = 1
- [node name="Label" type="Label" parent="restarter/MarginContainer/VBoxContainer"]
- margin_top = 621.0
- margin_right = 120.0
- margin_bottom = 635.0
- text = "game over"
- align = 1
- valign = 1
- [node name="Button" type="Button" parent="restarter/MarginContainer/VBoxContainer"]
- margin_top = 639.0
- margin_right = 120.0
- margin_bottom = 659.0
- text = "restart"
- [node name="PowerUpControl" type="CanvasLayer" parent="."]
- script = ExtResource( 5 )
- [node name="Control" type="MarginContainer" parent="PowerUpControl"]
- pause_mode = 2
- visible = false
- anchor_right = 1.0
- anchor_bottom = 1.0
- margin_left = 120.0
- margin_right = -120.0
- [node name="VSeparator" type="VBoxContainer" parent="PowerUpControl/Control"]
- margin_right = 300.0
- margin_bottom = 960.0
- alignment = 1
- [node name="Label" type="Label" parent="PowerUpControl/Control/VSeparator"]
- margin_top = 411.0
- margin_right = 300.0
- margin_bottom = 425.0
- text = "Choose a power:"
- [node name="ItemList" type="ItemList" parent="PowerUpControl/Control/VSeparator"]
- margin_top = 429.0
- margin_right = 300.0
- margin_bottom = 549.0
- rect_min_size = Vector2( 0, 120 )
- items = [ "Item 0", null, false, "Item 1", null, false, "Item 2", null, false, "Item 3", null, false, "Item 4", null, false ]
- [node name="VSeparator2" type="VBoxContainer" parent="PowerUpControl/Control"]
- margin_right = 300.0
- margin_bottom = 960.0
- alignment = 1
- [node name="Label" type="Label" parent="PowerUpControl/Control/VSeparator2"]
- margin_top = 411.0
- margin_right = 300.0
- margin_bottom = 425.0
- text = "put on slot:"
- [node name="ItemList2" type="ItemList" parent="PowerUpControl/Control/VSeparator2"]
- margin_top = 429.0
- margin_right = 300.0
- margin_bottom = 549.0
- rect_min_size = Vector2( 0, 120 )
- items = [ "Item 0", null, false, "Item 1", null, false, "Item 2", null, false ]
- [node name="CanvasLayer" type="CanvasLayer" parent="."]
- layer = -1
- [node name="TextureButton" type="ColorRect" parent="CanvasLayer"]
- material = SubResource( 7 )
- anchor_right = 1.0
- anchor_bottom = 1.0
- [connection signal="dieproxy" from="bacteria" to="restarter" method="_on_bacteria_dieproxy"]
- [connection signal="level_up" from="bacteria" to="PowerUpControl" method="_on_bacteria_level_up"]
- [connection signal="button_down" from="restarter/MarginContainer/VBoxContainer/Button" to="restarter" method="_on_Button_button_down"]
- [connection signal="item_activated" from="PowerUpControl/Control/VSeparator/ItemList" to="PowerUpControl" method="_on_ItemList_item_activated"]
- [connection signal="item_activated" from="PowerUpControl/Control/VSeparator2/ItemList2" to="PowerUpControl" method="_on_ItemList2_item_activated"]
|