Fixed Sprite bound bug
This commit is contained in:
parent
d6f8cb59c9
commit
d4500175a6
3 changed files with 4 additions and 6 deletions
|
|
@ -124,7 +124,7 @@ public class Box extends Entity{
|
|||
return new Rectangle(
|
||||
(int)getLocation().getX(),
|
||||
(int)getLocation().getY(),
|
||||
texture.getImageWidth(),
|
||||
texture.getImageHeight());
|
||||
(int)size.getX(),
|
||||
(int)size.getY());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -133,8 +133,8 @@ public class Sprite extends Entity {
|
|||
return new Rectangle(
|
||||
(int)getLocation().getX(),
|
||||
(int)getLocation().getY(),
|
||||
texture.getImageWidth(),
|
||||
texture.getImageHeight());
|
||||
(int)size.getX(),
|
||||
(int)size.getY());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,8 +1,6 @@
|
|||
package ei.engine.test;
|
||||
|
||||
import ei.engine.LWJGLGameWindow;
|
||||
import ei.engine.effects.Particles;
|
||||
import ei.engine.math.Vector2f;
|
||||
import ei.engine.math.Vector3f;
|
||||
import ei.engine.math.Vector4f;
|
||||
import ei.engine.scene.Box;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue