summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: be2c036)
raw | patch | inline | side by side (parent: be2c036)
author | fred-boy <fred-boy@protonmail.com> | |
Sat, 21 Apr 2018 11:30:09 +0000 (18:30 +0700) | ||
committer | fred-boy <fred-boy@protonmail.com> | |
Sat, 21 Apr 2018 11:30:09 +0000 (18:30 +0700) |
core/src/ru/deadsoftware/cavecraft/game/GameRenderer.java | patch | blob | history | |
core/src/ru/deadsoftware/cavecraft/game/WorldGen.java | patch | blob | history |
diff --git a/core/src/ru/deadsoftware/cavecraft/game/GameRenderer.java b/core/src/ru/deadsoftware/cavecraft/game/GameRenderer.java
index d104b2f2056a873d781118decc40d4b0867be7d6..5a82102a3fafaaa00fcd0dd6a30ec2522e913f1e 100644 (file)
}
spriteBatch.end();
- shapeRenderer.begin(ShapeRenderer.ShapeType.Line);
- shapeRenderer.setColor(Color.ORANGE);
- shapeRenderer.line(0-camera.position.x, 128*16-camera.position.y,
- gameProc.world.getWidth()*16-camera.position.x, 128*16-camera.position.y);
- shapeRenderer.end();
-
if (CaveGame.TOUCH) {
spriteBatch.begin();
drawTouchGui();
diff --git a/core/src/ru/deadsoftware/cavecraft/game/WorldGen.java b/core/src/ru/deadsoftware/cavecraft/game/WorldGen.java
index 48c8db8d1d84542b60627b0e41db0aadf456eb15..32cb8f94a0f28db677a4045a177f3aec0cfbaf4a 100644 (file)
}
}
for (int y = height-64; y<height-1; y++) {
- if (foreMap[x][height-y]==0){
- foreMap[x][height-y] = 8;
- backMap[x][height-y] = 8;
+ if (foreMap[x][y]==0){
+ foreMap[x][y] = 8;
+ backMap[x][y] = 8;
}
}
if (x>2 && x<width-2 && rand.nextInt(100)<5){