@@ -0,0 +1,1726 @@
+package xyz.juanes.atakingos.ui;%0A%0Aimport android.util.Log;%0A%0Apublic class AtakingosLayer%0A%7B%0A  //Default width%0A  public static int def_width = 400;%0A%0A  //Default height (only for landscape)%0A  public static int def_height = 400;%0A%0A  //Screen width and height%0A  public static int width, height;%0A%0A  //Scale%0A  public static float scale;%0A%0A  //Game zone class%0A  public static class zone%0A  %7B%0A    //Zone positions%0A    public static int width, height, px, py;%0A  %7D%0A%0A  //Game background class%0A  public static class background%0A  %7B%0A    //background positions%0A    public static int width, height, px, py;%0A  %7D%0A%0A  //Constructor%0A  public static void init(int w, int h, String mode)%0A  %7B%0A    //Save the game width%0A    width = w;%0A%0A    //Save the game height%0A    height = h;%0A%0A    //Calculate the game scale%0A    scale = (mode.equals(%22landscape%22)) ? (float) height / def_height : (float) width / def_width;%0A%0A    //Display in console%0A    Log.i(%22Blocks Scale%22, scale + %22%22);%0A%0A    //Zone width%0A    zone.width = (mode.equals(%22landscape%22)) ? (int)(450 * scale) : (int)(350 * scale);%0A%0A    //Zone height%0A    zone.height = (mode.equals(%22landscape%22)) ? (int)(350 * scale) : (int)(450 * scale);%0A%0A    //Background width%0A    background.width = (mode.equals(%22landscape%22)) ? (int)(800 * scale) : (int)(400 * scale);%0A%0A    //Background height%0A    background.height = (mode.equals(%22landscape%22)) ? (int)(400 * scale) : (int)(800 * scale);%0A%0A    //Zone position x%0A    zone.px = (int)(width / 2 - zone.width / 2);%0A%0A    //Zone position y%0A    zone.py = (int)(height / 2 - zone.height / 2);%0A%0A    //Background position x%0A    background.px = (int)(width / 2 - background.width / 2);%0A%0A    //Background position y%0A    background.py = (int)(height / 2 - background.height / 2);%0A  %7D%0A%7D%0A

Initialize the game layer definitions