Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (121)
games submitted by our members
Games in WIP (577)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Game Development / Newbie & Debugging Questions / Re: Recognizing enter on text entry on: 2006-10-30 09:13:43
Thanks for all of the replies, and especially thanks to oNyx and Kova for their suggestions.  I've gone with using ActionListener, and it works great.  Thanks again Smiley.
2  Game Development / Newbie & Debugging Questions / Recognizing enter on text entry on: 2006-10-29 09:08:24
I'm trying to create a simple text adventure and some modules to go along with it.  The main window of the engine has a JTextArea for displaying text, a JTextField for entering text, and a JButton to act as a send button.

Right now, the only way I know of to see if enter is pressed while the user is typing in text is to scan each key as its typed to see if it's enter or not.  Is there a better way to recognize when the user hits enter when typing in a JTextField?
3  Games Center / Archived Projects / Re: Platform Prototype on: 2006-08-13 07:33:03
I really like what you've done.  The jumping is beautiful.  One of my pet peeves with platformers is when jumping is difficult and hard to control.  I think you've done jumping beautifully.
4  Games Center / Archived Projects / Re: Game similar to Metroid on: 2006-08-12 09:40:37
It runs fine on Linux.
5  Game Development / Newbie & Debugging Questions / Re: Quaternion rotations and gimble lock on: 2006-03-11 23:30:01
You would probably be better served by asking this question in one of the OpenGL forums here.
6  Game Development / Newbie & Debugging Questions / Re: Vector into String array on: 2006-03-11 23:25:02
Thank you very much for all of the replies.  All of them seem to be more resource-friendly than spinning through a for loop.
7  Game Development / Newbie & Debugging Questions / Vector into String array on: 2006-03-10 02:15:08
I think I used to know how to do this once upon a time, but that was a while ago.  I have a vector full of string objects, and I need to turn it into a String array.

String[] sarray = vector.toArray();

Doesn't work because the vector method is outputing an Object array instead of a String array.  I've tried casting it like this:

String[] sarray = (String[])vector.toArray();

And even though that will compile, it produces an error at run time.

Exception in thread "main" java.lang.ClassCastException: java.util.Arrays$ArrayList

Is there something simple I'm overlooking, or do I simply need to use a loop to step through the vector and assign elements to the string array element by element?  Thanks Smiley.
8  Games Center / Archived Projects / Re: Xtreme Space War - Online multiplayer space shooter! on: 2006-03-03 03:01:49
This reminds me a lot of Continuum, except with better graphics, more potential, and it actually works on Linux.  Good job Smiley.  Now if only more people would play it.
9  Games Center / Archived Projects / Re: Wolkenstein FPS on: 2006-03-03 02:29:51
I'm running Mandriva 2005 LE.  I downloaded the zip, unzipped it, changed your start script to executable and ran it.  The initial window came up, and I clicked on "ok".  My screen mode shifted to 1024x768 and the music played, but then I was instantly dropped back to the console with the following error message:

java.lang.IllegalArgumentException: Width (-1) and height (-1) cannot be <= 0
10  Discussions / General Discussions / Re: original gaming on: 2006-03-03 00:30:03
I have to agree that these games are very classy and have a very nice attention to detail.  I especially like the music.
11  Game Development / Newbie & Debugging Questions / Re: Creating a Text Parser on: 2006-03-03 00:25:12
Thanks for all of the replies so far.  I see that String.split is actually part of 1.4, so it can still be used when you're developing for a 1.4.2 platform.

I'm going to have to study all of these replies I've received so far, and if anyone would like to, please feel free to continue to reply.  The more information the better.  Thanks Smiley.
12  Game Development / Newbie & Debugging Questions / Re: Creating a Text Parser on: 2006-03-02 23:01:11
So if you're programming for a 1.4.2 target, then basically you're left with StringTokenizer and a whole bunch of if statements?
13  Game Development / Newbie & Debugging Questions / Creating a Text Parser on: 2006-03-02 22:43:04
Greetings everyone Smiley.  I'd like to create a simple text adventure game in Java.  I've done a lot of Java application programming, and I already have the GUI for the game set up, but I'm clueless about creating a text parser to interpret the typed commands.  Can anyone point me in the right direction?  Thanks Smiley.
Pages: [1]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

theagentd (19 views)
2014-10-25 15:46:29

Longarmx (52 views)
2014-10-17 03:59:02

Norakomi (46 views)
2014-10-16 15:22:06

Norakomi (34 views)
2014-10-16 15:20:20

lcass (39 views)
2014-10-15 16:18:58

TehJavaDev (68 views)
2014-10-14 00:39:48

TehJavaDev (68 views)
2014-10-14 00:35:47

TehJavaDev (60 views)
2014-10-14 00:32:37

BurntPizza (74 views)
2014-10-11 23:24:42

BurntPizza (45 views)
2014-10-11 23:10:45
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!