Skip to content
Snippets Groups Projects
Commit 06e075a6 authored by Le-Bao-Tin.Ha's avatar Le-Bao-Tin.Ha
Browse files

ver 0.85

parent 7b986dcf
No related branches found
No related tags found
4 merge requests!8Modele,!7Modele,!6Modele,!5Modele Version 1
GAME/cmake-build-debug/ressource/man.png

103 KiB | W: | H:

GAME/cmake-build-debug/ressource/man.png

100 KiB | W: | H:

GAME/cmake-build-debug/ressource/man.png
GAME/cmake-build-debug/ressource/man.png
GAME/cmake-build-debug/ressource/man.png
GAME/cmake-build-debug/ressource/man.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -16,25 +16,25 @@ int testposition(Personnage * pers, Prof * prof, DS * exam, MAP * map, int up,in
int x_A=0,x_B=0,y_A=0,y_B=0;
//calculer les points
if (up && !down) {
if (up && !down && !right && !left) {
x_A= pers->x_pers;
y_A = pers->y_pers;
x_B = pers->x_pers + pers->larg_pers;
y_B = pers->y_pers;
}
if (down && !up) {
if (!up && down && !right && !left) {
x_A= pers->x_pers;
y_A = pers->y_pers + pers->long_pers;
x_B = pers->x_pers + pers->larg_pers;
y_B = pers->y_pers + pers->long_pers;
}
if (left && !right) {
if (!up && !down && !right && left) {
x_A= pers->x_pers;
y_A = pers->y_pers;
x_B= pers->x_pers;
y_B = pers->y_pers + pers->long_pers;
}
if (right && !left) {
if (!up && !down && right && !left) {
x_A = pers->x_pers + pers->larg_pers;
y_A = pers->y_pers;
x_B = pers->x_pers + pers->larg_pers;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment