Text Attack!

Well, at least don’t use the console. I hate having to use command prompt to launch java applications.

Anyway, it doesn’t HAVE to be a text game, just change the name to “not-text-attack” ;).

Either have lots of gameplay, or add graphics. That is my suggetion.

Man, this is just much more original if you have so cool colored ascii char chars running around! That’s pure joy!

Create a static class for your random number generation

I have this simple code you might want to take a look:


public class RNG {
	public static Random rand = new Random();
	
	//Gets a random number, from 0 to maxValue. exclusive.
	public static int getRNG(int maxValue) {
		return rand.nextInt(maxValue);
	}
	
	//Gets a random number in range. maxValue is exclusive.
	public static int getRNG(int minValue, int maxValue) {
		return rand.nextInt(maxValue - minValue) + minValue;
	}		
}

ogawd. When I got Java 7, eclipse got jacked up, so I had to go back to Java 6. Wasn’t really interested as to why it happened though. Probably never will be :wink: