Skip to content
Snippets Groups Projects
Commit d02821cb authored by timeo's avatar timeo
Browse files

ajout texture water

parent 7d17a7d5
No related branches found
No related tags found
1 merge request!1Restart
android/assets/Water.png

7.23 KiB

......@@ -172,7 +172,7 @@ public class Play extends GameState {
batch.setProjectionMatrix(b2dCam.combined);
batch.begin();
drawWorld();
batch.draw(res.getTexture("idle_001"), player.getPosition().x - 5f/PPM, player.getPosition().y - 2f/PPM, 1/10f, 1/10f);
batch.draw(res.getTexture("idle_000"), player.getPosition().x - 5f/PPM, player.getPosition().y - 2f/PPM, 1/10f, 1/10f);
batch.end();
//dessine le monde box2d
b2dr.render(world, b2dCam.combined);
......@@ -365,6 +365,9 @@ public class Play extends GameState {
break;
case 'Z':
batch.draw(res.getTexture("exit"), (j*10)/PPM, ((hauteur-i) * 10)/PPM, 1/10f, 1/10f);
break;
case 'W':
batch.draw(res.getTexture("water"), (j*10)/PPM, ((hauteur-i)*10)/PPM, 1/10f, 1/10f);
}
}
......@@ -388,7 +391,8 @@ public class Play extends GameState {
res.loadTexture("Brick_I.png", "brickI");
res.loadTexture("Exit_Z.png", "exit");
res.loadTexture("Back.png", "back");
res.loadTexture("Idle__000.png", "idle_001");
res.loadTexture("Idle__000.png", "idle_000");
res.loadTexture("Water.png", "water");
//res.getTexture("platJ");
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment