Android Open Source - things-fall-down Loading Scene






From Project

Back to project page things-fall-down.

License

The source code is released under:

MIT License

If you think the Android project things-fall-down 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.github.thingsfalldown.scene;
/*from  www .j  a v a 2s .  c o m*/
import org.andengine.entity.scene.background.Background;
import org.andengine.entity.text.Text;
import org.andengine.util.adt.color.Color;

import com.github.thingsfalldown.manager.SceneManager.SceneType;
import com.github.thingsfalldown.template.TemplateScene;

/**
 * LoadingScene is our loading screen we show in between screens.
 */
public class LoadingScene extends TemplateScene {

  @Override
  public void createScene() {
    setBackground(new Background(Color.BLACK));
    attachChild(new Text(SCREEN_SIZE_X / 2, SCREEN_SIZE_Y / 2, resourceManager.bigfont, "Mark Sakauye and Susana Font present...", vbom));
  }

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

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

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

  }

}




Java Source Code List

com.github.thingsfalldown.ThingsFallDownActivity.java
com.github.thingsfalldown.manager.ResourceManager.java
com.github.thingsfalldown.manager.SceneManager.java
com.github.thingsfalldown.scene.GameScene.java
com.github.thingsfalldown.scene.LoadingScene.java
com.github.thingsfalldown.scene.LogoScene.java
com.github.thingsfalldown.scene.MainMenuScene.java
com.github.thingsfalldown.template.TemplateScene.java