Android Open Source - AndriyVoronaSpaceAttack M Screen






From Project

Back to project page AndriyVoronaSpaceAttack.

License

The source code is released under:

GNU General Public License

If you think the Android project AndriyVoronaSpaceAttack 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.vorona.game;
//from   w w w.  j a  v a  2 s  .c  o m
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.utils.viewport.ScalingViewport;

public class MScreen implements Screen{
  
  VoronaGame vGame;
  
  Stage stage;
  
  Assets assets;
  FontWriter fontWriter = new FontWriter(20);
    
  public MScreen(VoronaGame game, OrthographicCamera camera, int width, int height, Assets assets, ScalingViewport view){
    
    stage = new Stage(view);
    
    this.assets = assets;

    assets.addStage(stage);
    assets.createMenuScreen();
    
  }

  @Override
  public void render(float delta) {
    // TODO Auto-generated method stub
    Gdx.gl.glClearColor(0, 0, 0, 1);
    Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
    
    stage.act(delta);
    stage.draw();
    
    
    
  }

  @Override
  public void resize(int width, int height) {
    // TODO Auto-generated method stub
    
  }

  @Override
  public void show() {
    // TODO Auto-generated method stub
    Gdx.input.setInputProcessor(stage);
    assets.addStage(stage);
    assets.showMenuScreen();
  }

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

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

  }

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

  @Override
  public void dispose() {
    // TODO Auto-generated method stub
    stage.dispose();
  }

}




Java Source Code List

com.vorona.game.AScreen.java
com.vorona.game.Assets.java
com.vorona.game.DScreen.java
com.vorona.game.FontWriter.java
com.vorona.game.GScreen.java
com.vorona.game.LScreen.java
com.vorona.game.MScreen.java
com.vorona.game.VoronaGame.java
com.vorona.game.WScreen.java
com.vorona.game.WaitTimer.java
com.vorona.game.android.AndroidLauncher.java
com.vorona.game.desktop.DesktopLauncher.java