Exemplo n.º 1
0
 public LGameAndroid2DView(LGameAndroid2DActivity activity, boolean isLandscape, LMode mode) {
   super(activity.getApplicationContext());
   try {
     LSystem.setupHandler(activity, this, isLandscape, mode);
     this.handler = LSystem.getSystemHandler();
     this.handler.initScreen();
     this.activity = handler.getLGameActivity();
     this.setFPS(LSystem.DEFAULT_MAX_FPS);
     this.createScreen();
   } catch (Exception e) {
   }
 }
Exemplo n.º 2
0
 public Sprites() {
   this.visible = true;
   this.width = LSystem.getSystemHandler().getWidth();
   this.height = LSystem.getSystemHandler().getHeight();
   this.sprites = new ISprite[capacity];
 }