giraffe/scenes/Tree.tscn

34 lines
948 B
Plaintext

[gd_scene load_steps=7 format=2]
[ext_resource path="res://assets/tree.png" type="Texture" id=1]
[ext_resource path="res://scripts/Tree.gd" type="Script" id=2]
[ext_resource path="res://assets/bare_tree.png" type="Texture" id=3]
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 1 ), ExtResource( 3 ) ],
"loop": true,
"name": "default",
"speed": 5.0
} ]
[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 112.784, 53.9413 )
[sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 50.4981, 83.1256 )
[node name="Tree" type="KinematicBody2D"]
script = ExtResource( 2 )
[node name="Sprite" type="AnimatedSprite" parent="."]
frames = SubResource( 1 )
[node name="Leaves" type="CollisionShape2D" parent="."]
position = Vector2( 0.629959, -28.6632 )
shape = SubResource( 2 )
[node name="Trunk" type="CollisionShape2D" parent="."]
position = Vector2( -57.0114, 4.03472 )
shape = SubResource( 3 )