Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (711)
Games in Android Showcase (213)
games submitted by our members
Games in WIP (785)
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]
numerical (295 views)
2017-02-21 07:32:16

numerical (294 views)
2017-02-21 07:31:46

theagentd (405 views)
2017-02-18 13:42:33

theagentd (403 views)
2017-02-18 13:35:16

h.pernpeintner (1571 views)
2017-01-24 22:39:11

h.pernpeintner (1558 views)
2017-01-24 22:38:32

Galdo (2122 views)
2017-01-12 13:44:09

Archive (2112 views)
2017-01-02 05:31:41

0AndrewShepherd0 (2647 views)
2016-12-16 03:58:39

0AndrewShepherd0 (2351 views)
2016-12-15 21:50:57
List of Learning Resources
by elect
2016-09-09 09:47:55

List of Learning Resources
by elect
2016-09-08 09:47:20

List of Learning Resources
by elect
2016-09-08 09:46:51

List of Learning Resources
by elect
2016-09-08 09:46:27

List of Learning Resources
by elect
2016-09-08 09:45:41

List of Learning Resources
by elect
2016-09-08 08:39:20

List of Learning Resources
by elect
2016-09-08 08:38:19

Rendering resources
by Roquen
2016-08-08 05:55:21 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‑
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!