summaryrefslogtreecommitdiff
path: root/scenes/basketball.tscn
blob: f6b01b3779a965588a49c2b5ef034b51afb6e7d7 (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
[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]
[ext_resource path="res://textures/release_indicator.png" type="Texture" id=3]

[sub_resource type="PhysicsMaterial" id=2]
bounce = 0.65

[sub_resource type="CircleShape2D" id=1]
radius = 8.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 )
texture = ExtResource( 1 )

[node name="Sprite" type="Sprite" parent="."]
texture = ExtResource( 1 )

[node name="InnerShape" type="Area2D" parent="."]

[node name="CollisionShape2D2" type="CollisionShape2D" parent="InnerShape"]
shape = SubResource( 1 )

[node name="ReleaseIndicator" type="Sprite" parent="."]
visible = false
modulate = Color( 1, 1, 1, 0.498039 )
texture = ExtResource( 3 )
offset = Vector2( 0, -2 )

[connection signal="mouse_entered" from="InnerShape" to="." method="_on_InnerShape_mouse_entered"]
[connection signal="mouse_exited" from="InnerShape" to="." method="_on_InnerShape_mouse_exited"]