OSDN Git Service

[fixed] GdxInvaders and Bouncy. Bouncy wasn't up to date. Works flawlessly though...
authorbadlogicgames <badlogicgames@6c4fd544-2939-11df-bb46-9574ba5d0bfa>
Wed, 26 Jan 2011 19:58:31 +0000 (19:58 +0000)
committerbadlogicgames <badlogicgames@6c4fd544-2939-11df-bb46-9574ba5d0bfa>
Wed, 26 Jan 2011 19:58:31 +0000 (19:58 +0000)
[todo] figure out why music playback stops after a couple of seconds, only on my shitty netbook.

demos/invaders/gdx-invaders/src/com/badlogic/gdxinvaders/GdxInvaders.java
demos/vector-pinball/gdx-vectorpinball/.classpath
demos/vector-pinball/gdx-vectorpinball/src/com/dozingcatsoftware/bouncy/Bouncy.java

index 1e31a4a..ade6a19 100644 (file)
@@ -71,7 +71,7 @@ public class GdxInvaders implements ApplicationListener {
 \r
        @Override public void create () {\r
                if (!isInitialized) {\r
-                       screen = new GameOver(Gdx.app);\r
+                       screen = new MainMenu(Gdx.app);\r
                        Music music = Gdx.audio.newMusic(Gdx.files.getFileHandle("data/8.12.mp3", FileType.Internal));\r
                        music.setLooping(true);\r
                        music.play();\r
index 9f9051e..2c2cf0d 100644 (file)
@@ -5,5 +5,6 @@
        <classpathentry kind="lib" path="libs/gdx-backend-jogl.jar"/>\r
        <classpathentry kind="lib" path="libs/gdx-natives.jar"/>\r
        <classpathentry kind="lib" path="libs/gdx.jar"/>\r
+       <classpathentry kind="lib" path="libs/gdx-backend-jogl-natives.jar"/>\r
        <classpathentry kind="output" path="bin"/>\r
 </classpath>\r
index 10d5538..158df61 100644 (file)
@@ -77,13 +77,13 @@ public class Bouncy extends InputAdapter implements ApplicationListener {
 \r
        }\r
 \r
-       @Override public boolean touchDown (int x, int y, int pointer) {\r
+       @Override public boolean touchDown (int x, int y, int pointer, int button) {\r
                field.removeDeadBalls();\r
                if (field.getBalls().size() != 0) field.setAllFlippersEngaged(true);\r
                return false;\r
        }\r
 \r
-       @Override public boolean touchUp (int x, int y, int pointer) {\r
+       @Override public boolean touchUp (int x, int y, int pointer, int button) {\r
                field.removeDeadBalls();\r
                if (field.getBalls().size() == 0) field.launchBall();\r
                field.setAllFlippersEngaged(false);\r