OSDN Git Service
(root)
/
mikumikustudio
/
libgdx-mikumikustudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6142bdb
)
fixed gdx invader screen transitions
author
badlogic
<contact@badlogicgames.com>
Tue, 9 Oct 2012 11:33:15 +0000
(13:33 +0200)
committer
badlogic
<contact@badlogicgames.com>
Tue, 9 Oct 2012 11:33:15 +0000
(13:33 +0200)
demos/invaders/gdx-invaders/src/com/badlogic/gdxinvaders/GdxInvaders.java
patch
|
blob
|
history
demos/invaders/gdx-invaders/src/com/badlogic/gdxinvaders/screens/GameOver.java
patch
|
blob
|
history
demos/invaders/gdx-invaders/src/com/badlogic/gdxinvaders/screens/MainMenu.java
patch
|
blob
|
history
diff --git
a/demos/invaders/gdx-invaders/src/com/badlogic/gdxinvaders/GdxInvaders.java
b/demos/invaders/gdx-invaders/src/com/badlogic/gdxinvaders/GdxInvaders.java
index
e749b6e
..
1ef8f5a
100644
(file)
--- a/
demos/invaders/gdx-invaders/src/com/badlogic/gdxinvaders/GdxInvaders.java
+++ b/
demos/invaders/gdx-invaders/src/com/badlogic/gdxinvaders/GdxInvaders.java
@@
-42,10
+42,6
@@
public class GdxInvaders extends Game {
// next screen. Ideally the screen transitions are handled
\r
// in the screen itself or in a proper state machine.
\r
if (currentScreen.isDone()) {
\r
- // dispose music
\r
- music.dispose();
\r
- music = null;
\r
-
\r
// dispose the resources of the current screen
\r
currentScreen.dispose();
\r
\r
diff --git
a/demos/invaders/gdx-invaders/src/com/badlogic/gdxinvaders/screens/GameOver.java
b/demos/invaders/gdx-invaders/src/com/badlogic/gdxinvaders/screens/GameOver.java
index
df309e7
..
fb9e9de
100644
(file)
--- a/
demos/invaders/gdx-invaders/src/com/badlogic/gdxinvaders/screens/GameOver.java
+++ b/
demos/invaders/gdx-invaders/src/com/badlogic/gdxinvaders/screens/GameOver.java
@@
-89,7
+89,7
@@
public class GameOver extends InvadersScreen {
\r
@Override
\r
public void update (float delta) {
\r
- if (Gdx.input.
is
Touched()) {
\r
+ if (Gdx.input.
just
Touched()) {
\r
isDone = true;
\r
}
\r
}
\r
diff --git
a/demos/invaders/gdx-invaders/src/com/badlogic/gdxinvaders/screens/MainMenu.java
b/demos/invaders/gdx-invaders/src/com/badlogic/gdxinvaders/screens/MainMenu.java
index
3cd53c2
..
3f97d2c
100644
(file)
--- a/
demos/invaders/gdx-invaders/src/com/badlogic/gdxinvaders/screens/MainMenu.java
+++ b/
demos/invaders/gdx-invaders/src/com/badlogic/gdxinvaders/screens/MainMenu.java
@@
-60,7
+60,7
@@
public class MainMenu extends InvadersScreen {
\r
@Override
\r
public void update (float delta) {
\r
- if (Gdx.input.
is
Touched()) {
\r
+ if (Gdx.input.
just
Touched()) {
\r
isDone = true;
\r
}
\r
}
\r