I think that's a lot more complex than I can handle at the moment. Here's how I'm running things at the moment: maps: create an array of int variables (one per square) and set them to the terrain type I want.
Saving (not written yet at all): I have a list of variables in
memory for the players stats/items etc, I would write these to a file and use Scanner to load them back into memory later. Movement (unwritten/tentative): I'm planning to have a method that would calculate the array value of a map coordinate in a specific direction (start=caller's position,east=start+1, north=start+mapWidth, etc), and then tell what type of terrain that is. If it's clear, an I want to move multiple squares (ranged weapons/line of sight) I keep running that method until I hit a wall. Ai: I have absolutely no clue how I want to code this (maybe build a line of sight for the enemy and if the player goes there have the enemy move or attack).

In general, I'm trying to keep the code as simple as possible, as I'm not great with geometry, and my trig is limitted at best.

Thanks,
John.

---
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