[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: (TFT) Online Melee
--- Steve Reinhardt <email@example.com> wrote:
> So far I have not had to resort to trigonometry for anything.
> Hexes are
> identified by a pair of coordinates and distances are measured by
> counting hexes rather than along a straight line. Line of fire is
> handled by looking at intervening hexes based on these coordinates.
> haven't planned on building the map. I was just going to overlay
> figures over an image of the map, tilted so the hex-grain runs
If you haven't already, check out these page of game programming
Isometric 'n' Hexagonal Maps
Coordinates in Hexagon based tile maps
If you want to put artificial intelligence into the movement (I used
this in my Java Ogre game described below), one of the most popular
pathfinding algorithm is the A* (A-Star) algorithm.
Also, Google just released its source-code search engine. The
hexagon in them:
I've written a prototype for Melee in Java (could be run as an
Applet) that handles movement on a hexgrid, facing, etc. The nice
you want to rotate a GIF 30 degrees or whatever, you can do it
relatively easily. Data structures are a piece of cake (Collection
API), etc. The "look" is nice using Swing GUI. However, the source
code quickly became ugly and I have lost interest a bit.
Theoretically, C# (Microsoft's Java) and its API would do just as
well, although I've never tried.
Over Christmas break a few years back, based on the prototype for
Melee, I finished a player-vs-computer version of Steve Jackson's
Ogre. But as it contains the full rule-set of the Ogre game, scans of
the counters, etc. I won't distribute it because of copyright. I did
pay for the game myself (more than once, first in the 80s and again
in 2002). I actually contacted Steve Jackson about this Java version,
but he pointed out that he is in the business of selling paper-based
games and obviously didn't like the idea of a free Java-based version
floating around on the internet.
Java code is kinda like the ROMs you run on a console game, and the
Java Virtual Machine (aka JRE that you download and install) is like
an emulator of a console, and since the JRE exists for MacOS,
Windows, Linux, etc., Java code can be easily copied/run on any
platform. I proposed to SJ the idea of a game server, where people
would have to log in (and pay to play), but I don't think there's any
money in that these days (given the real-time 3D games like World of
Warcraft, Halflife, whatever). I recall that Starfleet Battles had
some kind of online, server-based system, but I have no idea how
profitable it is... Anyway, I digress...
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
Post to the entire list by writing to firstname.lastname@example.org.
Unsubscribe by mailing to email@example.com with the message body