Android Open Source - MoonMiner Splash Scene






From Project

Back to project page MoonMiner.

License

The source code is released under:

MIT License

If you think the Android project MoonMiner 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.lhbdev.moonminer.scene;
// www.  j  a va  2  s . c  o m
import org.andengine.engine.camera.Camera;
import org.andengine.entity.sprite.Sprite;
import org.andengine.opengl.util.GLState;

import com.lhbdev.moonminer.base.BaseScene;
import com.lhbdev.moonminer.manager.SceneManager.SceneType;


public class SplashScene extends BaseScene
{

  private Sprite splash;
  
  @Override
  public void createScene() 
  {
    splash = new Sprite(0,0,resourcesManager.splash_region, vbom)
    {
      @Override
      protected void preDraw(GLState pGLState, Camera pCamera)
      {
        super.preDraw(pGLState, pCamera);
        pGLState.enableDither();
      }
    };
    splash.setScale(1.5f);
    splash.setPosition(400, 240);
    attachChild(splash);
  }

  @Override
  public void onBackKeyPressed() 
  {
    
  }

  @Override
  public SceneType getSceneType() 
  {
    return SceneType.SCENE_SPLASH;
  }

  @Override
  public void disposeScene() 
  {
    splash.detachSelf();
    splash.dispose();
    this.detachSelf();
    this.dispose();
  }
  
}




Java Source Code List

com.lhbdev.moonminer2.MainActivity.java
com.lhbdev.moonminer.base.BaseScene.java
com.lhbdev.moonminer.manager.ResourcesManager.java
com.lhbdev.moonminer.manager.SceneManager.java
com.lhbdev.moonminer.object.Dpad.java
com.lhbdev.moonminer.object.Player.java
com.lhbdev.moonminer.scene.GameScene.java
com.lhbdev.moonminer.scene.LoadingScene.java
com.lhbdev.moonminer.scene.MainMenuScene.java
com.lhbdev.moonminer.scene.SplashScene.java