about summary refs log tree commit diff stats
path: root/src/com/fourisland
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/fourisland')
-rw-r--r--src/com/fourisland/frigidearth/MapViewGameState.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/com/fourisland/frigidearth/MapViewGameState.java b/src/com/fourisland/frigidearth/MapViewGameState.java index d85608a..e038d41 100644 --- a/src/com/fourisland/frigidearth/MapViewGameState.java +++ b/src/com/fourisland/frigidearth/MapViewGameState.java
@@ -59,8 +59,6 @@ public class MapViewGameState implements GameState
59 } 59 }
60 60
61 makeRoom(GAME_WIDTH/2, GAME_HEIGHT/2, Direction.getRandomDirection()); 61 makeRoom(GAME_WIDTH/2, GAME_HEIGHT/2, Direction.getRandomDirection());
62 playerx = GAME_WIDTH/2;
63 playery = GAME_HEIGHT/2;
64 62
65 int currentFeatures = 1; 63 int currentFeatures = 1;
66 int objects = 300; 64 int objects = 300;
@@ -185,12 +183,17 @@ public class MapViewGameState implements GameState
185 if (ways == 0) 183 if (ways == 0)
186 { 184 {
187 grid[newx][newy] = Tile.DownStairs; 185 grid[newx][newy] = Tile.DownStairs;
186 playerx=newx+1;
187 playery=newy;
188 state = 10; 188 state = 10;
189 break; 189 break;
190 } 190 }
191 } 191 }
192 } 192 }
193 } 193 }
194
195 adjustViewport();
196 calculateFieldOfView();
194 } 197 }
195 198
196 private boolean makeRoom(int x, int y, Direction direction) 199 private boolean makeRoom(int x, int y, Direction direction)