Android Open Source - spaceShell Menu Screen






From Project

Back to project page spaceShell.

License

The source code is released under:

MIT License

If you think the Android project spaceShell 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 fr.creationjeuxjava.screens;
/*from  w ww  .j  a  va2  s .  c  om*/
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.graphics.FPSLogger;
import com.badlogic.gdx.graphics.GL10;

import fr.creationjeuxjava.gui.MenuGui;
import fr.creationjeuxjava.spaceshell.SpaceShellGame;

//============================================================================
// Name        : MenuScreen.java from SpaceShell
// Author      : JohnCarmack
// Version     : 
// Copyright   : www.creationjeuxjava.fr !
// Description : 
// Date       : 16 fvr. 2014 at 13:26:06  
//============================================================================
public class MenuScreen implements Screen {

  SpaceShellGame game;
  FPSLogger f = new FPSLogger();
  
  /*** pour GUI ***/
  MenuGui gui;

  public MenuScreen(SpaceShellGame g) {
    game = g;
  }

  @Override
  public void render(float delta) {
     Gdx.gl.glClearColor(0, 0, 0, 1);
     Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
    
    gui.drawGui();

  }

  @Override
  public void resize(int width, int height) {
  }

  @Override
  public void show() {
    Gdx.app.log("MenuScreen", "Dans le Menu");
    gui = new MenuGui();

  }


  @Override
  public void hide() {
  }

  @Override
  public void pause() {
  }

  @Override
  public void resume() {
  }

  @Override
  public void dispose() {
  }

}




Java Source Code List

fr.creationjeuxjava.gui.MenuGui.java
fr.creationjeuxjava.screens.AbstractScreen.java
fr.creationjeuxjava.screens.MenuScreen.java
fr.creationjeuxjava.screens.OpenGLTriangleScreen.java
fr.creationjeuxjava.screens.SplashScreen.java
fr.creationjeuxjava.spaceshell.MainActivity.java
fr.creationjeuxjava.spaceshell.Main.java
fr.creationjeuxjava.spaceshell.MeshCreator.java
fr.creationjeuxjava.spaceshell.RobovmLauncher.java
fr.creationjeuxjava.spaceshell.SpaceShellGame.java
fr.creationjeuxjava.spaceshell.client.GwtLauncher.java
fr.creationjeuxjava.tweenAccessors.SpriteTween.java