Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (playerPosition.getYPos() > 0) {
- northRoom = game.getRoom(playerPosition.getYPos()-1, playerPosition.getXPos());
- if (northRoom.hasBats()) {
- actionLog.push("You hear the flapping of wings nearby.");
- }else if (northRoom.hasPit()) {
- actionLog.push("You feel a cool breeze nearby.");
- }else if (playerPosition.getYPos()+1 == rickPosition.getYPos() && playerPosition.getXPos() == rickPosition.getXPos()) {
- actionLog.push("You hear something near by, \"....give.....up\"");
- }
- }
Add Comment
Please, Sign In to add comment