Skip to content

Commit bc53d1a

Browse files
committed
feat: adiciona animacao walk
1 parent fabe49a commit bc53d1a

28 files changed

+717
-13
lines changed

.idea/.idea.DungeonRoyale/.idea/.gitignore

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.idea.DungeonRoyale/.idea/encodings.xml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.idea.DungeonRoyale/.idea/indexLayout.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.idea.DungeonRoyale/.idea/misc.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.idea.DungeonRoyale/.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

GlobalUsings.cs.uid

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
uid://dmyuhhc3l18oq

Modules/Game/Scenes/Game.tscn

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,3 @@ tile_set = ExtResource("1_g4ia1")
2626

2727
[node name="Player" parent="." instance=ExtResource("2_31c6s")]
2828
position = Vector2(8, 315)
29-
_speed = 400.0

Modules/Player/Scenes/player.tscn

Lines changed: 255 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,274 @@
1-
[gd_scene load_steps=4 format=3 uid="uid://bgowra4ubjdnq"]
1+
[gd_scene load_steps=40 format=3 uid="uid://bgowra4ubjdnq"]
22

3-
[ext_resource type="Script" path="res://Modules/Player/Scripts/Player.cs" id="1_d6hpj"]
4-
[ext_resource type="Texture2D" uid="uid://du7cgbk1wqk0g" path="res://Modules/Player/Textures/Idle.png" id="2_d6hpj"]
3+
[ext_resource type="Script" uid="uid://de61d5m60vonw" path="res://Modules/Player/Scripts/Player.cs" id="1_d6hpj"]
4+
[ext_resource type="Texture2D" uid="uid://brmg31ce6noqj" path="res://Modules/Player/Textures/d_idle.png" id="2_4itp8"]
5+
[ext_resource type="Texture2D" uid="uid://du7cgbk1wqk0g" path="res://Modules/Player/Textures/Idle.png" id="2_eeunm"]
6+
[ext_resource type="Texture2D" uid="uid://bu3wecbmouixt" path="res://Modules/Player/Textures/d_walk.png" id="2_i873j"]
7+
[ext_resource type="Texture2D" uid="uid://c31cs04ddln8k" path="res://Modules/Player/Textures/s_walk.png" id="3_bxhrv"]
8+
[ext_resource type="Texture2D" uid="uid://dpu3tffj8in05" path="res://Modules/Player/Textures/walk.png" id="3_umw3d"]
9+
[ext_resource type="Texture2D" uid="uid://dyoql8jmirecv" path="res://Modules/Player/Textures/s_idle.png" id="4_5c0ey"]
510

611
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_d6hpj"]
712
radius = 7.14285
813
height = 14.2857
914

15+
[sub_resource type="AtlasTexture" id="AtlasTexture_1r40v"]
16+
atlas = ExtResource("2_4itp8")
17+
region = Rect2(0, 0, 32, 32)
18+
19+
[sub_resource type="AtlasTexture" id="AtlasTexture_r5cpi"]
20+
atlas = ExtResource("2_4itp8")
21+
region = Rect2(32, 0, 32, 32)
22+
23+
[sub_resource type="AtlasTexture" id="AtlasTexture_elx3m"]
24+
atlas = ExtResource("2_4itp8")
25+
region = Rect2(64, 0, 32, 32)
26+
27+
[sub_resource type="AtlasTexture" id="AtlasTexture_7qqqm"]
28+
atlas = ExtResource("2_4itp8")
29+
region = Rect2(96, 0, 32, 32)
30+
31+
[sub_resource type="AtlasTexture" id="AtlasTexture_38gg7"]
32+
atlas = ExtResource("2_i873j")
33+
region = Rect2(0, 0, 32, 32)
34+
35+
[sub_resource type="AtlasTexture" id="AtlasTexture_ovo8m"]
36+
atlas = ExtResource("2_i873j")
37+
region = Rect2(32, 0, 32, 32)
38+
39+
[sub_resource type="AtlasTexture" id="AtlasTexture_1htbp"]
40+
atlas = ExtResource("2_i873j")
41+
region = Rect2(64, 0, 32, 32)
42+
43+
[sub_resource type="AtlasTexture" id="AtlasTexture_thoi2"]
44+
atlas = ExtResource("2_i873j")
45+
region = Rect2(96, 0, 32, 32)
46+
47+
[sub_resource type="AtlasTexture" id="AtlasTexture_vupln"]
48+
atlas = ExtResource("2_i873j")
49+
region = Rect2(128, 0, 32, 32)
50+
51+
[sub_resource type="AtlasTexture" id="AtlasTexture_7uxso"]
52+
atlas = ExtResource("2_i873j")
53+
region = Rect2(160, 0, 32, 32)
54+
55+
[sub_resource type="AtlasTexture" id="AtlasTexture_xl2l3"]
56+
atlas = ExtResource("4_5c0ey")
57+
region = Rect2(0, 0, 32, 32)
58+
59+
[sub_resource type="AtlasTexture" id="AtlasTexture_es2co"]
60+
atlas = ExtResource("4_5c0ey")
61+
region = Rect2(32, 0, 32, 32)
62+
63+
[sub_resource type="AtlasTexture" id="AtlasTexture_ouiya"]
64+
atlas = ExtResource("4_5c0ey")
65+
region = Rect2(64, 0, 32, 32)
66+
67+
[sub_resource type="AtlasTexture" id="AtlasTexture_8wr0b"]
68+
atlas = ExtResource("4_5c0ey")
69+
region = Rect2(96, 0, 32, 32)
70+
71+
[sub_resource type="AtlasTexture" id="AtlasTexture_vt21q"]
72+
atlas = ExtResource("3_bxhrv")
73+
region = Rect2(0, 0, 32, 32)
74+
75+
[sub_resource type="AtlasTexture" id="AtlasTexture_ux8vc"]
76+
atlas = ExtResource("3_bxhrv")
77+
region = Rect2(32, 0, 32, 32)
78+
79+
[sub_resource type="AtlasTexture" id="AtlasTexture_itme0"]
80+
atlas = ExtResource("3_bxhrv")
81+
region = Rect2(64, 0, 32, 32)
82+
83+
[sub_resource type="AtlasTexture" id="AtlasTexture_4mdx0"]
84+
atlas = ExtResource("3_bxhrv")
85+
region = Rect2(96, 0, 32, 32)
86+
87+
[sub_resource type="AtlasTexture" id="AtlasTexture_e2wdd"]
88+
atlas = ExtResource("3_bxhrv")
89+
region = Rect2(128, 0, 32, 32)
90+
91+
[sub_resource type="AtlasTexture" id="AtlasTexture_nchxu"]
92+
atlas = ExtResource("3_bxhrv")
93+
region = Rect2(160, 0, 32, 32)
94+
95+
[sub_resource type="AtlasTexture" id="AtlasTexture_eeunm"]
96+
atlas = ExtResource("2_eeunm")
97+
region = Rect2(0, 0, 32, 32)
98+
99+
[sub_resource type="AtlasTexture" id="AtlasTexture_umw3d"]
100+
atlas = ExtResource("2_eeunm")
101+
region = Rect2(32, 0, 32, 32)
102+
103+
[sub_resource type="AtlasTexture" id="AtlasTexture_bxhrv"]
104+
atlas = ExtResource("2_eeunm")
105+
region = Rect2(64, 0, 32, 32)
106+
107+
[sub_resource type="AtlasTexture" id="AtlasTexture_i873j"]
108+
atlas = ExtResource("2_eeunm")
109+
region = Rect2(96, 0, 32, 32)
110+
111+
[sub_resource type="AtlasTexture" id="AtlasTexture_2aqv7"]
112+
atlas = ExtResource("3_umw3d")
113+
region = Rect2(0, 0, 32, 32)
114+
115+
[sub_resource type="AtlasTexture" id="AtlasTexture_4itp8"]
116+
atlas = ExtResource("3_umw3d")
117+
region = Rect2(32, 0, 32, 32)
118+
119+
[sub_resource type="AtlasTexture" id="AtlasTexture_5c0ey"]
120+
atlas = ExtResource("3_umw3d")
121+
region = Rect2(64, 0, 32, 32)
122+
123+
[sub_resource type="AtlasTexture" id="AtlasTexture_h1sbb"]
124+
atlas = ExtResource("3_umw3d")
125+
region = Rect2(96, 0, 32, 32)
126+
127+
[sub_resource type="AtlasTexture" id="AtlasTexture_v47rw"]
128+
atlas = ExtResource("3_umw3d")
129+
region = Rect2(128, 0, 32, 32)
130+
131+
[sub_resource type="AtlasTexture" id="AtlasTexture_2vry4"]
132+
atlas = ExtResource("3_umw3d")
133+
region = Rect2(160, 0, 32, 32)
134+
135+
[sub_resource type="SpriteFrames" id="SpriteFrames_2aqv7"]
136+
animations = [{
137+
"frames": [{
138+
"duration": 1.0,
139+
"texture": SubResource("AtlasTexture_1r40v")
140+
}, {
141+
"duration": 1.0,
142+
"texture": SubResource("AtlasTexture_r5cpi")
143+
}, {
144+
"duration": 1.0,
145+
"texture": SubResource("AtlasTexture_elx3m")
146+
}, {
147+
"duration": 1.0,
148+
"texture": SubResource("AtlasTexture_7qqqm")
149+
}],
150+
"loop": true,
151+
"name": &"d_idle",
152+
"speed": 5.0
153+
}, {
154+
"frames": [{
155+
"duration": 1.0,
156+
"texture": SubResource("AtlasTexture_38gg7")
157+
}, {
158+
"duration": 1.0,
159+
"texture": SubResource("AtlasTexture_ovo8m")
160+
}, {
161+
"duration": 1.0,
162+
"texture": SubResource("AtlasTexture_1htbp")
163+
}, {
164+
"duration": 1.0,
165+
"texture": SubResource("AtlasTexture_thoi2")
166+
}, {
167+
"duration": 1.0,
168+
"texture": SubResource("AtlasTexture_vupln")
169+
}, {
170+
"duration": 1.0,
171+
"texture": SubResource("AtlasTexture_7uxso")
172+
}],
173+
"loop": true,
174+
"name": &"d_walk",
175+
"speed": 5.0
176+
}, {
177+
"frames": [{
178+
"duration": 1.0,
179+
"texture": SubResource("AtlasTexture_xl2l3")
180+
}, {
181+
"duration": 1.0,
182+
"texture": SubResource("AtlasTexture_es2co")
183+
}, {
184+
"duration": 1.0,
185+
"texture": SubResource("AtlasTexture_ouiya")
186+
}, {
187+
"duration": 1.0,
188+
"texture": SubResource("AtlasTexture_8wr0b")
189+
}],
190+
"loop": true,
191+
"name": &"s_idle",
192+
"speed": 5.0
193+
}, {
194+
"frames": [{
195+
"duration": 1.0,
196+
"texture": SubResource("AtlasTexture_vt21q")
197+
}, {
198+
"duration": 1.0,
199+
"texture": SubResource("AtlasTexture_ux8vc")
200+
}, {
201+
"duration": 1.0,
202+
"texture": SubResource("AtlasTexture_itme0")
203+
}, {
204+
"duration": 1.0,
205+
"texture": SubResource("AtlasTexture_4mdx0")
206+
}, {
207+
"duration": 1.0,
208+
"texture": SubResource("AtlasTexture_e2wdd")
209+
}, {
210+
"duration": 1.0,
211+
"texture": SubResource("AtlasTexture_nchxu")
212+
}],
213+
"loop": true,
214+
"name": &"s_walk",
215+
"speed": 5.0
216+
}, {
217+
"frames": [{
218+
"duration": 1.0,
219+
"texture": SubResource("AtlasTexture_eeunm")
220+
}, {
221+
"duration": 1.0,
222+
"texture": SubResource("AtlasTexture_umw3d")
223+
}, {
224+
"duration": 1.0,
225+
"texture": SubResource("AtlasTexture_bxhrv")
226+
}, {
227+
"duration": 1.0,
228+
"texture": SubResource("AtlasTexture_i873j")
229+
}],
230+
"loop": true,
231+
"name": &"u_idle",
232+
"speed": 5.0
233+
}, {
234+
"frames": [{
235+
"duration": 1.0,
236+
"texture": SubResource("AtlasTexture_2aqv7")
237+
}, {
238+
"duration": 1.0,
239+
"texture": SubResource("AtlasTexture_4itp8")
240+
}, {
241+
"duration": 1.0,
242+
"texture": SubResource("AtlasTexture_5c0ey")
243+
}, {
244+
"duration": 1.0,
245+
"texture": SubResource("AtlasTexture_h1sbb")
246+
}, {
247+
"duration": 1.0,
248+
"texture": SubResource("AtlasTexture_v47rw")
249+
}, {
250+
"duration": 1.0,
251+
"texture": SubResource("AtlasTexture_2vry4")
252+
}],
253+
"loop": true,
254+
"name": &"u_walk",
255+
"speed": 5.0
256+
}]
257+
10258
[node name="Player" type="CharacterBody2D"]
11259
physics_interpolation_mode = 1
12260
script = ExtResource("1_d6hpj")
13-
_speed = 200.0
14261

15262
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
16263
position = Vector2(8, 8)
17264
scale = Vector2(0.7, 0.7)
18265
shape = SubResource("CapsuleShape2D_d6hpj")
19266

20-
[node name="Sprite2D" type="Sprite2D" parent="."]
267+
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
21268
position = Vector2(8, 8)
22-
texture = ExtResource("2_d6hpj")
269+
sprite_frames = SubResource("SpriteFrames_2aqv7")
270+
animation = &"u_walk"
271+
frame_progress = 0.0434839
23272

24273
[node name="Camera2D" type="Camera2D" parent="."]
25274
physics_interpolation_mode = 1

0 commit comments

Comments
 (0)