[Rails] Help building online game
Victor Jalencas
victor-ronr at carotena.net
Sun Dec 26 10:18:01 GMT 2004
Thad, I have done this before. In that occasion, I was using C# and
could use its extensive graphics library to render the graphics in
memory, convert them to png and stream them back to the client browser.
I don't know which graphics libraries are available from ruby. Probably
the Gnome Canvas would be a good try. Another possibility could be to
use SVG, which frees you from having a particular graphic library
installed on the server and makes the dowlonads lighter, but not all
clients support it natively.
In any case, it is not difficult once you've worked the proper
trigonometry out. Maybe these links can help you:
http://www.gamedev.net/reference/articles/article1800.asp
http://www.gamedev.net/reference/articles/article730.asp
http://www.gamedev.net/reference/articles/article723.asp
http://www.gamespp.com/algorithms/mouseHitsOnAHexagonGrid.html
http://www.gamedev.net/reference/articles/article747.asp
cheers
Victor
Thad Guidry wrote:
> Now I just need some helpful hints from the community as to what I
> could use to display a hexagonal playing field of about 40x40 hex
> units. Trying to build an online strategy game with Ruby on Rails.
> Working out the methodology on paper and then scaffolding some. Any
> ideas which technologies I could possibly use ? other than just
> simple .gifs as icons and maybe overlayed css graphics ? Would that
> be the fastest page redraws on screen? Basically, I'm planning on
> having units move from one hex to another. What technologies or
> programming logic would best suit to display this?
>
> - Thad
> _______________________________________________
> Rails mailing list
> Rails at lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
More information about the Rails
mailing list