Ejemplo n.º 1
0
  private PictureElement getDummyScreenElement() {
    PictureElement screenElement =
        new PictureElement(
            graphicsView.getRootDrawableElement(),
            graphicsView,
            new BitmapDrawable(
                drawActivity.getResources(),
                BitmapFactory.decodeResource(drawActivity.getResources(), R.raw.test)));

    int left = 30, top = 35;
    PixelPoint tl = (PixelPoint) screenElement.getTopLeft();
    tl.setOffsetX(left);
    tl.setOffsetY(35);
    int width = 20, height = 24;
    screenElement.setSize(width, height);

    return screenElement;
  }
Ejemplo n.º 2
0
 @Override
 protected void onPause() {
   super.onPause();
   zombieGame.createSoundPool();
 }