Exemplo n.º 1
0
 public void create(
     Scene scene, int left, int top, int positionx, int positionY, TiledTextureRegion region) {
   position.x = positionx;
   position.y = positionY;
   int with = region.getWidth() / 2;
   int height = region.getHeight();
   backgroud =
       new AnimatedSprite(left + positionx * with, top + positionY * height, region.deepCopy());
   scene.attachChild(backgroud);
 }
Exemplo n.º 2
0
 public GameObject(float x, float y, TiledTextureRegion texture) {
   super(x, y, texture.getWidth(), texture.getHeight(), texture);
 }