• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisione42a2d32b41d7cad7e9db065761fa3642191ec92 (tree)
Time2022-01-24 00:06:22
Authorsebastian_bugiu
Commitersebastian_bugiu

Log Message

Made touch controls more responsive. Increased movement speed greatly.

Change Summary

Incremental Difference

diff -r 2048f66df884 -r e42a2d32b41d core/src/com/headwayent/spacerocket/old/GraphicsManager.java
--- a/core/src/com/headwayent/spacerocket/old/GraphicsManager.java Thu Jan 20 21:57:38 2022 +0200
+++ b/core/src/com/headwayent/spacerocket/old/GraphicsManager.java Sun Jan 23 17:06:22 2022 +0200
@@ -50,7 +50,7 @@
5050 private static final int PLANET_NUM = 8;
5151 public static final int ENEMY_LAUNCH_MISSILE_RAND = 100;
5252 public static final int STAR_SPRITE_LAUNCH_RAND = 50;
53- public static final float ARROWS_X_OFFSET = 20;
53+ public static final float ARROWS_X_OFFSET = 15;
5454 private final TextureAtlas.AtlasRegion spaceRocketRegion;
5555 private final TextureAtlas.AtlasRegion otherSpaceRocketRegion;
5656 private final TextureAtlas.AtlasRegion touchArrowsPressedRegion;
diff -r 2048f66df884 -r e42a2d32b41d core/src/com/headwayent/spacerocket/old/SpaceRocketSprite.java
--- a/core/src/com/headwayent/spacerocket/old/SpaceRocketSprite.java Thu Jan 20 21:57:38 2022 +0200
+++ b/core/src/com/headwayent/spacerocket/old/SpaceRocketSprite.java Sun Jan 23 17:06:22 2022 +0200
@@ -21,7 +21,7 @@
2121 public static int SR_MAX_SPEED;
2222 private static int ROCKET_DISTANCE;
2323 public static final int _ACC_SPEED = 1;
24- public static final int _MAX_SPEED = 5;
24+ public static final int _MAX_SPEED = 20;
2525 private static final int _ROCKET_DISTANCE = -24;
2626 public static final int _ACC_SPEED_SM = 1;
2727 public static final int _MAX_SPEED_SM = 2;
@@ -426,8 +426,8 @@
426426
427427 public void advance(float left, float up, int shoot) {
428428 synchronized (this) {
429- speedX = Utility.clamp(speedX + SR_ACC_SPEED * left, -SR_MAX_SPEED, SR_MAX_SPEED);
430- speedY = Utility.clamp(speedY + SR_ACC_SPEED * up, -SR_MAX_SPEED, SR_MAX_SPEED);
429+ speedX = Utility.clamp(SR_MAX_SPEED * left, -SR_MAX_SPEED, SR_MAX_SPEED);
430+ speedY = Utility.clamp(SR_MAX_SPEED * up, -SR_MAX_SPEED, SR_MAX_SPEED);
431431 int shipOptions = Preferences.getInstance().getShipMovementType();
432432 if ((left == 0.0f) && (up == 0.0f)) {
433433 if (shipOptions == 1) {
@@ -467,6 +467,7 @@
467467 }
468468 }
469469 if ((speedX != 0.0f) || (speedY != 0.0f)) {
470+ System.out.println("left: " + left + " up: " + up + " speedX: " + speedX + " speedY: " + speedY);
470471 move(speedX, speedY);
471472 }
472473 if (invalidateSpeed.get()) {
diff -r 2048f66df884 -r e42a2d32b41d ios/robovm.properties
--- a/ios/robovm.properties Thu Jan 20 21:57:38 2022 +0200
+++ b/ios/robovm.properties Sun Jan 23 17:06:22 2022 +0200
@@ -2,5 +2,5 @@
22 app.id=com.headwayent.spacerocket
33 app.mainclass=com.headwayent.spacerocket.IOSLauncher
44 app.executable=IOSLauncher
5-app.build=13
5+app.build=14
66 app.name=Hotshot 2D