Now lets actually make the damn thing.(this is the hardest part)(This is made in unity btw)
First is the grid itself. A hexagonal grid. I will follow this tutorial: https://catlikecoding.com/unity/tutorials/hex-map/part-1/
Note that since the game is pixelated and pixels can't acurately do Sqrt(3), I will use this as a base.
It is roughly a hexagon. And every sprite will be based on these tiles.
The grid will be based on a skewed cordinate system. Where 1 x unit means 1 hexagon up and 1 y unit means 1 hexagon up right (60 degrees).
Then I create a helper script that helps convert between world codinate and grid cordinate. With this, I can use a 2D array to store every tile in the map.
You can see how this plays out in the demo here: https://fetss.itch.io/cosmicconveyor