godot_tiny_crate/Scene/Actor/Box.tscn
2020-10-09 16:23:26 -04:00

60 lines
1.8 KiB
Text

[gd_scene load_steps=5 format=2]
[ext_resource path="res://Script/Actor/Box.gd" type="Script" id=1]
[ext_resource path="res://Image/box.png" type="Texture" id=2]
[ext_resource path="res://Audio/SFX/hit10.wav" type="AudioStream" id=3]
[sub_resource type="Animation" id=1]
resource_name = "hit"
length = 0.4
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:region_rect")
tracks/0/interp = 0
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.1, 0.14, 0.18, 0.22, 0.26, 0.3 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1 ),
"update": 0,
"values": [ Rect2( 0, 0, 16, 16 ), Rect2( 16, 0, 16, 16 ), Rect2( 32, 0, 16, 16 ), Rect2( 48, 0, 16, 16 ), Rect2( 64, 0, 16, 16 ), Rect2( 80, 0, 16, 16 ), Rect2( 96, 0, 16, 16 ) ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("Sprite:offset")
tracks/1/interp = 0
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0, 0.1, 0.14, 0.18, 0.22, 0.26, 0.3 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1 ),
"update": 0,
"values": [ Vector2( 0, 0 ), Vector2( 0, 0 ), Vector2( 0, 0 ), Vector2( 0, 0 ), Vector2( 0, 0 ), Vector2( 0, 0 ), Vector2( 0, 0 ) ]
}
[node name="Box" type="Node2D" groups=[
"actor",
"box",
]]
z_index = 4
z_as_relative = false
script = ExtResource( 1 )
tag = "box"
is_moving = true
is_solid = true
is_colliding = true
is_using_gravity = true
is_using_tread = true
[node name="Sprite" type="Sprite" parent="."]
position = Vector2( 4, 4 )
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 96, 0, 16, 16 )
[node name="AudioHit" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 3 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
anims/hit = SubResource( 1 )