mreinfurt
4/23/2013 - 7:37 PM

gistfile1.txt

  	case North:
			y--;
			if (y < top)
			{
				top--;
			}

			break;

		case South:
			y++;
			if (y > bottom)
			{
				bottom++;
			}

			break;

		case East:
			x++;
			if (x > right)
			{
				right++;
			}
			break;

		case West:
			x--;
			if (x < left)
			{
				left--;
			}
			break;

		default:
			break;
		}