Android Open Source - Open-Android-Game Constants






From Project

Back to project page Open-Android-Game.

License

The source code is released under:

GNU General Public License

If you think the Android project Open-Android-Game 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

/* Constants.java - Class for random game constants.
 * //from www  . java2  s . c om
 * Copyright  2011 Open-Android-Game Group
 * Please see the file COPYING in this
 * distribution for license terms.
 */

package com.kylepaulsen.openAndroidGame;

public final class Constants {
  //Window height and width get set in MainActivity.
  public static int WINDOW_HEIGHT;
  public static int WINDOW_WIDTH;
  
  //Base Game Constants
  public final static int GAME_TARGET_FPS = 20;
  //World Region Size
  public final static int WORLD_SIZE = 140;
  //World Tile Size
  public final static int WORLD_TILE_SIZE = 32;
  //Camera Default Move Speed
  public final static int DEFAULT_CAM_MOVE_SPEED = 1;
  
  //Player Constants
  public final static int PLAYER_BOUNDING_BOX_RADIUS = 15;
  
  //World Tile Constants
  public final static byte TILE_AIR_ID = 0;
  public final static byte TILE_GRASS_ID = 1;
  public final static byte TILE_DIRT_ID = 2;
  public final static byte TILE_SAND_ID = 3;
  public final static byte TILE_WATER_ID = 4;
  
  //Generation Constants
  public final static int GEN_SUFACE_ITERATIONS = 15;
  
}




Java Source Code List

com.kylepaulsen.openAndroidGame.BaseTiles.java
com.kylepaulsen.openAndroidGame.Biome.java
com.kylepaulsen.openAndroidGame.Constants.java
com.kylepaulsen.openAndroidGame.CopyOfPlayer.java
com.kylepaulsen.openAndroidGame.GameProgram.java
com.kylepaulsen.openAndroidGame.GraphicsView.java
com.kylepaulsen.openAndroidGame.Home.java
com.kylepaulsen.openAndroidGame.LocationTask.java
com.kylepaulsen.openAndroidGame.MainActivity.java
com.kylepaulsen.openAndroidGame.Monster.java
com.kylepaulsen.openAndroidGame.PlayerAnimated.java
com.kylepaulsen.openAndroidGame.Player.java
com.kylepaulsen.openAndroidGame.Tile.java
com.kylepaulsen.openAndroidGame.WorldEnt.java
com.kylepaulsen.openAndroidGame.World.java