Back to project page Castle-Invaders.
The source code is released under:
GNU General Public License
If you think the Android project Castle-Invaders 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.noobygames.castleinvaders.screens; //from w ww . j a v a2 s .c o m import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Screen; import com.badlogic.gdx.graphics.OrthographicCamera; import com.badlogic.gdx.math.Rectangle; import com.badlogic.gdx.math.Vector3; import com.noobygames.castleinvaders.Assets; import com.noobygames.castleinvaders.CastleInvaders; public class SplashScreen implements Screen { final CastleInvaders game; OrthographicCamera camera; Rectangle playBounds; Rectangle exitBounds; Vector3 touchPoint; public SplashScreen(final CastleInvaders gam) { game = gam; Assets.load(game); camera = new OrthographicCamera(); camera.setToOrtho(false, 1280, 768); camera.update(); game.batch.setProjectionMatrix(camera.combined); } @Override public void render(float delta) { game.batch.begin(); game.batch.draw(Assets.splashscreen,0,0); game.batch.end(); if(Gdx.input.justTouched()) game.setScreen(new MainMenuScreen(game, null)); } @Override public void resize(int width, int height) { // TODO Auto-generated method stub } @Override public void show() { // TODO Auto-generated method stub } @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 } }