diff options
author | cflip <cflip@cflip.net> | 2022-09-30 21:20:48 -0600 |
---|---|---|
committer | cflip <cflip@cflip.net> | 2022-09-30 21:20:48 -0600 |
commit | 1d485122123d59dfee0ddf6989f86832129f7220 (patch) | |
tree | 9b2b9cfc445374f046b1480b61e57c10a0c4e835 /scenes | |
parent | b76c6de83b01cddaf589669ef15081ffdbe6148b (diff) |
Add an indicator for the last point where the ball was released
Diffstat (limited to 'scenes')
-rw-r--r-- | scenes/basketball.tscn | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scenes/basketball.tscn b/scenes/basketball.tscn index cdf2b5d..b46962f 100644 --- a/scenes/basketball.tscn +++ b/scenes/basketball.tscn @@ -1,7 +1,8 @@ -[gd_scene load_steps=5 format=2] +[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 @@ -32,5 +33,10 @@ texture = ExtResource( 1 ) [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 ) + [connection signal="mouse_entered" from="InnerShape" to="." method="_on_InnerShape_mouse_entered"] [connection signal="mouse_exited" from="InnerShape" to="." method="_on_InnerShape_mouse_exited"] |