Back to project page AndriyVoronaSpaceAttack.
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.
package com.vorona.game; //w w w .j av a 2 s . c om 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 AScreen implements Screen { VoronaGame vGame; Stage stage; Assets assets; public AScreen(VoronaGame game, OrthographicCamera camera, int width, int height, Assets assets, ScalingViewport view){ stage = new Stage(view); this.assets = assets; assets.addStage(stage); assets.createAboutScreen(); } @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.showAboutScreen(); } @Override public void hide() { } @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(); } }