• 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

Revision78d150c45b49c188d6b72f2e84976a79b5fe7562 (tree)
Time2022-01-26 01:42:38
Authorsebastian_bugiu
Commitersebastian_bugiu

Log Message

Removed ship movement settings.

Change Summary

Incremental Difference

diff -r e42a2d32b41d -r 78d150c45b49 core/src/com/headwayent/spacerocket/InGameInputProcessor.java
--- a/core/src/com/headwayent/spacerocket/InGameInputProcessor.java Sun Jan 23 17:06:22 2022 +0200
+++ b/core/src/com/headwayent/spacerocket/InGameInputProcessor.java Tue Jan 25 18:42:38 2022 +0200
@@ -24,6 +24,14 @@
2424 private float yTopArrows;
2525 private float yBottomArrows;
2626
27+ public void reset() {
28+ firePointer = -1;
29+ arrowsPointer = -1;
30+ fireSet = false;
31+ firePressed = false;
32+ arrowsPressed = false;
33+ }
34+
2735 @Override
2836 public boolean keyDown(int keycode) {
2937 // ExtendedCanvas sc = game.getCanvas();
diff -r e42a2d32b41d -r 78d150c45b49 core/src/com/headwayent/spacerocket/OptionsMenuActivity.java
--- a/core/src/com/headwayent/spacerocket/OptionsMenuActivity.java Sun Jan 23 17:06:22 2022 +0200
+++ b/core/src/com/headwayent/spacerocket/OptionsMenuActivity.java Tue Jan 25 18:42:38 2022 +0200
@@ -103,9 +103,9 @@
103103 table.row().pad(10, 0, 10, 0);
104104 table.add(vibrationLabel).left();
105105 table.add(vibrationCheckbox);
106- table.row().pad(10, 0, 10, 0);
107- table.add(shipMovementLabel).left();
108- table.add(shipMovementSelectBox);
106+// table.row().pad(10, 0, 10, 0);
107+// table.add(shipMovementLabel).left();
108+// table.add(shipMovementSelectBox);
109109 table.row().pad(10, 0, 10, 0);
110110 table.add(backButton).colspan(2).fillX().uniformX();
111111
diff -r e42a2d32b41d -r 78d150c45b49 core/src/com/headwayent/spacerocket/old/ExtendedCanvas.java
--- a/core/src/com/headwayent/spacerocket/old/ExtendedCanvas.java Sun Jan 23 17:06:22 2022 +0200
+++ b/core/src/com/headwayent/spacerocket/old/ExtendedCanvas.java Tue Jan 25 18:42:38 2022 +0200
@@ -48,7 +48,7 @@
4848 public static final float ACCELEROMETER_ERROR = 3.0f;
4949 public static final float FLOAT_EPSILON = 0.00001f;
5050 private static final float CORNER_X = 0, CORNER_Y = 0;
51- public static final int NUM_LIVES = 10;
51+ public static final int NUM_LIVES = 1;
5252 private static final int HIDDEN_KEY_NUM_PRESSES = 10;
5353 public static final int FULL_ACCESS_SCORE = SpaceRocket.DEBUG ? 10 : 150;
5454 private static float FONT_HEIGHT;
@@ -166,6 +166,10 @@
166166 public void setGameOver() {
167167 getStatus().setGameOver(true);
168168 gameOver = false;
169+ getStatus().setFirstTime(true);
170+ InGameInputProcessor inputProcessor = (InGameInputProcessor) Gdx.input.getInputProcessor();
171+ inputProcessor.reset();
172+
169173 // getGameEngine().pauseApp();
170174 }
171175
@@ -412,7 +416,7 @@
412416 showFireToast = false;
413417 }
414418 checkFirePressed.set(true);
415- if ((keyState & FIRE_PRESSED) != 0) {
419+// if ((keyState & FIRE_PRESSED) != 0) {
416420 getStatus().setFirstTime(false);
417421 if(!gameLoaded) {
418422 this.reset();
@@ -423,7 +427,7 @@
423427 if (inputProcessor.isFireSet()) {
424428 recordKeyReleased(FIRE);
425429 }
426- }
430+// }
427431 return;
428432 }
429433
diff -r e42a2d32b41d -r 78d150c45b49 core/src/com/headwayent/spacerocket/old/GraphicsManager.java
--- a/core/src/com/headwayent/spacerocket/old/GraphicsManager.java Sun Jan 23 17:06:22 2022 +0200
+++ b/core/src/com/headwayent/spacerocket/old/GraphicsManager.java Tue Jan 25 18:42:38 2022 +0200
@@ -674,8 +674,6 @@
674674 // remove(planetSprite[i]);
675675 }
676676
677-
678-
679677 append(spaceRocket);
680678 spaceRocket.setVisible(true);
681679 if (SpaceRocket.getGame().getGameMode() == SpaceRocket.GameMode.MP) {
@@ -876,6 +874,13 @@
876874 if (spaceCanvas.getStatus().getLivesRemaining() == 0) {
877875
878876 spaceRocket.setVisible(false);
877+ if (otherSpaceRocket != null) {
878+ otherSpaceRocket.setVisible(false);
879+ }
880+ remove(spaceRocket);
881+ if (otherSpaceRocket != null) {
882+ remove(otherSpaceRocket);
883+ }
879884 }
880885 if (isMP) {
881886 spaceRocket.LifeLost();
diff -r e42a2d32b41d -r 78d150c45b49 core/src/com/headwayent/spacerocket/old/SpaceRocketSprite.java
--- a/core/src/com/headwayent/spacerocket/old/SpaceRocketSprite.java Sun Jan 23 17:06:22 2022 +0200
+++ b/core/src/com/headwayent/spacerocket/old/SpaceRocketSprite.java Tue Jan 25 18:42:38 2022 +0200
@@ -140,6 +140,9 @@
140140 }
141141
142142 public boolean collisionCheck(ExtendedSprite s) {
143+ if (!isVisible()) {
144+ return false;
145+ }
143146 boolean ret = false;
144147 if (s == null) {
145148 System.out.println("SpaceRocketSprite s == null");
@@ -203,7 +206,9 @@
203206 public void reset() {
204207 super.reset();
205208 this.setPosition(initialXPos, initialYPos);
206- this.setVisible(true);
209+ if (SpaceRocket.getGame().getCanvas().getStatus().getLivesRemaining() > 0) {
210+ this.setVisible(true);
211+ }
207212 speedX = 0;
208213 speedY = 0;
209214 currentDelay = 0;
@@ -467,7 +472,7 @@
467472 }
468473 }
469474 if ((speedX != 0.0f) || (speedY != 0.0f)) {
470- System.out.println("left: " + left + " up: " + up + " speedX: " + speedX + " speedY: " + speedY);
475+// System.out.println("left: " + left + " up: " + up + " speedX: " + speedX + " speedY: " + speedY);
471476 move(speedX, speedY);
472477 }
473478 if (invalidateSpeed.get()) {
diff -r e42a2d32b41d -r 78d150c45b49 ios/robovm.properties
--- a/ios/robovm.properties Sun Jan 23 17:06:22 2022 +0200
+++ b/ios/robovm.properties Tue Jan 25 18:42:38 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=14
5+app.build=15
66 app.name=Hotshot 2D