Favorite Tilesets
Posted: Mon Sep 26, 2022 10:11 pm
I was wondering what tilesets are preferred among the freeciv community. Please mark your favorites above. If other, please name your favorite below.
Freeciv - because civilization should be free!
http://forum.freeciv.org/f/
Good to know. It's not long since I wondered if it was worth the time to implement a feature that makes difference only in square topologies (ability to check if a direction is cardinal or not in lua - all directions are cardinal in hex topologies)
Can already be done in Lua. No need for more hardcoded tolua.
Code: Select all
function cardinal(t1,t2)
local dx, dy = math.abs(t1.x - t2.x), math.abs(t1.y - t2.y)
return dx == 0 and dy == 1 or dy == 0 and dx == 1
end
That checks if two tiles are cardinally adjacent, not if a direction is cardinal. While you can usually make such tiles out from a direction, that might get a bit hard in some cases (edge of the map). Not that discussing the need for the feature is that relevant any more; it was implemented a month ago (over five years after requested, so there was some time to discuss it) : https://forum.freeciv.org/f/viewtopic.p ... 4&start=29Can already be done in Lua. No need for more hardcoded tolua.Code: Select all
function cardinal(t1,t2) local dx, dy = math.abs(t1.x - t2.x), math.abs(t1.y - t2.y) return dx == 0 and dy == 1 or dy == 0 and dx == 1 end