Animation
Star animation & map boundary
This commit is contained in:
@@ -1,10 +1,27 @@
|
||||
[gd_scene load_steps=3 format=2]
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://Sprites/Assets/blue_star.png" type="Texture" id=1]
|
||||
[ext_resource path="res://Sprites/Assets/bule_star_sprite_spread.png" type="Texture" id=1]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=1]
|
||||
extents = Vector2( 7.95021, 8.07351 )
|
||||
|
||||
[sub_resource type="Animation" id=2]
|
||||
resource_name = "Sparkle"
|
||||
length = 2.0
|
||||
loop = true
|
||||
tracks/0/type = "value"
|
||||
tracks/0/path = NodePath("Sprite:frame")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/keys = {
|
||||
"times": PoolRealArray( 0, 0.5, 1, 1.5 ),
|
||||
"transitions": PoolRealArray( 1, 1, 1, 1 ),
|
||||
"update": 1,
|
||||
"values": [ 0, 1, 2, 3 ]
|
||||
}
|
||||
|
||||
[node name="Star" type="RigidBody2D"]
|
||||
collision_layer = 4
|
||||
collision_mask = 0
|
||||
@@ -15,3 +32,10 @@ shape = SubResource( 1 )
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
texture = ExtResource( 1 )
|
||||
hframes = 4
|
||||
frame = 2
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
autoplay = "Sparkle"
|
||||
method_call_mode = 1
|
||||
anims/Sparkle = SubResource( 2 )
|
||||
|
@@ -64,3 +64,12 @@ position = Vector2( 323.666, 161.038 )
|
||||
[node name="HUD" parent="." instance=ExtResource( 2 )]
|
||||
|
||||
[node name="Pause Screen" parent="." instance=ExtResource( 3 )]
|
||||
|
||||
[node name="Map_boundary" type="RigidBody2D" parent="."]
|
||||
collision_layer = 7
|
||||
collision_mask = 7
|
||||
mode = 1
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Map_boundary"]
|
||||
build_mode = 1
|
||||
polygon = PoolVector2Array( 0.762451, -22.0982, 427.859, -18.7308, 425.053, 245.609, -22.248, 248.976, -21.1256, -22.6594, -0.589813, -21.9661, -0.589806, 225.272, 400.359, 224.843, 399.969, -0.312477, 0.455406, -0.154987 )
|
||||
|
Reference in New Issue
Block a user