Examples of Screen


Examples of ca.vanzeben.game.gfx.Screen

                    colours[index++] = rr << 16 | gg << 8 | bb;
                }
            }
        }
        screen = new Screen(WIDTH, HEIGHT, new SpriteSheet("/sprite_sheet.png"));
        input = new InputHandler(this);
        level = new Level("/levels/water_test_level.png");
        player = new PlayerMP(level, 100, 100, input, JOptionPane.showInputDialog(this, "Please enter a username"),
                null, -1);
        level.addEntity(player);
View Full Code Here

Examples of com.android.sdklib.devices.Screen

     * @return the config
     */
    @SuppressWarnings("SuspiciousNameCombination") // Deliberately swapping orientations
    @NonNull
    public HardwareConfig getConfig() {
        Screen screen = mDevice.getDefaultHardware().getScreen();

        // compute width and height to take orientation into account.
        int x = screen.getXDimension();
        int y = screen.getYDimension();
        int width, height;

        if (x > y) {
            if (mScreenOrientation == ScreenOrientation.LANDSCAPE) {
                width = x;
                height = y;
            } else {
                width = y;
                height = x;
            }
        } else {
            if (mScreenOrientation == ScreenOrientation.LANDSCAPE) {
                width = y;
                height = x;
            } else {
                width = x;
                height = y;
            }
        }

        if (mOverrideRenderHeight != -1) {
            width = mOverrideRenderWidth;
        }

        if (mOverrideRenderHeight != -1) {
            height = mOverrideRenderHeight;
        }

        if (mMaxRenderWidth != -1) {
            width = mMaxRenderWidth;
        }

        if (mMaxRenderHeight != -1) {
            height = mMaxRenderHeight;
        }

        return new HardwareConfig(
                width,
                height,
                screen.getPixelDensity(),
                (float) screen.getXdpi(),
                (float) screen.getYdpi(),
                screen.getSize(),
                mScreenOrientation,
                mDevice.getDefaultHardware().getButtonType() == ButtonType.SOFT);
    }
View Full Code Here

Examples of com.badlogic.gdx.Screen

    public static final int GAME_VIEWPORT_WIDTH = 1920, GAME_VIEWPORT_HEIGHT = 1080;

    @Override
    public void create() {
        setScreen(new Screen() {

            private final Stage stage = new Stage(new StretchViewport(GAME_VIEWPORT_WIDTH, GAME_VIEWPORT_HEIGHT));
            private final BitmapFont bitmapFont = new BitmapFont();
            private final Label fps = new Label("", new Label.LabelStyle(bitmapFont, Color.WHITE));
            private final Road road = new Road();
View Full Code Here

Examples of com.daikit.daikit4gxt.client.screen.Screen

      private boolean firstCall = true;

      @Override
      protected void run()
      {
        final Screen currentScreen = DkMain.controller().getCurrentScreen();
        // if there is no screen displayed or if the screen to display is not the same than the current screen.
        if (currentScreen == null || !currentScreen.getClass().getName().equals(clazz.getName()))
        {
          if (firstCall && !DkMain.controller().onBeforeScreenLeft(this))
          {
            BaseShowScreenAction.log.debug("[BaseShowScreenAction Screen {"
                + (currentScreen == null ? "null" : currentScreen.getClass().getName()) + "} can't be left.]");
            firstCall = false;
            this.stopChain();
          }
          else
          {
            // there we verify that the screen to show is not already created and stored in the
            // MainController screens map. If it is not , a new one is created.
            final Screen toShow = DkMain.controller().getScreenInstance(clazz);
            final SimpleContainer screenContainerPanel = DkMain.controller().getGui().getScreenContainerPanel();
            if (currentScreen == null || screenContainerPanel.remove(currentScreen))
            {
              DkMain.controller().setCurrentScreen(null);
              if (currentScreen != null)
              {
                BaseShowScreenAction.log.debug("[BaseShowScreenAction Screen {" + currentScreen.getClass().getName()
                    + "} Closed]");
              }
              screenContainerPanel.add(toShow);
              DkMain.controller().setPreviousScreen(currentScreen);
              DkMain.controller().setCurrentScreen(toShow);
              DkMain.controller().setScreenDisplayId(DkIdGenerator.generateRandomId(10));
              DkMain.controller().onScreenBeforeShow(currentScreen, optionalArgs);
              screenContainerPanel.forceLayout();
              BaseShowScreenAction.log.debug("[BaseShowScreenAction Screen {" + toShow.getClass().getName()
                  + "} Displayed (layout forced)]");
            }
            else
            {
              BaseShowScreenAction.log.warn("[BaseShowScreenAction Screen {" + clazz.getName() + "} NOT Removable]");
View Full Code Here

Examples of com.google.gerrit.client.ui.Screen

  private static Screen mine(final String token) {
    if (Gerrit.isSignedIn()) {
      return new AccountDashboardScreen(Gerrit.getUserAccount().getId());

    } else {
      Screen r = new AccountDashboardScreen(null);
      r.setRequiresSignIn(true);
      return r;
    }
  }
View Full Code Here

Examples of com.jogamp.newt.Screen

        GLProfile.initSingleton(true);

        Display display = NewtFactory.createDisplay(null); // local display
        assertNotNull(display);

        Screen screen  = NewtFactory.createScreen(display, 0); // screen 0
        assertNotNull(screen);

        window = NewtFactory.createWindow(screen, new GLCapabilities(GLProfile.getDefault()));
        assertNotNull(window);
View Full Code Here

Examples of com.kgrwhite.cyrene.graphics.Screen

  private int[] pixels = ((DataBufferInt)image.getRaster().getDataBuffer()).getData();
 
  public Game(){
    Dimension size = new Dimension(width * scale, height * scale);
    setPreferredSize(size);
    screen = new Screen(width, height);
   
    frame = new JFrame();
   
  }
View Full Code Here

Examples of com.mime.minefront.graphics.Screen

    Dimension size = new Dimension(width, height);
    setPreferredSize(size);
    setMinimumSize(size);
    setMaximumSize(size);

    screen = new Screen(width, height);
    game = new Game();
    img = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
    pixels = ((DataBufferInt) img.getRaster().getDataBuffer()).getData();
   
    try {
View Full Code Here

Examples of com.mojang.escape.gui.Screen

    setPreferredSize(size);
    setMinimumSize(size);
    setMaximumSize(size);

    game = new Game();
    screen = new Screen(WIDTH, HEIGHT);

    img = new BufferedImage(WIDTH, HEIGHT, BufferedImage.TYPE_INT_RGB);
    pixels = ((DataBufferInt) img.getRaster().getDataBuffer()).getData();

    inputHandler = new InputHandler();
View Full Code Here

Examples of com.mojang.ld22.gfx.Screen

        }
      }
    }
    try {
      screen = new Screen(WIDTH, HEIGHT, new SpriteSheet(ImageIO.read(Game.class.getResourceAsStream("/icons.png"))));
      lightScreen = new Screen(WIDTH, HEIGHT, new SpriteSheet(ImageIO.read(Game.class.getResourceAsStream("/icons.png"))));
    } catch (IOException e) {
      e.printStackTrace();
    }

    resetGame();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.