{"id":758,"date":"2013-12-08T01:18:36","date_gmt":"2013-12-08T00:18:36","guid":{"rendered":"http:\/\/labalec.fr\/erwan\/?p=758"},"modified":"2013-12-08T01:18:36","modified_gmt":"2013-12-08T00:18:36","slug":"vb-net-and-xna-tiled-map-editor","status":"publish","type":"post","link":"https:\/\/labalec.fr\/erwan\/?p=758","title":{"rendered":"VB.Net and XNA : Tiled Map Editor"},"content":{"rendered":"<p>As seen in article 19 (a platform game), I had came up with a text file format which I used to create levels.<\/p>\n<p>I was about to start coding a level editor when I came on this editor : <a href=\"http:\/\/www.mapeditor.org\/\" target=\"_blank\">http:\/\/www.mapeditor.org\/<\/a> .<br \/>\nThis is freeware and it seems active enough.<br \/>\nNote : a nice thread <a href=\"http:\/\/gamedev.stackexchange.com\/questions\/1886\/tile-based-2d-level-editor\" target=\"_blank\">here <\/a>around possible tile editors.<\/p>\n<p>I decided to use it with my current game project (a platform).<br \/>\nI choose the xml format (tmx format). See an example here : <a href=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/12\/level.txt\">level<\/a> .<\/p>\n<p>I then had to code a method to parse the xml file.<br \/>\nIn the process I also completed the multi-tiles to one block trick to avoid the edge-catching bug.<br \/>\nI also managed the texture tiling.<\/p>\n<p>A class to create level in a farseer world will come in a next article.<\/p>\n<p>Here below a screenshot of a level made with Tiled.<\/p>\n<p><a href=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/12\/tiled.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/12\/tiled-300x229.png\" alt=\"tiled\" width=\"300\" height=\"229\" class=\"alignnone size-medium wp-image-760\" srcset=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/12\/tiled-300x229.png 300w, https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/12\/tiled-1024x783.png 1024w, https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/12\/tiled.png 1284w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Here below a video playing this level.<\/p>\n<div style=\"width: 695px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-758-1\" width=\"695\" height=\"493\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/12\/XNA_DEMO_19-08-12-2013-01-16-47.mp4?_=1\" \/><a href=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/12\/XNA_DEMO_19-08-12-2013-01-16-47.mp4\">https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/12\/XNA_DEMO_19-08-12-2013-01-16-47.mp4<\/a><\/video><\/div>\n","protected":false},"excerpt":{"rendered":"<p>As seen in article 19 (a platform game), I had came up with a text file format which I used to create levels. I was about to start coding a level editor when I came on this editor : http:\/\/www.mapeditor.org\/ . This is freeware and it seems active enough. Note : a nice thread here <a href='https:\/\/labalec.fr\/erwan\/?p=758' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34,35],"tags":[],"class_list":["post-758","post","type-post","status-publish","format-standard","hentry","category-dotnet","category-xna","category-34-id","category-35-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"_links":{"self":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/758","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=758"}],"version-history":[{"count":1,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/758\/revisions"}],"predecessor-version":[{"id":762,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/758\/revisions\/762"}],"wp:attachment":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=758"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=758"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=758"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}