UNPKG
@slippi/slippi-js
Version:
latest (9.1.2)
next (5.1.0-beta.4)
9.1.2
9.1.1
9.1.0
9.0.0
8.0.2
8.0.1
8.0.0
7.2.0
7.1.0
7.0.1
7.0.0
6.7.0
6.6.1
6.6.0
6.5.0
6.4.0
6.3.0
6.2.1
6.2.0
6.1.3
6.1.2
6.1.1
6.1.0
6.0.1
6.0.0
5.1.1
5.1.0
5.1.0-beta.4
5.1.0-beta.3
5.1.0-beta.2
5.1.0-beta.1
5.1.0-beta.0
5.0.7
5.0.6
5.0.5
5.0.4
5.0.3
5.0.2
5.0.1
5.0.0
Official Project Slippi Javascript SDK
github.com/project-slippi/slippi-js
project-slippi/slippi-js
@slippi/slippi-js
/
dist
/
common
/
melee
/
animationUtils.esm.js
19 lines
(17 loc)
•
375 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// eslint-disable-next-line
function
getDeathDirection
(
actionStateId
) {
if
(actionStateId >
0xa
) {
return
undefined
; }
switch
(actionStateId) {
case
0
:
return
"down"
;
case
1
:
return
"left"
;
case
2
:
return
"right"
;
default
:
return
"up"
; } }
export
{ getDeathDirection };