blob: cdf2b5da114b8e0e65a8f7bc5fe702ee19a7ed82 (
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
|
[gd_scene load_steps=5 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 = 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 )
[connection signal="mouse_entered" from="InnerShape" to="." method="_on_InnerShape_mouse_entered"]
[connection signal="mouse_exited" from="InnerShape" to="." method="_on_InnerShape_mouse_exited"]
|