summaryrefslogtreecommitdiff
path: root/Characters/Tux.tscn
blob: aaffa33a7d2ba1aad9afaf94256d1829a62756ba (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
[gd_scene load_steps=14 format=2]

[ext_resource path="res://Characters/Tux.gd" type="Script" id=1]
[ext_resource path="res://Assets/Characters/Tux/Front.png" type="Texture" id=2]
[ext_resource path="res://Assets/Characters/Tux/Wall.png" type="Texture" id=3]
[ext_resource path="res://Assets/Characters/Tux/Back.png" type="Texture" id=4]
[ext_resource path="res://Assets/Characters/Tux/Walk1.png" type="Texture" id=5]
[ext_resource path="res://Assets/Characters/Tux/Walk2.png" type="Texture" id=6]
[ext_resource path="res://Assets/Characters/Tux/Jump.png" type="Texture" id=7]
[ext_resource path="res://Assets/Characters/Tux/Slide.png" type="Texture" id=8]
[ext_resource path="res://Assets/Characters/Tux/Fall1.png" type="Texture" id=9]
[ext_resource path="res://Assets/Characters/Tux/Fall1Wings.png" type="Texture" id=10]
[ext_resource path="res://Assets/Characters/Tux/Fall2Wings.png" type="Texture" id=11]

[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 4 ) ],
"loop": true,
"name": "back",
"speed": 5.0
}, {
"frames": [ ExtResource( 2 ) ],
"loop": true,
"name": "idle",
"speed": 5.0
}, {
"frames": [ ExtResource( 7 ) ],
"loop": true,
"name": "jump",
"speed": 5.0
}, {
"frames": [ ExtResource( 5 ), ExtResource( 6 ) ],
"loop": true,
"name": "walk",
"speed": 5.0
}, {
"frames": [ ExtResource( 11 ) ],
"loop": true,
"name": "fall_stop_landing",
"speed": 5.0
}, {
"frames": [ ExtResource( 8 ) ],
"loop": true,
"name": "run",
"speed": 5.0
}, {
"frames": [ ExtResource( 9 ) ],
"loop": true,
"name": "fall",
"speed": 5.0
}, {
"frames": [ ExtResource( 10 ) ],
"loop": false,
"name": "fall_stop",
"speed": 5.0
}, {
"frames": [ ExtResource( 3 ) ],
"loop": true,
"name": "wall",
"speed": 5.0
} ]

[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 9.21901, 11.2317 )

[node name="Tux" type="KinematicBody2D"]
collision_mask = 15
script = ExtResource( 1 )

[node name="Sprite" type="AnimatedSprite" parent="."]
scale = Vector2( 0.7, 0.7 )
frames = SubResource( 1 )
animation = "idle"
playing = true

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 2 )

[node name="CheckFallStop" type="RayCast2D" parent="."]
enabled = true
cast_to = Vector2( 0, 150 )

[node name="CheckFallLanding" type="RayCast2D" parent="."]
enabled = true