-
Notifications
You must be signed in to change notification settings - Fork 0
/
MCbullet.tscn
39 lines (28 loc) · 1.14 KB
/
MCbullet.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
31
32
33
34
35
36
37
38
39
[gd_scene load_steps=5 format=2]
[ext_resource path="res://p1boolet.gd" type="Script" id=1]
[ext_resource path="res://MC/p2sprite.png" type="Texture" id=2]
[sub_resource type="CapsuleShape2D" id=1]
radius = 6.0
height = 8.0
[sub_resource type="CapsuleShape2D" id=2]
radius = 8.0
height = 8.0
[node name="boolet" type="Node2D"]
[node name="KinematicBody2D" type="KinematicBody2D" parent="."]
script = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="KinematicBody2D"]
rotation = -3.14159
shape = SubResource( 1 )
one_way_collision_margin = 0.0
[node name="Sprite" type="Sprite" parent="KinematicBody2D/CollisionShape2D"]
rotation = 3.14159
texture = ExtResource( 2 )
hframes = 20
vframes = 12
frame = 164
[node name="VisibilityNotifier2D" type="VisibilityNotifier2D" parent="KinematicBody2D/CollisionShape2D"]
rotation = 3.14159
[node name="MCbullet2d" type="Area2D" parent="KinematicBody2D"]
[node name="CollisionShape2D" type="CollisionShape2D" parent="KinematicBody2D/MCbullet2d"]
shape = SubResource( 2 )
[connection signal="area_entered" from="KinematicBody2D/MCbullet2d" to="KinematicBody2D" method="_on_Area2D_area_entered"]