|
1 | 1 | import java.lang.reflect.Field; |
2 | 2 | import java.lang.reflect.Modifier; |
3 | 3 |
|
4 | | -class Settings { |
5 | | - static final float MaxVx = 8; //X方向の最大速度 |
6 | | - static final float MaxVy = 30; |
7 | | - static final float JumpPower = 13; //ジャンプ時の初速度(Y軸) |
8 | | - static final float Gravity = 0.5; //重力 |
9 | | - static final float GravityFalling = 1.2; //重力(落下時) |
10 | | - static final float AxNormal = 0.2; //X方向加速度 |
11 | | - static final float AxBreak = 1.0; //ブレーキ時加速度 |
12 | | - static final float AxJumping = 0.1; //ジャンプ中のX方向加速度 |
13 | | - static final float CamEasingNormal = 0.1; |
14 | | - static final float CamEasingGrounding = 0.3; |
15 | | - static final float JumpAnticipationFrames = 3; |
16 | | - static final boolean ShowTrail = false; |
17 | | - static final boolean CamVerticalEasing = true; |
18 | | - static final boolean ParallaxScrolling = true; |
19 | | - static final boolean ShowCenterMarker = false; |
20 | | - static final boolean AllowAerialJump = true; |
21 | | - static final boolean AllowAerialWalk = true; |
| 4 | +static class Settings { |
| 5 | + static final float MaxVx = 8; // Maximum horizontal velocity of the jumper. |
| 6 | + static final float MaxVy = 30; // Maximum vertical velocity of the jumper. |
| 7 | + static final float JumpPower = 13; // Initial vertical velocity of a jump motion. |
| 8 | + static final float Gravity = 0.5; // gravity when rising. |
| 9 | + static final float GravityFalling = 1.2; // gravity when falling. |
| 10 | + static final float AxNormal = 0.2; // Horizontal acceleration in normal state. |
| 11 | + static final float AxBreak = 1.0; // Horizontal acceleration when breaking. |
| 12 | + static final float AxJumping = 0.1; // Horizontal acceleration when jumping. |
| 13 | + static final float CamEasingNormal = 0.1; // Smoothness of the camera motion in normal state. |
| 14 | + static final float CamEasingGrounding = 0.3; // Smoothness of the camera motion when the jumper grounded. |
| 15 | + static final float JumpAnticipationFrames = 3; // Duration of the anticipation of jump motion in frames. |
| 16 | + static final boolean ShowTrail = false; // Show the trail or not. |
| 17 | + static final boolean CamVerticalEasing = true; // Ease the vertical camera motion or not. |
| 18 | + static final boolean ParallaxScrolling = true; // Parallax scrolling or not. |
| 19 | + static final boolean ShowCenterMarker = false; // Show the center marker or not. |
| 20 | + static final boolean AllowAerialJump = true; // Allow aerial jump or not. |
| 21 | + static final boolean AllowAerialWalk = true; // Allow aerial walk or not. |
22 | 22 |
|
23 | 23 | float maxVx, maxVy; |
24 | 24 | float jumpPower; |
|
0 commit comments