Permalink
Browse files

Updated to the latest libgdx

  • Loading branch information...
1 parent 06a897b commit ac9b9e9d62de89d7e4147bc342b1903a020aabd1 Impaler committed Apr 16, 2013
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
View
Binary file not shown.
@@ -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;
}
@@ -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();

0 comments on commit ac9b9e9

Please sign in to comment.