summaryrefslogtreecommitdiff
path: root/Characters/Elephant.tscn
blob: 1d664ae51659b93a5a262326f7299457b0f9739c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
[gd_scene load_steps=10 format=3 uid="uid://ba3do2dhi2m65"]

[ext_resource type="Script" path="res://Characters/Tux.gd" id="1"]
[ext_resource type="Texture2D" uid="uid://b1ubrkswjkmg4" path="res://Assets/Characters/Elephant/Walk2.png" id="2"]
[ext_resource type="Texture2D" uid="uid://dhfj50q47tmr5" path="res://Assets/Characters/Elephant/Walk1.png" id="3"]
[ext_resource type="Texture2D" uid="uid://dggbekqiasbvp" path="res://Assets/Characters/Elephant/Back.png" id="4"]
[ext_resource type="Texture2D" uid="uid://bfr2ek0h8rveb" path="res://Assets/Characters/Elephant/Front.png" id="5"]
[ext_resource type="Texture2D" uid="uid://47xb7truren2" path="res://Assets/Characters/Elephant/Wall.png" id="6"]
[ext_resource type="Texture2D" uid="uid://cx8mq4nhpgn07" path="res://Assets/Characters/Elephant/Jump.png" id="7"]

[sub_resource type="SpriteFrames" id="1"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("4")
}],
"loop": true,
"name": &"back",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("5")
}],
"loop": true,
"name": &"idle",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("7")
}],
"loop": true,
"name": &"jump",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("3")
}, {
"duration": 1.0,
"texture": ExtResource("2")
}],
"loop": true,
"name": &"run",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("3")
}, {
"duration": 1.0,
"texture": ExtResource("2")
}],
"loop": true,
"name": &"walk",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("6")
}],
"loop": true,
"name": &"wall",
"speed": 5.0
}]

[sub_resource type="RectangleShape2D" id="2"]
size = Vector2(12, 17)

[node name="Elephant" type="CharacterBody2D"]
collision_mask = 15
script = ExtResource("1")

[node name="Sprite2D" type="AnimatedSprite2D" parent="."]
scale = Vector2(0.7, 0.7)
sprite_frames = SubResource("1")
animation = &"idle"

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(2.38419e-07, 1.5)
shape = SubResource("2")

[node name="WalljumpTimer" type="Timer" parent="."]
wait_time = 0.1
one_shot = true