From 4847dc7cafaeceeb73be22d2d4b37fa25a8d90fd Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Sun, 3 Jun 2012 14:35:49 -0400 Subject: Started player next to down staircase --- src/com/fourisland/frigidearth/MapViewGameState.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/com') 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 } makeRoom(GAME_WIDTH/2, GAME_HEIGHT/2, Direction.getRandomDirection()); - playerx = GAME_WIDTH/2; - playery = GAME_HEIGHT/2; int currentFeatures = 1; int objects = 300; @@ -185,12 +183,17 @@ public class MapViewGameState implements GameState if (ways == 0) { grid[newx][newy] = Tile.DownStairs; + playerx=newx+1; + playery=newy; state = 10; break; } } } } + + adjustViewport(); + calculateFieldOfView(); } private boolean makeRoom(int x, int y, Direction direction) -- cgit 1.4.1