add mock animation for piece

This commit is contained in:
Fabien Freling 2019-12-02 13:42:02 +01:00
parent 4419e84e25
commit ce3b060487
2 changed files with 50 additions and 24 deletions

View file

@ -1,7 +1,22 @@
[gd_scene load_steps=2 format=2]
[gd_scene load_steps=3 format=2]
[ext_resource path="res://src/Taquin.gd" type="Script" id=1]
[sub_resource type="Animation" id=1]
resource_name = "MovingPiece"
tracks/0/type = "value"
tracks/0/path = NodePath("AnimationPlayer/MockPiece:rect_position")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.2 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector2( 176, 338 ), Vector2( 338, 338 ) ]
}
[node name="Taquin" type="Node2D"]
script = ExtResource( 1 )
rows = 3
@ -12,3 +27,14 @@ difficulty = 0
margin_right = 512.0
margin_bottom = 512.0
color = Color( 0.254902, 0.329412, 0.45098, 1 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
anims/MovingPiece = SubResource( 1 )
[node name="MockPiece" type="ColorRect" parent="AnimationPlayer"]
visible = false
margin_left = 176.0
margin_top = 338.0
margin_right = 336.001
margin_bottom = 498.0
color = Color( 0.345098, 0.980392, 0.113725, 1 )