Islands with owners
So, each island in the world can now be owned by a player. This doesn’t sound like much, but it took quite a while to get working – I’m doing a flood-fill algorithm on any “tiles” that are sitting above sea-level, and that collection of tiles then gets assigned an island ID. The flood-fill took far longer than anticipated… the spherical terrain is a distorted subdivided cube, and I had various issues with grabbing the adjacent faces (and correct coordinates at the adjacent faces) of the cube. This had to be done to ensure that islands could cross from one cube face to another.
Anyway, screenshot time. Each colour represents a different player (this is a debug view, I don’t plan to keep the multi-coloured islands!). There’s a tank in there, too (on the left), that I modelled earlier today. Hopefully I’ll have some actual gameplay for the next update!
Comments
