Building A Game

Last night I started to build a game in Java, and in the end I know it will not stay in Java, but I started there. I started there so I could…

1) I started
2) This is just a test bed
3) profit???

Night 1
I got a dice class written and got some ideas down for going forward. I think I am going to write Utopia Engine as a framework.

import java.util.Random;

public class dice {
	private int sides;
	public dice(int numSides)
		sides = numSides;
	public int roll()
		Random roller = new Random();
		int face = roller.nextInt(sides) + 1;
		return face;

so yeah that’s where its at for now

This entry was posted in Programming. Bookmark the permalink. Both comments and trackbacks are currently closed.