48 lines
1.4 KiB
Plaintext
48 lines
1.4 KiB
Plaintext
[gd_scene load_steps=5 format=2]
|
|
|
|
[ext_resource path="res://assets/environment/blocks/Basic stone block.png" type="Texture" id=1]
|
|
[ext_resource path="res://src/Contraptions/Platform/Track.gd" type="Script" id=2]
|
|
|
|
[sub_resource type="RectangleShape2D" id=1]
|
|
extents = Vector2( 19.0405, 7.97217 )
|
|
|
|
[sub_resource type="Animation" id=2]
|
|
resource_name = "Horizontal"
|
|
length = 2.5
|
|
loop = true
|
|
tracks/0/type = "value"
|
|
tracks/0/path = NodePath("KinematicBody2D:position")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/keys = {
|
|
"times": PoolRealArray( 0, 1.3 ),
|
|
"transitions": PoolRealArray( 1, 1 ),
|
|
"update": 0,
|
|
"values": [ Vector2( 0, 0 ), Vector2( 30, 0 ) ]
|
|
}
|
|
|
|
[node name="Track" type="Node2D"]
|
|
script = ExtResource( 2 )
|
|
|
|
[node name="KinematicBody2D" type="KinematicBody2D" parent="."]
|
|
position = Vector2( 19.2307, 0 )
|
|
collision_layer = 8
|
|
collision_mask = 8
|
|
motion/sync_to_physics = true
|
|
|
|
[node name="Sprite" type="Sprite" parent="KinematicBody2D"]
|
|
position = Vector2( -0.0275421, 0.0656414 )
|
|
scale = Vector2( 2.38059, 1 )
|
|
texture = ExtResource( 1 )
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="KinematicBody2D"]
|
|
position = Vector2( -0.00535583, 0.0656414 )
|
|
shape = SubResource( 1 )
|
|
|
|
[node name="anim" type="AnimationPlayer" parent="."]
|
|
pause_mode = 2
|
|
playback_process_mode = 0
|
|
anims/Horizontal = SubResource( 2 )
|