Android Open Source - Android-DropGame Drop






From Project

Back to project page Android-DropGame.

License

The source code is released under:

MIT License

If you think the Android project Android-DropGame 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 me.anhvannguyen.drop;
//w  w w .  ja v  a2s .c om
import java.util.Iterator;

import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.Game;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input.Keys;
import com.badlogic.gdx.audio.Music;
import com.badlogic.gdx.audio.Sound;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.math.MathUtils;
import com.badlogic.gdx.math.Rectangle;
import com.badlogic.gdx.math.Vector3;
import com.badlogic.gdx.utils.Array;
import com.badlogic.gdx.utils.TimeUtils;

public class Drop extends Game {
  public SpriteBatch batch;
  public BitmapFont font;

  @Override
  public void create() {
    // TODO Auto-generated method stub
    batch = new SpriteBatch();
    font = new BitmapFont();
    this.setScreen(new MainMenuScreen(this));
  }
  
  @Override
  public void render() {
    // without super.render, screen in the create() method will
    // not be rendered
    super.render();
  }
  
  @Override
  public void dispose() {
    // TODO Auto-generated method stub
    super.dispose();
  }
}




Java Source Code List

me.anhvannguyen.drop.Drop.java
me.anhvannguyen.drop.GameOverScreen.java
me.anhvannguyen.drop.GameScreen.java
me.anhvannguyen.drop.MainMenuScreen.java
me.anhvannguyen.drop.android.AndroidLauncher.java
me.anhvannguyen.drop.client.HtmlLauncher.java
me.anhvannguyen.drop.desktop.DesktopLauncher.java