-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBarrel.tscn
30 lines (21 loc) · 889 Bytes
/
Barrel.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
[gd_scene load_steps=5 format=2]
[ext_resource path="res://images/nitro.png" type="Texture" id=1]
[ext_resource path="res://Barrel.gd" type="Script" id=2]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 2.76727, 4.33193 )
[sub_resource type="CapsuleShape2D" id=2]
radius = 8.06976
height = 33.491
[node name="Barrel" type="RigidBody2D"]
script = ExtResource( 2 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
scale = Vector2( 3.12, 2.6 )
shape = SubResource( 1 )
[node name="Sprite" type="Sprite" parent="."]
scale = Vector2( 0.063, 0.063 )
texture = ExtResource( 1 )
[node name="PickArea" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="PickArea"]
scale = Vector2( 2.06014, -0.801646 )
shape = SubResource( 2 )
[connection signal="body_entered" from="PickArea" to="." method="_on_PickArea_body_entered"]