Subversion Repositories AndroidProjects

Rev

Rev 47 | Rev 49 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
32 chris 1
package com.gebauz.pingK.game;
2
 
3
public class GameConsts
4
{
5
        // General constants
43 chris 6
        public static final String LOG_TAG = "GEBAUZ"; 
7
 
32 chris 8
        public static final float VIRTUAL_SCREEN_WIDTH = 800.0f;
9
        public static final float VIRTUAL_SCREEN_HEIGHT = 480.0f;
10
 
11
        // Paddle constants
48 chris 12
        public static final float PADDLE_DISTANCE_FROM_EDGE_X = 40.0f;
13
        public static final float PADDLE_DISTANCE_FROM_EDGE_Y = 5.0f;
14
        public static final float PADDLE_WIDTH = 40;
15
        public static final float PADDLE_HEIGHT = 80;
44 chris 16
        public static final float PADDLE_INPUT_ACCEL = 15.0f;
47 chris 17
        public static final float PADDLE_HIT_OFFSET = 5.0f;
32 chris 18
 
45 chris 19
        // Ball constants
20
        public static final float BALL_SIZE = 16.0f;
48 chris 21
        public static final float BALL_INITIAL_SPEED = 200.0f;
22
        public static final float BALL_TOP_SPIN_INTENSITY = 0.18f;
23
        public static final float BALL_MAXIMUM_ANGULAR_SPEED = 500.0f;
24
        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
25
        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
26
        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
45 chris 27
 
48 chris 28
        // PlayField constants
29
        public static final float PLAYFIELD_BORDER_X = 15.0f;
30
        public static final float PLAYFIELD_BORDER_Y = 15.0f;
47 chris 31
 
48 chris 32
 
32 chris 33
 
45 chris 34
 
32 chris 35
        private GameConsts()
36
        {
37
        }
38
 
39
}