4
0
Fork 0

direction joueur

This commit is contained in:
sOlaris38 2020-12-05 14:27:37 +01:00
parent 4e98986533
commit 3e16da1598

View file

@ -18,6 +18,10 @@ seDeplace = (deplaceHorizontal != 0 or deplaceVertical != 0);
// Animation des sprites
if (seDeplace) {
if (deplaceHorizontal = 0) {
if (deplaceVertical = 1) image_index = 0;
else image_index = 2;
}
else if (deplaceHorizontal = 1) image_index = 1;
else image_index = 3;
}