Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: GID code example tweaks (#3807)
Updated the example C++ code to use "get_tile" as the hypothetical method to get a tile based on its ID instead of "tileAt", for two reasons: 1. The rest of the code uses snake_case, but this one used camelCase for some reason. 2. "tileAt" sounds like it implies that the ID is a location/index. This is misleading, since in Tiled tilesets, the ids are not necessarily positions or indices - tiles may be stored out of order, and the IDs may not even be sequential. I think "get tile" avoids such implications.
- Loading branch information