Skip to content
Snippets Groups Projects
Commit cc2f6795 authored by antoinemeyer5's avatar antoinemeyer5
Browse files

collisions avec water

parent 19e0df97
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,10 @@ int collisionsLeftPlayer(){
if(dotTopLeft==1 || dotDownLeft==1){
collision = 1;
}
//collision water
if(dotTopLeft==2 || dotDownLeft==2){
collision = 1;
}
return collision;
}
......@@ -48,6 +51,10 @@ int collisionsRightPlayer(){
if(dotTopRight==1 || dotDownRight==1){
collision = 1;
}
//collision water
if(dotTopRight==2 || dotDownRight==2){
collision = 1;
}
return collision;
}
......@@ -63,6 +70,10 @@ int collisionsUpPlayer(){
if(dotTopRight==1 || dotTopLeft==1){
collision = 1;
}
//collision water
if(dotTopRight==2 || dotTopLeft==2){
collision = 1;
}
return collision;
}
......@@ -78,6 +89,10 @@ int collisionsDownPlayer(){
if(dotDownRight==1 || dotDownLeft==1){
collision = 1;
}
//collision water
if(dotDownRight==2 || dotDownLeft==2){
collision = 1;
}
return collision;
}
......
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