-
Notifications
You must be signed in to change notification settings - Fork 1
/
Character.tscn
85 lines (70 loc) · 2.28 KB
/
Character.tscn
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
[gd_scene load_steps=11 format=2]
[ext_resource path="res://Character.gd" type="Script" id=1]
[ext_resource path="res://assets/character/standing/stand_001.png" type="Texture" id=2]
[ext_resource path="res://assets/character/standing/stand_002.png" type="Texture" id=3]
[ext_resource path="res://assets/character/standing/stand_003.png" type="Texture" id=4]
[ext_resource path="res://assets/character/walk/walk_000.png" type="Texture" id=5]
[ext_resource path="res://assets/character/walk/walk_001.png" type="Texture" id=6]
[ext_resource path="res://assets/character/walk/walk_002.png" type="Texture" id=7]
[ext_resource path="res://assets/character/walk/walk_003.png" type="Texture" id=8]
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 2 ), ExtResource( 3 ), ExtResource( 4 ) ],
"loop": true,
"name": "idle",
"speed": 4.0
}, {
"frames": [ ExtResource( 5 ), ExtResource( 6 ), ExtResource( 7 ), ExtResource( 8 ) ],
"loop": true,
"name": "run",
"speed": 10.0
} ]
[sub_resource type="RectangleShape2D" id=2]
custom_solver_bias = 0.0
extents = Vector2( 13.4645, 25.581 )
[node name="Character" type="KinematicBody2D" index="0"]
input_pickable = false
collision_layer = 1
collision_mask = 1
collision/safe_margin = 0.08
script = ExtResource( 1 )
_sections_unfolded = [ "Collision", "Transform" ]
__meta__ = {
"_edit_group_": true
}
id = 0
speed = 250
[node name="Sprite" type="AnimatedSprite" parent="." index="0"]
scale = Vector2( 0.9, 0.9 )
frames = SubResource( 1 )
animation = "run"
frame = 2
playing = true
_sections_unfolded = [ "Material", "Transform" ]
[node name="CollisionShape2D" type="CollisionShape2D" parent="." index="1"]
position = Vector2( 0, 14.0573 )
scale = Vector2( 1, 0.508161 )
shape = SubResource( 2 )
[node name="Camera2D" type="Camera2D" parent="." index="2"]
anchor_mode = 1
rotating = false
current = true
zoom = Vector2( 1, 1 )
limit_left = -10000000
limit_top = -10000000
limit_right = 10000000
limit_bottom = 10000000
limit_smoothed = false
drag_margin_h_enabled = false
drag_margin_v_enabled = false
smoothing_enabled = false
smoothing_speed = 5.0
offset_v = 0.0
offset_h = 0.0
drag_margin_left = 0.2
drag_margin_top = 0.2
drag_margin_right = 0.2
drag_margin_bottom = 0.2
editor_draw_screen = true
editor_draw_limits = false
editor_draw_drag_margin = false