Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float ox = x * (float)Geometry.MapHexWidth;
- float oy = y * (float)Geometry.MapHexHeight;
- xcoord = (oy - ox) - proto.OffsetX;
- ycoord = ((cy + (cx / 2)) * Geometry.MapHexLineHeight) - proto.OffsetY;
- if (!(y == 0 && x == 0))
- {
- if (x % 2 == 1)
- {
- ycoord -= Geometry.MapHexLineHeight/2;
- }
- if (x > 1)
- {
- xcoord += (x/2)*Geometry.MapHexHeight;
- }
- }
- // Offset when drawing stuff... this is probably wrong...
- xcoord -= (Bitmaps[scenery].Width)
- ycoord -= (Bitmaps[scenery].Height)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement