Hi John,

Quote
        I've recently started trying to begin to program some simple
games in java. I'm working from a command line syntax, and I was
wondering if anybody on here would be able to give me some guidance on
a few subjects.
End quote

Yes, among the languages I know or have used Java is one of them. I
think I should be able to lend you some help. Although, I am not too
keen on using Java programming for game programming myself.

Quote
*how to manage creating and acting within maps.
End quote

This all depends on how sophisticated a collision detection you want
to incorporate into your games. The usual way you would handle this is
create an object for every wall, door, staircase, etc in your game
level and then use a bit of trig to calculate weather two objects
encounter each other or not. Another more simple way is to simply use
a 2d or 3d array and fill it up with walls, doors, staircases, etc and
then use that to find out if your player character runs into any of
those things.

Quote
*different ways of saving/loading games.
End quote

For that you will want to read about object serialization in the Java
documentation. The basic idea is you convert all of your game objects
into a binary stream and then write it out to a data file for later
use. You then de serialize that data back into your objects to restore
the state of the game.


Quote
*basic ai concepts (getting enemy characters to move within the game world).
End quote

The subject of artificial intelligence is pretty much an entire field
of study in and of itself. However, at an extremely basic level you
can use a trig formula to calculate the distance and direction to the
player object, have it move towards the player, and when the player is
in range have it attack. I think this is a subject that really
requires its own thread with examples as it is not something that can
be briefly explained in one or two paragraphs.

Quote
*possibility of playing sounds?
End Quote

Again depends on how advanced you want to go with this. You can use
the Javax Sound API for a basic sound mixer to load and play sound
clips, set volume, pan, and frequency, but that is about all it will
do. If you are thinking of virtual 3d audio then you will want the
Java OpenAL API, Joal, for that.

Quote
*possibility of compiling the game so people don't have to have the
jdk installed to play.
End quote

I personally would not do that if I were you. The entire point of
picking a language like Java is so that you the developer can write
cross-platform applications that will run on Mac, Windows, and Linux.
If you are thinking of making OS specific Java applications then I
don't see any point in using Java.

Cheers!

---
Gamers mailing list __ [email protected]
If you want to leave the list, send E-mail to [email protected].
You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/[email protected].
If you have any questions or concerns regarding the management of the list,
please send E-mail to [email protected].

Reply via email to