diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-11-21 12:12:24 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-11-21 12:12:24 +0100 |
commit | 660d2f51a5fb52b88635cdb97043d0eb06bd7308 (patch) | |
tree | 6b19ad6ae79010f99b343e688ebe3f6f511454e2 /core/src | |
parent | dd2a21df1d9ca14710cbcc9953846cca341a64cf (diff) | |
download | RustAndDust-660d2f51a5fb52b88635cdb97043d0eb06bd7308.zip RustAndDust-660d2f51a5fb52b88635cdb97043d0eb06bd7308.tar.gz |
Board: w,dw,s are floats not int
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ch/asynk/rustanddust/engine/Board.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/ch/asynk/rustanddust/engine/Board.java b/core/src/ch/asynk/rustanddust/engine/Board.java index fb77dd8..d5e7b62 100644 --- a/core/src/ch/asynk/rustanddust/engine/Board.java +++ b/core/src/ch/asynk/rustanddust/engine/Board.java @@ -38,9 +38,9 @@ public abstract class Board implements Disposable, Animation public int rows; public int x0; // bottom left x offset public int y0; // bottom left y offset - public int w; // hex width - public int dw; // half hex : w/2 - public int s; // hex side + public float w; // hex width + public float dw; // half hex : w/2 + public float s; // hex side public float dh; // hex top : s/2 public float h; // square height : s + dh public float slope; // north-west side slope : (dh / (float) dw) |