Back to project page MoonMiner.
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.
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(); } }