Setup
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
[gd_scene load_steps=5 format=2]
|
||||
|
||||
[ext_resource path="res://assets/textures/pipe.png" type="Texture" id=1]
|
||||
[ext_resource path="res://scripts/Obstacle.cs" type="Script" id=2]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=1]
|
||||
extents = Vector2( 39.216, 239.928 )
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=2]
|
||||
extents = Vector2( 40, 80 )
|
||||
|
||||
[node name="Obstacle" type="Area2D"]
|
||||
position = Vector2( 528, 0 )
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="Pipe" type="Area2D" parent="."]
|
||||
position = Vector2( 0, 736 )
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="Pipe"]
|
||||
texture = ExtResource( 1 )
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Pipe"]
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[node name="Pipe2" type="Area2D" parent="."]
|
||||
position = Vector2( 0, 96 )
|
||||
rotation = 3.14159
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="Pipe2"]
|
||||
texture = ExtResource( 1 )
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Pipe2"]
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[node name="Score" type="CollisionShape2D" parent="."]
|
||||
position = Vector2( 0, 416 )
|
||||
shape = SubResource( 2 )
|
||||
|
||||
[connection signal="body_exited" from="." to="." method="_on_Obstacle_player_exited"]
|
||||
[connection signal="body_entered" from="Pipe" to="." method="_on_Pipe_player_entered"]
|
||||
[connection signal="body_entered" from="Pipe2" to="." method="_on_Pipe_player_entered"]
|
||||
Reference in New Issue
Block a user