mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-05-07 05:02:04 +02:00
Specify valid targets in cards' command, highlight them when dragged
This commit is contained in:
parent
fe0262cc30
commit
977a085940
5 changed files with 62 additions and 40 deletions
scenes
|
@ -1,12 +1,14 @@
|
|||
[gd_scene load_steps=3 format=2]
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://scenes/drop_area.gd" type="Script" id=1]
|
||||
|
||||
[ext_resource path="res://nodes/blob.svg" type="Texture" id=2]
|
||||
|
||||
[sub_resource type="CircleShape2D" id=1]
|
||||
radius = 23.5871
|
||||
|
||||
[node name="DropArea" type="Node2D"]
|
||||
[node name="DropArea" type="Node2D" groups=[
|
||||
"drop_areas",
|
||||
]]
|
||||
position = Vector2( -0.197731, 0.0673599 )
|
||||
script = ExtResource( 1 )
|
||||
|
||||
|
@ -14,5 +16,14 @@ script = ExtResource( 1 )
|
|||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[node name="Highlight" type="Node2D" parent="."]
|
||||
visible = false
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="Highlight"]
|
||||
modulate = Color( 0.65098, 0.560784, 0.890196, 0.533333 )
|
||||
position = Vector2( -0.302719, 0.302704 )
|
||||
scale = Vector2( 1.64865, 1.64865 )
|
||||
texture = ExtResource( 2 )
|
||||
[connection signal="mouse_entered" from="Area2D" to="." method="_mouse_entered"]
|
||||
[connection signal="mouse_exited" from="Area2D" to="." method="_mouse_exited"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue