Package com.thecherno.cherno.engine.graphics

Examples of com.thecherno.cherno.engine.graphics.Color


  protected void render() {
    clear(Color.WHITE);
    if (State.getState() == State.GAME) {
      render(0, 0, test);
    } else if (State.getState() == State.MENU) {
      fillRect(0, 0, 960, 540, new Color(0xff00ff));
      screen.render(mx, my, grass);
      menu.render(50, 50, screen);
    }
    show();
  }
View Full Code Here


  public int[] getPixels() {
    return null;
  }

  public void render(int x, int y, Screen screen) {
    Color color = Color.WHITE;
    for (int i = 0; i < options.length; i++) {
      if (selected == i) color = new Color(0x444444);
      else color = Color.ORANGE;
      screen.drawString(options[i].getTitle(), x, y + i * 44, font, color);
    }
  }
View Full Code Here

TOP

Related Classes of com.thecherno.cherno.engine.graphics.Color

Copyright © 2018 www.massapicom. 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.