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

Merge branch 'player' into main

parents 4e43daa7 294e870c
Branches
No related tags found
No related merge requests found
No preview for this file type
...@@ -8,7 +8,7 @@ void initPlayer(){ ...@@ -8,7 +8,7 @@ void initPlayer(){
player.y = 0; player.y = 0;
player.w = CELLSIZE*0.8; player.w = CELLSIZE*0.8;
player.h = CELLSIZE*0.8; player.h = CELLSIZE*0.8;
player.waterLevel = 0; player.waterLevel = 3;
player.speed = 1; player.speed = 1;
player.isMoving = 0; player.isMoving = 0;
} }
...@@ -134,5 +134,9 @@ int selectStateHover(){ ...@@ -134,5 +134,9 @@ int selectStateHover(){
} }
void pourWater(){
player.waterLevel = player.waterLevel - 1;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment