Back to project page Open-Android-Game.
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.
/* 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; }