about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2012-06-03 14:35:49 -0400
committerStarla Insigna <hatkirby@fourisland.com>2012-06-03 14:35:49 -0400
commit4847dc7cafaeceeb73be22d2d4b37fa25a8d90fd (patch)
treed37594aa73f901f98f1892986f389148383964d2 /src
parenta207584188754d3f9570e80cd643a45c02999c12 (diff)
downloadfrigidearth-4847dc7cafaeceeb73be22d2d4b37fa25a8d90fd.tar.gz
frigidearth-4847dc7cafaeceeb73be22d2d4b37fa25a8d90fd.tar.bz2
frigidearth-4847dc7cafaeceeb73be22d2d4b37fa25a8d90fd.zip
Started player next to down staircase
Diffstat (limited to 'src')
-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)