Android Open Source - NGAWWH Char Game Page






From Project

Back to project page NGAWWH.

License

The source code is released under:

GNU General Public License

If you think the Android project NGAWWH listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.me.ngawwh;
//w w w.  j a v a 2  s. c o  m
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.graphics.GL10;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.Texture.TextureFilter;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;

public class CharGamePage implements Screen{
  private OrthographicCamera camera;
  private Texture textureInfoChar;
  private SpriteBatch b;
  private MainGame MG;
  private Loader load;
  
  private boolean isLoaded = false;
  
  public CharGamePage(){}
  
  public boolean isLoad(){
    return isLoaded;
  }
  
  public void load(MainGame mg, OrthographicCamera camera, Loader load){
    this.camera = camera;
    camera.update();
    this.load = load;
    b = load.b;
    b.setProjectionMatrix(camera.combined);
    textureInfoChar = load.manager.get("data/backgroundquestmenu.png",Texture.class);
    isLoaded = true;
  }

  @Override
  public void render(float delta) {
    Gdx.gl.glClearColor(0, 0, 0, 1);
    Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
    b.begin();
    b.draw(textureInfoChar,0,0,Gdx.graphics.getWidth(),Gdx.graphics.getHeight());
    b.end();
    
  }

  @Override
  public void resize(int width, int height) {
    // TODO Auto-generated method stub
    
  }

  @Override
  public void show() {
    // TODO Auto-generated method stub
    
  }

  @Override
  public void hide() {
    // TODO Auto-generated method stub
    
  }

  @Override
  public void pause() {
    // TODO Auto-generated method stub
    
  }

  @Override
  public void resume() {
    // TODO Auto-generated method stub
  }

  @Override
  public void dispose() {
    // TODO Auto-generated method stub
    
  }

}




Java Source Code List

com.me.ngawwh.CharGamePage.java
com.me.ngawwh.ConfGamePage.java
com.me.ngawwh.InvGamePage.java
com.me.ngawwh.Loader.java
com.me.ngawwh.MainActivity.java
com.me.ngawwh.MainGamePage.java
com.me.ngawwh.MainGame.java
com.me.ngawwh.Main.java
com.me.ngawwh.MapGamePage.java
com.me.ngawwh.MiniGamePage.java
com.me.ngawwh.QuestGamePage.java
com.me.ngawwh.QuestSelGamePage.java
com.me.ngawwh.Quest.java
com.me.ngawwh.StartGamePage.java
com.me.ngawwh.StylistGamePage.java