Blog created!
Starting a new project and using this blog as a diary of my development over (hopefully) a long period of time. Game idea is a game similar in battle style to Final Fantasy Tactics Advanced, with a hex-grid twist.
First thing is first, hex-grid! I've been reading up a lot about hexagonal math and programming related to game development on a hexagonal grid. My main resource (and such an amazing one) is located at:
http://www.redblobgames.com/grids/hexagons/
I highly recommend this to ... everybody. For me at least, this is an amazing learning tool. Interactive diagrams and code, and logic and math taught well, to not only copy/paste but to actually have an understanding of.
After reading through this, my first piece of code will simply be a HexCoordinate class which will hold the coordinates and have getters for each different type of coordinate system described in the article (offset, cube, axial). Since I feel most calculations and representation will be done in cube coordinates, I'll be storing them as this, and conversions will happen whenever the other 2 systems need to be used. If this seems to not be the case later on, I can change it, but since the battle grid will only ever consist of a few hundred tiles at the absolute maximum, I don't think calculating the conversions will ever be a bottleneck or performance concern.
No comments:
Post a Comment