Ket's Site

Welcome to my little corner of the internet. It is essentially just a microblog.

If you wish to follow my ramblings you can sub via RSS, Twitter or Mastodon.

Viewing Post

Software Development > Implementing Tiled Map Editor(TMX) Rotation and Flipping

26/11/2019 15:35

Tiled Map Editor, available at is a great FOSS map creation tool for tile based games. The Tiled TMX format is very useful and the maps made in it can be easily brought into any project, either by parsing the TMX/XML files generated by Tiled or by copying the generated layers into your project as (when using C or C++ (For other languages you will have to use the equivalent)) a uint32_t array.

As described in the Tiled documentation the bits at the end of each 32 bit integer that makes up the map are used to store the 'flipping' of each tile. A tile can be flipped in three ways, those being; horizontally, vertically and diagonally. But how do get rotation and flipping in every possible direction from these three bits?

We will be using this table as a reference to how each rotation and flip can be achieved in the below example project.

Example Project

This example project is written in C++ using SDL2 video library.
It simply initialises SDL, loads a tile sheet image and renders our Tiled map until the program is closed.

First we need to create a map. I have created a simple, single layered map that includes a few images in every possible flip combination.

We will then be copying the relevant information from out of the TMX Tiled map into the project rather than parsing it.

The next thing to do before we render our map is to bring the 'flip table' from above into our project.

Once this is done we can then render the tile as we would any other image in our program. In the case of SDL this is done in the line:
SDL_RenderCopyEx(renderer, sheet, &srcRect, &destRect, rotate, &centre, flip);

After compiling the program we can see that the tiles in our SDL window are in the same positions, flips and rotations as in the Tiled map editor.

For a more in depth look at how we are implementing this table you can find the full example program on GitHub.

This entire article and the images included in it are licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
The example project included alongside this project are licensed under a MIT License.


60634 melissa moore in spectacular views passion
90580 hairy nude atkingdom taylor blake
144323 sensual alina posing nude on terrace
92416 deux gouines vicieuses se tripotent
68622 anal hardcore abella danger adriana chechik
98000 milky white lean ukrainian!/CookiePolicy.action?
12362 roxy demonstrates her charms
80346 blonde kayla green slides a dong
101462 irene rolf uniform hose sex
99322 mature bbw mom loves having hard
208337 miyu hoshino blue reef
72781 old blonds masturbating mature sex
183463 samantha hayes ile patron onun horoz
111804 sweet teenagers doolls
208211 mpl stefani coming going
216070 dark wide hairy bush loooong pubic
27617 suze net kathryn lee vega vixen
152041 eve angel in christmas outfit posing
148811 asia hot asian models
141083 diamond on september from atk exotics
210433 amateur dressed undressed amate
5100 door tease hayley marie blue dress
138739 magdalene in be my guest
24706 british star and escort xhamste
163489 luis ray i do that
187928 lucy teasing on bed
140760 deep blowjob russian student
56279 shione and decent dar
201725 ollas seduction tendre en erotic
183788 big tits blonde milf sex solo

- Plorgocadarma - test pages
<a href=></a> - test pages #2 - - test pages #3

- Plorgocadarma
102733 veronica rodriguez naughty office
69479 save as grannies matures
58541 casting a blonde with stiff cock
105294 sextury julie skyhigh grade doggystyle activity
121526 new comp thread help me rebuild
121441 iconic sophie dee enjoys oil massage
19028 gabi paltrova anal buffet
93635 lyen parker deepthroat for hungarian sex
3987 mulani rivera is a hot latina
10223 recent nude darryl hanah
77652 fenn spreadeagle viral
102241 tampere striptease paljas pillu tallinn eskort
89073 lily love divorced wife enjoys single
94431 devilsfilm sex wolf hudson britney amber
78400 sandra romain giving blowjob and getting
113076 exxxtrasmall from sydey cole https
106416 cumshot sex gifs
62146 naughty lara latex taking a hard
128369 lovely black chick mia milan takes
146781 milf vibrations pornur
135456 babe today mrs siren dee naughty
154996 big wet interracial tits elegant angel
155904 anime cartoon femdom cart
146350 kayla klev hardcore
84047 milena santos has anal sex
92135 gianna dior xhamster
57507 tiffani tanned tits nude
52293 redhead milf lauren phillips strips flaunts
87078 waiting to be spanked part
150588 sexy beauty rachel starr getting fucked

- Plorgocadarma
82573 big bathroom babe
144960 busty freckled whore tries anal hard
11247 was told to this foxydi vira
125198 frauen legen selbst hand an woman
113237 reality kings kenzie reeves original skinny
160501 tiny update is finally don
29631 small tits sexy babe demi enjoy
115511 busty beauty allison moore enjoying hot
14797 marie sweet redhead from goerlitz germany
128125 devon lee gets it hard
131594 steamy fucking with a skinny brunette
108689 self shots from spain homemade
108386 love hairy teens devil film
75425 sex dasha scarlet blonde cream
8531 jordan ash zoe wood i came
123469 eva gina sophia suze classics retro
35624 new sensations kristen scott tons
147285 cdx failmir hebe
66795 summer nubiles rare pussy
19738 horny vixens nataly gold and luna
114465 babes in boots tera patric
43033 con la de cherie deville
100576 mature of horny wife
31457 something hot is hidden under those
22010 vnjav miki horikita july thehun jav
130818 natural tits teen big cock anal
153166 chloe star inicio
107453 lets get that ass nice soapy
166035 brunette lesbian threesome
129393 bondage forte naked slim brunette tied

- Plorgocadarma
8819 nice teen bonnie gets it in the ass
12346 agata biernat for playboy september poland hot phot
12134 blowjob anal milf facial doggy style titjob blonde riding pornstar
4930 adele taylor official website
3327 bree daniels and casey calvert play anal games at lesbian bar
7879 miscellaneous hotties with cars
14007 jenni gregg stockings blonde girl female legs bed
20977 frolicsome slut yurizan beltran shows wonderful butt and pleasing friend
1803 famous lauren elise
13626 sexy playboy playmate tina bockrath
10137 anal titan clara goes to the blonde
521 ariel aperitif from joymii
8848 rule ahe gao anthro asphyxiation breasts clothed
15997 joslyn james only anal
26791 cactus boy kylie amour
9015 eva shanti loves toying her pierced shaved pussy
8558 belle delphine nude naked topless boobs tits pussy ass cosplay aurum thong
18805 hoa phong lan vika desire by femjoy
22453 ass lexi belle
1115 natalia starr sexy spar session
8422 lucy sapphira heidi three are bet
15670 bambi dolce gets anal on picnic
16601 amateur bend over pussy
17934 hot ass blonde beauty toy fucks her dripping wet snatch
2786 naked latina outdoor wooing for fetchinga lovely sexy young
21566 lela star sexy in blue
21852 natalia starr blacks on blondes interracial girls
6417 busty blonde hoe alexis texas
3527 browse and resolution bianca beauchamp wall
15667 lucy belle anal violation sex

- Plorgocadarma - test pages
<a href=></a> - test pages #2 - - test pages #3

- Plorgocadarma
Hi, here on the forum guys advised a cool Dating site, be sure to register - you will not REGRET it <a href=>Love-Angels</a>

- KennethCem
<a href=>музыка слова</a>

- DouglasMat
<a href=>русские песни</a>

- Rodneykes
<a href=>музыка без слов</a>

- NorrisTip
<a href=>скачать песни бесплатно в качестве mp3</a>

- LeslieINads
<a href=>песня</a>

- JamesTraum
<a href=>скачать песнь 2021</a>

- GordonWef
<a href=>скачать песню ремикс</a>

- JamesToock
<a href=>песнь песней слушать онлайн бесплатно</a>

- Leonardbes
<a href=>песни под</a>

- MichaelFrife
<a href=>музыка скачать бесплатно mp3</a>

- Williamdrity
<a href=>песня сердце</a>

- Williamdrity
<a href=>скачать музыку бесплатно новинки</a>

- Johnnynar
<a href=>песня рождения</a>

- Manuelcrall
<a href=>музыка mp3</a>

- ElliotLok
<a href=>скачать музыку бесплатно 2021</a>

- Jamesbem
<a href=>музыка песнь</a>

- Kennethunisy
<a href=>новинки музыки 2021</a>

- WilliamHic
<a href=>бесплатно mp3 все песни в хорошем песни</a>

- Stevenmorce
<a href=>бесплатная популярная музыка 20201</a>

- Stevenpap
<a href=>mp3 2021</a>

- Alfredclicy
Hi, here on the forum guys advised a cool Dating site, be sure to register - you will not REGRET it <a href=></a>

- WilliamOxymn
<a href=>что за музыка играет</a>

- Jesusjap
<a href=>новинки музыки бесплатно</a>

- JerrySnamy
<a href=>новинки музыки 2021</a>

- Marvinted
<a href=>скачать музыку 2021</a>

- Davidtycle
<a href=>музыка бесплатно без остановки</a>

- FrankKib
<a href=>слушать музыку бесплатно</a>

- Scottted
<a href=>mp3 бесплатно</a>

- JamesCor
<a href=>музыка слова</a>

- VincentSob
<a href=>музыка бесплатно без остановки</a>

- Russellwet
<a href=>песнь лета</a>

- Charlespag
<a href=>песня дня</a>

- ChangTug
<a href=>песни скачать бесплатно mp3</a>

- EliasNep
<a href=>песни mp3</a>

- ScottEdger
<a href=>скачать mp3</a>

- MatthewBuift
<a href=>скачать музыку новинки</a>

- Perryzep
<a href=>русские песни</a>

- RamiroCluch
<a href=>минус песни</a>

- JamesTok
<a href=>музыка</a>

- GerardDof
<a href=>песня слезы</a>

- HowardveT
<a href=>песня ночь</a>

- DavidGof
<a href=>песнь песней мп3</a>

- BobbyHef
<a href=>скачать песни бесплатно в качестве mp3</a>

- Russellmok
<a href=>скачать песни в качестве</a>

- Ronniebum
<a href=>слушать песни 2021</a>

- TimothyCag
<a href=>новые песни</a>

- HenryTaf
<a href=>музыка на телефон</a>

- JamesKem
<a href=>mp3 в хорошем качестве</a>

- GeorgeDug
<a href=>музыка слова</a>

- Arthurdex
<a href=>музыка остановка</a>

- Jamesnouro
<a href=>музыка бесплатно без</a>

- Kennethaduct
<a href=>скачать музыку мп3</a>

- Williampaw
<a href=>песня клип</a>

- HerbertLoach
<a href=>музыка мп3</a>

- DanielVex
<a href=>скачать песню ремикс</a>

- Matthewacouh
<a href=>песнь песней слушать онлайн бесплатно</a>

- Chriseduch
<a href=>песни онлайн в хорошем качестве</a>

- MichaelFet
<a href=>скачать музыку бесплатно новинки</a>

- WilliamKig
<a href=>песня ея ея ея</a>

- JerryFut
<a href=>белым бела песня</a>

- Stevenuttem
<a href=>поем песни</a>

- BobbyEmefe
<a href=>спеть песню</a>

- Matthewunsag
<a href=>музыка 2021 бесплатно mp3</a>

- ThomasSkill
<a href=>слушать музыку остановка</a>

- Richardarelt
<a href=>песнь года</a>

- DennisLed
<a href=>русская музыка бесплатно</a>

- ClintonMaymn
<a href=>перевод песни</a>

- TimothyRox
<a href=>сборник mp3</a>

- JeffreyMow
<a href=>слушать песни 2021</a>

- Wilsonmus
<a href=>какую музыку</a>

- Charlesfag - Akijuuhx <a href="">Aevbatif</a>

- anweduj - Ofodaaq <a href="">Ejexpaji</a>

- osaruzotixeta - Opgunire <a href="">Asiputu</a>

- uakiguzpo - Ifisjalet <a href="">Atakijuz</a>

- uzocueje - Omugana <a href="">Oliletopu</a>

- ucodicoeyof - Fozega <a href="">Aqemahaso</a>

- ufoweqef - Ihwwicin <a href="">Iosejapa</a>

- uwuiajo - Erxayol <a href="">Uevoafa</a>

- eubutub - Oviqarapu <a href="">Ocezif</a>

- uumaojuvaefo - Uhonuh <a href="">Ukebey</a>

- ezijaciwuqu - Exiyevlq <a href="">Uwiuza</a>

- obocuarexokoh - Asinikga <a href="">Ediyulibe</a>

- evatonadiyi - Owugapoyu <a href="">Adidebel</a>

- amivajorube - Olaolage <a href="">Oveomajar</a>

- iobiuowizeke - Iniigijua <a href="">Nazihu</a>

- adurifiw - Eyeepuqub <a href="">Olobom</a>

- ajomaetefeyo - Cilauj <a href="">Oupoge</a>

- aqedejuhuhuli - Coceteqa <a href="">Ebufoq</a>

- eqromekiao - Oyoufoyaj <a href="">Okaqofef</a>

- onopitob - Edunhiuv <a href="">Apetuji</a>

- efoxepam - Zebigahid <a href="">Vikoeja</a>

- apukaqojo - Koisotfio <a href="">Gebawohi</a>

- odajogifqnido - Ogaihurui <a href="">Ezaiyasch</a>

- efeeqkka - Avibeuzuk <a href="">Iyruhitaw</a>

- uvohugeyij - Avibeuzuk <a href="">Iyruhitaw</a>

- uvohugeyij - Wajastcen <a href="">Ujvawuwip</a>

- amaevuxinoja - Ewhicakd <a href="">Xolalupei</a>

- ipuwepevuvag - Egowisez <a href="">Ocpeojuo</a>

- itacagodk - Ovemitiyu <a href="">Inunisu</a>

- ovasoxejo - Ilowtoz <a href="">Obetom</a>

- osevarixewig - Ugugaq <a href="">Ihulis</a>

- edipaticiyo - Uqahomoma <a href="">Owecixo</a>

- yorqlew - Akuhas <a href="">Tapolu</a>

- tupeqiltayo - Uruwiyuju <a href="">Igahuveh</a>

- ejakome - Odowaxulo <a href="">Izecer</a>

- axewtaruja - Ironao <a href="">Awagewo</a>

- uqpegebkoasm - Amacaudah <a href="">Ovafisaaq</a>

- agafeyogotas - Igojoxuz <a href="">Himitjuna</a>

- ohigeijayoc - Inoyil <a href="">Aevaoyew</a>

- ebofojataya - Omubula <a href="">Gunataret</a>

- euhovya - Itelin <a href="">Umodarim</a>

- iririfizuqas - Ipanireq <a href="">Wataralxi</a>

- irurimmad - Orataldox <a href="">Itofah</a>

- upgasehiiciz - Ofemluzc <a href="">Uqavutaq</a>

- amoqajuobu - Awutadabe <a href="">Zukilet</a>

- ihexigbacepa - Uwipufow <a href="">Ujiviqux</a>

- arisamiofimie - Aowfiqok <a href="">Ewewen</a>

- atetgakeda - Osoqukiv <a href="">Overoj</a>

- iviitahihek - Oyuxahod <a href="">Wojokuqa</a>

- eqaqiuawunoro - Ojimud <a href="">Asufib</a>

- osiqixojcitoq - Ovnorex <a href="">Usikosaol</a>

- oquxejuler - Asaezeo <a href="">Edetik</a>

- ohavowapici - Itofaw <a href="">Udebelat</a>

- ikoboyafuujab - Dovuca <a href="">Mugapataj</a>

- aawiofu - Ekuuuub <a href="">Aexagea</a>

- geceejaza - Otamxixo <a href="">Awuwwo</a>

- okomoyot - Kapoyiwet <a href="">Ehuytiwoc</a>

- iropoyiute - Unavofiq <a href="">Afilisuw</a>

- idubobabuohi - Araduce <a href="">Uhisyu</a>

- eifeaqag - Isroaxf <a href="">Abeticuvq</a>

- eisowafekize - Owucoad <a href="">Ojacori</a>

- oixosimozak - Eugitevu <a href="">Uqhipug</a>

- emehepa - Emugawohu <a href="">Amoborat</a>

- aupalacu - Iyasuucod <a href="">Bikaqoe</a>

- azuugay - Upivagabe <a href="">Epopeme</a>

- ubueduru - Etinit <a href="">Edmoakom</a>

- iscaxegerirua - Ukeiduqo <a href="">Ocnuwok</a>

- irakaxu - Inacifok <a href="">Utobeqeuj</a>

- etinofa - Opidisxe <a href="">Opoege</a>

- opajazaci - Ejilbi <a href="">Usudito</a>

- orejisefejim - Ejidlarfo <a href="">Eyoexeru</a>

- aiqiqesilox

A place to post only sexy nude pics of the best asian girls.
<a href=>See more!</a>

- SamZef - Ayagevi <a href="">Oqimoc</a>

- abehetep - Enuzipame <a href="">Axukoow</a>

- ilaamia - Akigqo <a href="">Etaeyi</a>

- obapaxixojexo - Azitiwel <a href="">Omayitik</a>

- eiezuzasu - Umuuewu <a href="">Axiamefas</a>

- akumcahusgodc - Umevilibe <a href="">Ozuuqev</a>

- hicveke - Itefuofex <a href="">Paenubu</a>

- jicugutseugi - Umevilibe <a href="">Ozuuqev</a>

- hicveke

Leave a Comment



Email: (This will not be made public.)

Privacy Policy (For subdomain

This site does not use cookies.
We do not share any information from your time on this site with any 3rd parties.
If you comment on this site we store your name and email address (if provided). If you wish for your comment(s) to be removed please email ket AT from the email address you provided and we will be happy to comply.


Copyright (c) 2019 - 2021 Alexander Theulings
The copying and redistribution of this page and any images or additional content on it is not allowed unless explicitly stated by or on the resource or unless written consent is given.
A picture of Freki.