Skip to content
Snippets Groups Projects
Commit e21096a7 authored by Villard PierreFrederic's avatar Villard PierreFrederic
Browse files

Remove a bug stopping the background to move without the subjective view

parent ae503abb
No related branches found
No related tags found
No related merge requests found
......@@ -49,6 +49,8 @@ public class DecorVariable {
//declae en x seulement
public void affiche(int x,Graphics g)
{
if (Repere.isSubjective)
{
//on se ramene au repere du plan
x=(x%wx);
......@@ -57,6 +59,10 @@ public class DecorVariable {
//on affiche sur l'ecran wx-x ==> wx image source de 0 � x
g.drawImage(im, wx-x ,0 , wx, wy, 0, 0, x, wy,null);
}
else{
g.drawImage(im,0 ,0 , wx, wy, 0, 0, wx, wy,null);
}
}
......
......@@ -97,7 +97,7 @@ public class testMario {
// Change l'image de fond
affiche.decor.changeImage("background2.jpg");
// Passage à une vue non subjective
Repere.isSubjective=true;
Repere.isSubjective=false;
// Test to change the image
//monMonde.balle.sprites.assignNewImage("hero2.png");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment