Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to draw a hexagon grid in my Android application. I don't want to reinvent the wheel here so I'm looking for some frameworks/libraries or just some basic ideas about how should one do this. Do you have some ideas?

What I found so far:

share|improve this question
up vote 6 down vote accepted

The math applies to any platform, of course. Since you asked for basic ideas on how to do this: just use the code from the first link you provided. The java code for implementing all the required formulas is present and could be used as-is. Then you have an excellent example of how to tie that class into your existing code. Use the source from the simple java test applet as a guide to help you integrate this into your code.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.