direction joueur
This commit is contained in:
parent
4e98986533
commit
3e16da1598
1 changed files with 6 additions and 2 deletions
|
@ -18,6 +18,10 @@ seDeplace = (deplaceHorizontal != 0 or deplaceVertical != 0);
|
||||||
// Animation des sprites
|
// Animation des sprites
|
||||||
|
|
||||||
if (seDeplace) {
|
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;
|
||||||
}
|
}
|
Reference in a new issue