diff --git a/src/org/andengine/examples/BoundCameraExample.java b/src/org/andengine/examples/BoundCameraExample.java index 825b1aa..877ddf1 100644 --- a/src/org/andengine/examples/BoundCameraExample.java +++ b/src/org/andengine/examples/BoundCameraExample.java @@ -217,7 +217,8 @@ public void onPauseGame() { private void addFace(final float pX, final float pY) { final FixtureDef objectFixtureDef = PhysicsFactory.createFixtureDef(1, 0.5f, 0.5f); - final AnimatedSprite face = new AnimatedSprite(pX, pY, this.mBoxFaceTextureRegion, this.getVertexBufferObjectManager()).animate(100); + final AnimatedSprite face = new AnimatedSprite(pX, pY, this.mBoxFaceTextureRegion, this.getVertexBufferObjectManager()); + face.animate(100); final Body body = PhysicsFactory.createBoxBody(this.mPhysicsWorld, face, BodyType.DynamicBody, objectFixtureDef); this.mScene.attachChild(face); diff --git a/src/org/andengine/examples/HullAlgorithmExample.java b/src/org/andengine/examples/HullAlgorithmExample.java index 487755b..902207d 100644 --- a/src/org/andengine/examples/HullAlgorithmExample.java +++ b/src/org/andengine/examples/HullAlgorithmExample.java @@ -7,8 +7,8 @@ import org.andengine.entity.modifier.LoopEntityModifier; import org.andengine.entity.modifier.ScaleModifier; import org.andengine.entity.modifier.SequenceEntityModifier; +import org.andengine.entity.primitive.DrawMode; import org.andengine.entity.primitive.Mesh; -import org.andengine.entity.primitive.vbo.DrawMode; import org.andengine.entity.scene.IOnSceneTouchListener; import org.andengine.entity.scene.Scene; import org.andengine.entity.scene.background.Background; diff --git a/src/org/andengine/examples/SplitScreenExample.java b/src/org/andengine/examples/SplitScreenExample.java index 5f81af7..38df3cf 100644 --- a/src/org/andengine/examples/SplitScreenExample.java +++ b/src/org/andengine/examples/SplitScreenExample.java @@ -176,7 +176,8 @@ public void onPauseGame() { private void addFace(final float pX, final float pY) { final FixtureDef objectFixtureDef = PhysicsFactory.createFixtureDef(1, 0.5f, 0.5f); - final AnimatedSprite face = new AnimatedSprite(pX, pY, this.mBoxFaceTextureRegion, this.getVertexBufferObjectManager()).animate(100); + final AnimatedSprite face = new AnimatedSprite(pX, pY, this.mBoxFaceTextureRegion, this.getVertexBufferObjectManager()); + face.animate(100); final Body body = PhysicsFactory.createBoxBody(this.mPhysicsWorld, face, BodyType.DynamicBody, objectFixtureDef); this.mScene.attachChild(face); diff --git a/src/org/andengine/examples/TextBreakExample.java b/src/org/andengine/examples/TextBreakExample.java index c36b877..e7435d5 100644 --- a/src/org/andengine/examples/TextBreakExample.java +++ b/src/org/andengine/examples/TextBreakExample.java @@ -103,7 +103,7 @@ public Scene onCreateScene() { scene.setBackground(new Background(0.09804f, 0.6274f, 0.8784f)); final VertexBufferObjectManager vertexBufferObjectManager = this.getVertexBufferObjectManager(); - this.mText = new Text(50, 40, this.mFont, "", 1000, new TextOptions(AutoWrap.LETTERS, AUTOWRAP_WIDTH, Text.LEADING_DEFAULT, HorizontalAlign.CENTER), vertexBufferObjectManager); + this.mText = new Text(50, 40, this.mFont, "", 1000, new TextOptions(AutoWrap.LETTERS, AUTOWRAP_WIDTH, HorizontalAlign.CENTER), vertexBufferObjectManager); scene.attachChild(this.mText); this.mLeft = new Line(0, 0, 0, TextBreakExample.CAMERA_HEIGHT, this.getVertexBufferObjectManager());