namelessvoid / qrwar

:european_castle: Pen&Paper like quad ruled war game.
MIT License
6 stars 0 forks source link

Tileset #23

Closed namelessvoid closed 11 years ago

namelessvoid commented 11 years ago

Implement a Tileset system. It consists of texture file that contains all tiles and a description file (.xml or jason?).

Example:

<file href="./tileset.png" />
<tile name="swordman" x="0" y="0" widht="32" height="32" />

or

{
     "file": "./tileset.png",
     "swordman" : {
                "x": 0,
                "y": 0,
                "w": 32,
                "h": 32
        }
}
namelessvoid commented 11 years ago

Thanks to issues with some json libraries I fell back to TinyXML2 with 56a61f26d356b8145c35ba3b86fece3e3326dd01.

namelessvoid commented 11 years ago

Closed with 1edcf27d5c5a9dc3204c3378a5c0d19950b55f21.