Skip to content

Commit ce1b1cf

Browse files
committed
Added variable ray casts based on action
1 parent 1290e85 commit ce1b1cf

36 files changed

+2720
-973
lines changed

example/grottoescape/assets/enemies.tilesource renamed to example/assets/enemies.tilesource

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
image: "/example/grottoescape/assets/images/enemies.png"
1+
image: "/example/assets/images/enemies.png"
22
tile_width: 16
33
tile_height: 16
44
tile_margin: 0
55
tile_spacing: 0
6-
collision: "/example/grottoescape/assets/images/enemies.png"
6+
collision: "/example/assets/images/enemies.png"
77
material_tag: "tile"
88
convex_hulls {
99
index: 0
@@ -95,3 +95,4 @@ animations {
9595
}
9696
extrude_borders: 2
9797
inner_padding: 0
98+
sprite_trim_mode: SPRITE_TRIM_MODE_OFF
4.22 KB
Loading

example/assets/images/tiles.png

2.9 KB
Loading

example/grottoescape/assets/player.tilesource renamed to example/assets/player.tilesource

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
image: "/example/grottoescape/assets/images/player.png"
1+
image: "/example/assets/images/player.png"
22
tile_width: 16
33
tile_height: 16
44
tile_margin: 0
55
tile_spacing: 0
6-
collision: "/example/grottoescape/assets/images/player.png"
6+
collision: "/example/assets/images/player.png"
77
material_tag: "tile"
88
convex_hulls {
99
index: 0
@@ -65,6 +65,26 @@ convex_hulls {
6565
count: 0
6666
collision_group: ""
6767
}
68+
convex_hulls {
69+
index: 85
70+
count: 8
71+
collision_group: ""
72+
}
73+
convex_hulls {
74+
index: 93
75+
count: 8
76+
collision_group: ""
77+
}
78+
convex_hulls {
79+
index: 101
80+
count: 8
81+
collision_group: ""
82+
}
83+
convex_hulls {
84+
index: 109
85+
count: 0
86+
collision_group: ""
87+
}
6888
collision_groups: "player"
6989
animations {
7090
id: "climb"
@@ -84,6 +104,33 @@ animations {
84104
flip_horizontal: 0
85105
flip_vertical: 0
86106
}
107+
animations {
108+
id: "crouch"
109+
start_tile: 13
110+
end_tile: 15
111+
playback: PLAYBACK_LOOP_PINGPONG
112+
fps: 5
113+
flip_horizontal: 0
114+
flip_vertical: 0
115+
}
116+
animations {
117+
id: "crouch_idle"
118+
start_tile: 13
119+
end_tile: 13
120+
playback: PLAYBACK_NONE
121+
fps: 1
122+
flip_horizontal: 0
123+
flip_vertical: 0
124+
}
125+
animations {
126+
id: "fall"
127+
start_tile: 5
128+
end_tile: 5
129+
playback: PLAYBACK_ONCE_FORWARD
130+
fps: 30
131+
flip_horizontal: 0
132+
flip_vertical: 0
133+
}
87134
animations {
88135
id: "idle"
89136
start_tile: 6

0 commit comments

Comments
 (0)