Android Open Source - things-fall-down Logo 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;
//w ww  .jav  a  2  s  .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;

/**
 * LogoScene is our logo(s) screen.
 */
public class LogoScene extends TemplateScene {

  /* (non-Javadoc)
   * @see com.github.thingsfalldown.template.TemplateScene#createScene()
   */
  @Override
  public void createScene() {
    setBackground(new Background(Color.BLACK));
    attachChild(new Text(SCREEN_SIZE_X / 2, SCREEN_SIZE_Y / 2, resourceManager.bigfont, "Mark Sakauye\nand\nSusana Fong\npresent...", vbom));
  }

  /* (non-Javadoc)
   * @see com.github.thingsfalldown.template.TemplateScene#onBackKeyPressed()
   */
  @Override
  public void onBackKeyPressed() {
    
  }
  
  /* (non-Javadoc)
   * @see com.github.thingsfalldown.template.TemplateScene#getSceneType()
   */
  @Override
  public SceneType getSceneType() {
    return SceneType.SCENE_LOGO;
  }

  /* (non-Javadoc)
   * @see com.github.thingsfalldown.template.TemplateScene#disposeScene()
   */
  @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