Skip to content

Commit

Permalink
0.0.18_1
Browse files Browse the repository at this point in the history
- Collision is now based per-block instead of from the lowest ground in a column
- Changed player height to 1.8 blocks
- Removed "floor" debug text line
  • Loading branch information
Nixinova committed Jul 25, 2024
1 parent 0a8ab05 commit 5fe8f61
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

## Next
## 0.0.18_1
*2024-07-25 16:45*
- Collision is now based per-block instead of from the lowest ground in a column
- Changed player height to 1.8 blocks
- Removed "floor" debug text line
Expand Down
4 changes: 2 additions & 2 deletions src/com/nixinova/graphics/Raycast.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ public static boolean isBlockVisibleToPlayer(Game game, int blockX, int blockY,
// Continue raycasting if current block is not solid
if (game.world.isAir(curBlock.x, curBlock.y, curBlock.z))
continue;

// Block is not visible if not exposed
if (!game.world.isExposed(curBlock.x,curBlock.y,curBlock.z))
if (!game.world.isExposed(curBlock.x, curBlock.y, curBlock.z))
return false;

// Visible if current block is the target corner
Expand Down
2 changes: 1 addition & 1 deletion src/com/nixinova/main/Mineo.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import com.nixinova.options.Options;

public class Mineo {
public static final String VERSION = "0.0.18";
public static final String VERSION = "0.0.18_1";
public static final String TITLE = "Mineo " + VERSION;

private static JFrame frame;
Expand Down
2 changes: 1 addition & 1 deletion src/com/nixinova/player/Controller.java
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public Vector3 getViewDirection() {
private boolean aboveGround() {
// Above the ground if the block one texel beneath the player's feet is air
TxCoord curTx = this.pos.toTx();
BlockCoord blockOneTxDown = Coord3.fromTx(curTx.x,curTx.y-1,curTx.z).toBlock();
BlockCoord blockOneTxDown = Coord3.fromTx(curTx.x, curTx.y - 1, curTx.z).toBlock();
boolean belowTxIsAir = this.game.world.isAir(blockOneTxDown.x, blockOneTxDown.y, blockOneTxDown.z);
return belowTxIsAir;
}
Expand Down

0 comments on commit 5fe8f61

Please sign in to comment.