Subversion Repositories AndroidProjects

Rev

Rev 61 | Rev 65 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.gebauz.pingK.game;

public class GameConsts
{
        // General constants
        public static final String LOG_TAG = "GEBAUZ"; 
       
        public static final float VIRTUAL_SCREEN_WIDTH = 800.0f;
        public static final float VIRTUAL_SCREEN_HEIGHT = 480.0f;
        public static final float SCORE_BAR_HEIGHT = 60.0f;             // height of the menu/score/icon/ad bar in dp

        // Paddle constants
        public static final float PADDLE_DISTANCE_FROM_EDGE_X = 40.0f;
        public static final float PADDLE_DISTANCE_FROM_EDGE_Y = 5.0f;
        public static final float PADDLE_WIDTH = 40;
        public static final float PADDLE_HEIGHT = 80;
        public static final float PADDLE_INPUT_ACCEL = 15.0f;
        public static final float PADDLE_HIT_OFFSET = 5.0f;
        public static final float PADDLE_HIT_ZONE_DEVIATION = 1.0f;             // angle coefficient for the paddle's bendedness
       
        // Ball constants
        public static final float BALL_SIZE = 16.0f;
        public static final float BALL_INITIAL_SPEED = 300.0f;
        public static final float BALL_TOP_SPIN_INTENSITY = 0.18f;
       
        public static final float BALL_SPEEDUP_TIMER = 1.0f;
        public static final float BALL_SPEEDUP_INCREASE = 12.00f;
       
        public static final float BALL_MAXIMUM_ANGULAR_SPEED = 500.0f;
        public static final float BALL_ANGULAR_SPEED_DECREASE = 10.0f;
       
        public static final float BALL_STEEPEST_ANGLE_HIT_PADDLE_FRONT = 1.0f;          // to prevent steep 0°/90°/180°/270° angles that would make the game stuck forever
        public static final float BALL_STEEPEST_ANGLE_HIT_PADDLE_SIDE = 1.0f;           // to prevent steep 0°/90°/180°/270° angles that would make the game stuck forever
        public static final float BALL_STEEPEST_ANGLE_REFLECT_FROM_BOARD = 3.0f;                // to prevent steep 0°/90°/180°/270° angles that would make the game stuck forever
       
        public static final float BALL_TRAIL_WIDTH = 5.0f;
        public static final int   BALL_TRAIL_LENGTH = 20;                       // number of points for the trail
        public static final float BALL_TRAIL_INTERVAL = 0.05f;          // interval in seconds at which the trail gets another point
        public static final float BALL_TRAIL_MAX_ALPHA = 0.7f;

        // PlayField constants
        public static final float PLAYFIELD_BORDER_X = 15.0f;
        public static final float PLAYFIELD_BORDER_Y = 15.0f;
       

        private GameConsts()
        {
        }

}