I have been trudging through the wildest reaches of the internet in search of how to build a text based game using JAVA. Many sites are blocked due to the fact that they must use the word "game" repeatedly. I did however find one site with very useful information, though I am now struggling to understand some of the sample code it provides.
Here is a link to the site:
Coding I have been looking into:
- Breezy Swing GUIs- There are alot of really cool things you can do with JAVA GUIs, but they are quite a pain to code. I ran across a program called Netbeans which as you can see from the link, allows you to create GUIs with a few simple button clicks. This is a free program that I would compare to Dreamweaver, but rather than HTML it is for JAVA and supports other languages as well. Although this is not useful in any way due to the fact that we cannot install it on our computers.
- Constructors- This word came up a few times and we attempted to figure out what they heck it meant. I am still attempting to understand what they are. They seem to be used to organize things like locations. As you can see in this code:
// Full constructor
public Location( String title, String description )
{
// Assign **title + description**
m_roomTitle = title;
m_roomDescription = description;
public Location( String title, String description )
{
// Assign **title + description**
m_roomTitle = title;
m_roomDescription = description;
// Blank exits
m_vecExits = new Vector();
}
m_vecExits = new Vector();
}
This allows you to simplify future code:
// Create room objects **Title / ** **Description /**
Location l1 = new Location ("Bottom of the well", "You have reached...
Location l1 = new Location ("Bottom of the well", "You have reached...