Android Open Source - AndroidShooter Help Screen






From Project

Back to project page AndroidShooter.

License

The source code is released under:

GNU General Public License

If you think the Android project AndroidShooter 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 jonathan.geoffroy.shooter.view.utils;
// w ww  . j  a v  a2 s  .  c  om
import java.util.ArrayList;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.assets.AssetDescriptor;

public abstract class HelpScreen implements Screen {
  protected static App app;
  private boolean hasInit;
  protected static float width, height;

  @Override
  public void show() {
    App.loadAssets(getAssetDescriptors());
  }

  @Override
  public void resume() {
    App.loadAssets(getAssetDescriptors());    
  }

  @Override
  public void dispose() {
    App.clearAssets();
  }

  public abstract ArrayList<AssetDescriptor<Object>> getAssetDescriptors();
  protected abstract void onEndLoaded();

  public static void initialize(App app) {
    HelpScreen.app = app;
    width = Gdx.graphics.getWidth();
    height = Gdx.graphics.getHeight();
  }

  @Override
  public void render(float delta) {
    if(App.hasLoaded()) {
      if(!hasInit) {
        hasInit = true;
        onEndLoaded();
      }
      draw(delta);
    }
    else {
      drawLoader();
    }
  }

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

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

  public abstract void draw(float delta);
  
  public static App getApp() {
    return app;
  }

  public static void setApp(App app) {
    HelpScreen.app = app;
  }

}




Java Source Code List

jonathan.geoffroy.shooter.MainActivity.java
jonathan.geoffroy.shooter.Main.java
jonathan.geoffroy.shooter.Shooter.java
jonathan.geoffroy.shooter.model.Bullet.java
jonathan.geoffroy.shooter.model.Map.java
jonathan.geoffroy.shooter.model.characters.Character.java
jonathan.geoffroy.shooter.model.characters.Coord2F.java
jonathan.geoffroy.shooter.view.actors.CharacterActor.java
jonathan.geoffroy.shooter.view.actors.JoystickActor.java
jonathan.geoffroy.shooter.view.actors.MapActor.java
jonathan.geoffroy.shooter.view.screens.GameScreen.java
jonathan.geoffroy.shooter.view.screens.LevelScreen.java
jonathan.geoffroy.shooter.view.screens.MainMenuScreen.java
jonathan.geoffroy.shooter.view.utils.App.java
jonathan.geoffroy.shooter.view.utils.HelpScreen.java
jonathan.geoffroy.shooter.view.utils.ListActor.java
jonathan.geoffroy.shooter.view.utils.StageScreen.java
jonathan.geoffroy.shooter.view.utils.TableActor.java
jonathan.geoffroy.shooter.view.utils.WallpaperActor.java