mirror of
https://git.kittycat.homes/zoe/pegchamp.git
synced 2024-08-15 03:15:39 +00:00
42 lines
1.2 KiB
Text
42 lines
1.2 KiB
Text
[gd_scene load_steps=6 format=2]
|
|
|
|
[ext_resource path="res://Bucket/bucket.png" type="Texture" id=1]
|
|
[ext_resource path="res://Bucket/bucketback.png" type="Texture" id=2]
|
|
[ext_resource path="res://Bucket/Bucket.gd" type="Script" id=3]
|
|
|
|
[sub_resource type="RectangleShape2D" id=1]
|
|
extents = Vector2( 30, 1 )
|
|
|
|
[sub_resource type="RectangleShape2D" id=2]
|
|
extents = Vector2( 1, 32 )
|
|
|
|
[node name="Bucket" type="KinematicBody2D"]
|
|
script = ExtResource( 3 )
|
|
|
|
[node name="BallDetectionArea" type="Area2D" parent="."]
|
|
collision_layer = 0
|
|
collision_mask = 4
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="BallDetectionArea"]
|
|
light_mask = 0
|
|
position = Vector2( 0, 5 )
|
|
shape = SubResource( 1 )
|
|
|
|
[node name="Bucketback" type="Sprite" parent="."]
|
|
z_index = -10
|
|
texture = ExtResource( 2 )
|
|
|
|
[node name="Bucketfront" type="Sprite" parent="."]
|
|
position = Vector2( 0, 5 )
|
|
z_index = 10
|
|
texture = ExtResource( 1 )
|
|
|
|
[node name="Left" type="CollisionShape2D" parent="."]
|
|
position = Vector2( -31, 28 )
|
|
shape = SubResource( 2 )
|
|
|
|
[node name="Right" type="CollisionShape2D" parent="."]
|
|
position = Vector2( 31, 28 )
|
|
shape = SubResource( 2 )
|
|
|
|
[connection signal="body_entered" from="BallDetectionArea" to="." method="_on_BallDetectionArea_body_entered"]
|