summaryrefslogtreecommitdiff
path: root/scenes/basketball.tscn
blob: 9d2cd491df58cd7c0a7cd15f141ca4bf9a68c75f (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
43
44
45
46
47
48
[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.65

[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="GhostSprite" type="Sprite" parent="."]
visible = false
modulate = Color( 1, 1, 1, 0.494118 )
scale = Vector2( 5, 5 )
texture = ExtResource( 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"]