Back to project page diploma-assignment.
The source code is released under:
MIT License
If you think the Android project diploma-assignment 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.me.battlescreen; // ww w . j a va2 s. c o m public abstract class Constants { //ParentDrawingThread.java public static final int MILLISEC_BETWEEN_FRAMES = 40; public static final int FRAMES=25; public static final float BACKGROUND_HEIGHT_PERCENTAGE=0.85f; public static float WIDTH_SCALE; public static float HEIGHT_SCALE; public static int WIDTH_CONST; public static int HEIGHT_CONST; public static float MONSTER_X_OFFSET; public static float MONSTER_X_COMPUTER_OFFSET; public static final float BALLISTA_HEIGHT_OFFSET = 0.87f; public static final float BALLISTA_HEIGHT = 0.075f; public static final float CASTLE_HEIGHT_RAMPART_OFFSET = 0.15f; public static final float CASTLE_HEIGHT_NECRO_OFFSET = 0.2f; public static final float CASTLE_HEIGHT = 0.75f; public static final long GAME_LENGTH=10*60*1000; //Ballista.java public static final float DISPLACEMENT_X_BALLISTA = 0.35f; public static int ARROW_VELOCITY; public static final int MAX_ANGLE_BALLISTA = 40; public static final int BALLISTA_FRAMES=5; public static final int ARROW_TIME=4; //BallistaArrow.java public static float GRAVITY; public static final float BALLISTA_ARROW_HEIGHT = 0.03f; //Monster.java public static final int MOVEMENT_CONST = 12; public static final String UNIT_HIT_COLORFILTER_STRING = "#FF3333"; public static final int FRAME_SKIP_MONSTER = 2; //Height of monsters public static final float MONSTER_OFFSET = 0.2f; public static final float CENTAUR_HEIGHT = 0.25f; public static final float DWARF_HEIGHT = 0.2f; public static final float ELF_HEIGHT = 0.2f; public static final float PEGASUS_HEIGHT = 0.25f; public static final float DENDROIDGUARD_HEIGHT = 0.3f; public static final float UNICORN_HEIGHT = 0.3f; public static final float DRAGON_HEIGHT = 0.4f; public static final float SKELETON_HEIGHT = 0.2f; public static final float ZOMBIE_HEIGHT = 0.2f; public static final float WIGTH_HEIGHT = 0.2f; public static final float VAMPIRE_HEIGHT = 0.25f; public static final float LICH_HEIGHT = 0.3f; public static final float BLACKKNIGHT_HEIGHT = 0.3f; public static final float BONEDRAGON_HEIGHT = 0.4f; public static final int HEALTH_PLAYER_MONSTERS = 2; public static final int HEALTH_COMPUTER_MONSTERS = 4; public static final int CASTLE_LEVEL_HEALTH=100; public static int BALLISTA_DAMAGE = 1; public static int BACKWIDTH; public static int SECONDS_FOR_BACKGROUND=30; public static int MAX_COMPUTER_UNIT_WAIT_TIME=150; }