diff options
author | pacien | 2018-02-04 13:41:12 +0100 |
---|---|---|
committer | pacien | 2018-02-04 13:41:12 +0100 |
commit | 534f0cf4c6232e87a4b96f7e583c0422c8b312a6 (patch) | |
tree | 7722b2e2cb900b7e3bd44a9f82de75f5f37e0ad6 | |
parent | 6c0fa25c9d6829e9a3990d952571433751616bee (diff) | |
download | wallj-534f0cf4c6232e87a4b96f7e583c0422c8b312a6.tar.gz |
Make robot appear bigger
Signed-off-by: pacien <pacien.trangirard@pacien.net>
-rw-r--r-- | src/main/java/fr/umlv/java/wallj/block/RobotBlock.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/fr/umlv/java/wallj/block/RobotBlock.java b/src/main/java/fr/umlv/java/wallj/block/RobotBlock.java index 6909555..1ab4f01 100644 --- a/src/main/java/fr/umlv/java/wallj/block/RobotBlock.java +++ b/src/main/java/fr/umlv/java/wallj/block/RobotBlock.java | |||
@@ -22,6 +22,7 @@ import java.util.stream.Stream; | |||
22 | */ | 22 | */ |
23 | public class RobotBlock extends Block { | 23 | public class RobotBlock extends Block { |
24 | private static final float SPEED = 10f; // px/ms | 24 | private static final float SPEED = 10f; // px/ms |
25 | private static final float ROBOT_SIZE = TileVec2.TILE_DIM * 1.25f; | ||
25 | 26 | ||
26 | private final TileVec2 initialPos; | 27 | private final TileVec2 initialPos; |
27 | private Vec2 pos; | 28 | private Vec2 pos; |
@@ -117,7 +118,7 @@ public class RobotBlock extends Block { | |||
117 | } | 118 | } |
118 | 119 | ||
119 | private Stream<Event> paint(Context context) { | 120 | private Stream<Event> paint(Context context) { |
120 | context.getGraphicsContext().paintCircle(Color.BLUE, getPos(), TileVec2.TILE_DIM / 2); | 121 | context.getGraphicsContext().paintCircle(Color.BLUE, getPos(), ROBOT_SIZE); |
121 | return Stream.empty(); | 122 | return Stream.empty(); |
122 | } | 123 | } |
123 | 124 | ||