Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated to the latest libgdx

  • Loading branch information...
commit ac9b9e9d62de89d7e4147bc342b1903a020aabd1 1 parent 06a897b
Impaler authored
View
BIN  star-assault-android/libs/armeabi-v7a/libgdx.so
Binary file not shown
View
BIN  star-assault-android/libs/armeabi/libgdx.so
Binary file not shown
View
BIN  star-assault-android/libs/gdx-backend-android.jar
Binary file not shown
View
BIN  star-assault-desktop/libs/gdx-backend-lwjgl-natives.jar
Binary file not shown
View
BIN  star-assault-desktop/libs/gdx-backend-lwjgl.jar
Binary file not shown
View
BIN  star-assault-desktop/libs/gdx-natives.jar
Binary file not shown
View
BIN  star-assault/libs/gdx-sources.jar
Binary file not shown
View
BIN  star-assault/libs/gdx.jar
Binary file not shown
View
4 star-assault/src/net/obviam/starassault/screens/GameScreen.java
@@ -132,13 +132,13 @@ public boolean touchDragged(int x, int y, int pointer) {
}
@Override
- public boolean touchMoved(int x, int y) {
+ public boolean scrolled(int amount) {
// TODO Auto-generated method stub
return false;
}
@Override
- public boolean scrolled(int amount) {
+ public boolean mouseMoved(int screenX, int screenY) {
// TODO Auto-generated method stub
return false;
}
View
8 star-assault/src/net/obviam/starassault/view/WorldRenderer.java
@@ -139,7 +139,7 @@ private void drawBob() {
private void drawDebug() {
// render blocks
debugRenderer.setProjectionMatrix(cam.combined);
- debugRenderer.begin(ShapeType.Rectangle);
+ debugRenderer.begin(ShapeType.Line);
for (Block block : world.getDrawableBlocks((int)CAMERA_WIDTH, (int)CAMERA_HEIGHT)) {
Rectangle rect = block.getBounds();
debugRenderer.setColor(new Color(1, 0, 0, 1));
@@ -155,10 +155,10 @@ private void drawDebug() {
private void drawCollisionBlocks() {
debugRenderer.setProjectionMatrix(cam.combined);
- debugRenderer.begin(ShapeType.FilledRectangle);
- debugRenderer.setColor(new Color(1, 1, 1, 1));
+ debugRenderer.begin(ShapeType.Filled);
+ debugRenderer.setColor(Color.WHITE);
for (Rectangle rect : world.getCollisionRects()) {
- debugRenderer.filledRect(rect.x, rect.y, rect.width, rect.height);
+ debugRenderer.rect(rect.x, rect.y, rect.width, rect.height, Color.WHITE, Color.WHITE, Color.WHITE, Color.WHITE);
}
debugRenderer.end();
Please sign in to comment.
Something went wrong with that request. Please try again.