Back to project page LD27-PuzzleDash.
The source code is released under:
GNU General Public License
If you think the Android project LD27-PuzzleDash 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.fireblend.puzzlerun; // w w w .j a va2 s . c o m import com.badlogic.gdx.Game; public class PuzzleRun extends Game { MenuScreen menuScreen; EndScreen endScreen; GameScreen gameScreen; public int finalScore; @Override public void create() { menuScreen = new MenuScreen(this); endScreen = new EndScreen(this); gameScreen = new GameScreen(this); setScreen(gameScreen); } /*@Override public void create() { float w = Gdx.graphics.getWidth(); float h = Gdx.graphics.getHeight(); camera = new OrthographicCamera(1, h/w); batch = new SpriteBatch(); texture = new Texture(Gdx.files.internal("data/libgdx.png")); texture.setFilter(TextureFilter.Linear, TextureFilter.Linear); TextureRegion region = new TextureRegion(texture, 0, 0, 512, 275); sprite = new Sprite(region); sprite.setSize(0.9f, 0.9f * sprite.getHeight() / sprite.getWidth()); sprite.setOrigin(sprite.getWidth()/2, sprite.getHeight()/2); sprite.setPosition(-sprite.getWidth()/2, -sprite.getHeight()/2); }*/ }