44 lines
1.2 KiB
Plaintext
44 lines
1.2 KiB
Plaintext
[gd_scene load_steps=5 format=2]
|
|
|
|
[ext_resource path="res://Button.gd" type="Script" id=1]
|
|
[ext_resource path="res://TankEdge.tscn" type="PackedScene" id=2]
|
|
[ext_resource path="res://World.gd" type="Script" id=4]
|
|
|
|
[sub_resource type="LineShape2D" id=1]
|
|
|
|
[node name="World" type="Node2D"]
|
|
script = ExtResource( 4 )
|
|
|
|
[node name="ColorRect" type="ColorRect" parent="."]
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
color = Color( 0.137255, 0.352941, 0.764706, 1 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Button" type="Button" parent="."]
|
|
margin_left = 54.0
|
|
margin_top = 41.0
|
|
margin_right = 124.0
|
|
margin_bottom = 61.0
|
|
text = "New Fish"
|
|
script = ExtResource( 1 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="TankEdgeL" parent="." instance=ExtResource( 2 )]
|
|
position = Vector2( 135.334, 453.28 )
|
|
|
|
[node name="TankEdgeR" parent="." instance=ExtResource( 2 )]
|
|
position = Vector2( 1464.51, 450 )
|
|
|
|
[node name="StaticBody2D" type="StaticBody2D" parent="."]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
|
|
position = Vector2( 800, 900 )
|
|
shape = SubResource( 1 )
|
|
|
|
[connection signal="pressed" from="Button" to="Button" method="_on_Button_pressed"]
|