blob: 9f06c738cbcddee8d232ef78467b1e1cd48c9887 (
plain)
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
40
41
42
|
[gd_scene load_steps=6 format=2]
[ext_resource path="res://textures/basketball.png" type="Texture" id=1]
[ext_resource path="res://scripts/basketball.gd" type="Script" id=2]
[sub_resource type="PhysicsMaterial" id=2]
bounce = 0.5
[sub_resource type="CircleShape2D" id=1]
radius = 40.0
[sub_resource type="CircleShape2D" id=3]
radius = 150.0
[node name="Basketball" type="RigidBody2D"]
physics_material_override = SubResource( 2 )
script = ExtResource( 2 )
__meta__ = {
"_edit_group_": true
}
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )
[node name="Sprite" type="Sprite" parent="."]
scale = Vector2( 5, 5 )
texture = ExtResource( 1 )
[node name="OuterShape" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="OuterShape"]
shape = SubResource( 3 )
[node name="InnerShape" type="Area2D" parent="."]
[node name="CollisionShape2D2" type="CollisionShape2D" parent="InnerShape"]
shape = SubResource( 1 )
[connection signal="mouse_entered" from="OuterShape" to="." method="on_OuterShape_mouse_entered"]
[connection signal="mouse_exited" from="OuterShape" to="." method="_on_OuterShape_mouse_exited"]
[connection signal="mouse_entered" from="InnerShape" to="." method="_on_InnerShape_mouse_entered"]
[connection signal="mouse_exited" from="InnerShape" to="." method="_on_InnerShape_mouse_exited"]
|