<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1302335373287050777</id><updated>2012-01-02T00:26:19.967-08:00</updated><category term='tile'/><category term='background'/><category term='xna'/><category term='parallax'/><category term='game'/><category term='inspiration'/><category term='2D'/><title type='text'>BAYLOG</title><subtitle type='html'>here my log</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://bayumunajat.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1302335373287050777/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://bayumunajat.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>bayumunajat</name><uri>http://www.blogger.com/profile/09985028992139789875</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://4.bp.blogspot.com/_fzARBSK8P3M/S1PE1pjokPI/AAAAAAAAAJw/HhMTXLLQWG0/S220/113.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1302335373287050777.post-6203773177074481553</id><published>2011-11-29T17:47:00.000-08:00</published><updated>2011-12-18T21:08:10.121-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='parallax'/><category scheme='http://www.blogger.com/atom/ns#' term='inspiration'/><category scheme='http://www.blogger.com/atom/ns#' term='background'/><category scheme='http://www.blogger.com/atom/ns#' term='xna'/><category scheme='http://www.blogger.com/atom/ns#' term='game'/><category scheme='http://www.blogger.com/atom/ns#' term='2D'/><category scheme='http://www.blogger.com/atom/ns#' term='tile'/><title type='text'>CIRCULAR-SCROLLING-MAP-STYLE OF TILE-BASED-PARALLAX-BACKGROUND FOR 2D-GAME</title><content type='html'>&lt;div&gt;Midnight inspiration came into my mind after eating (-almost-forgotten) steamed-choco-berry-bread about how to design tile-based-parallax-background for 2D-game. First, I wanna explain the concept what I meant through picture below:&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-3SUJFZXmE50/TtWIoBrZVgI/AAAAAAAAAOM/ODLiHVSsHs4/s1600/map-round.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="337" src="http://1.bp.blogspot.com/-3SUJFZXmE50/TtWIoBrZVgI/AAAAAAAAAOM/ODLiHVSsHs4/s400/map-round.PNG" width="327" /&gt;&lt;/a&gt;&lt;/div&gt;I assume the circle is an island ('ISLAND MAP'-labeled) and the main character will walk around in the edge. I have a view ('CAMERA'-labeled) of gamers with direction from near-plane to far-plane, so it seems (-usual) scrolling map with parallax background. I also assume that I'll use input (left-and-right-arrow) to control the direction (to-the-east-or-the-west) of auto-move characters. The problem is when we use tile-based and define that the map is cyclic (-problem-defined).&lt;br /&gt;&lt;br /&gt;Let's start, we have an array of tile represented in Integer and the value represent the tile asset.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #6aa84f; font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&lt;b&gt;int[] arrTile = { 6, 6, 1, 1, 1, 5, 5, 5, 5, 5, 1, 1, 1, 1, 2, 2, 2, 6, 6, 1, 1, 1, 5, 5, 5, 5, 5 };&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The tile engine will process the array in order start-point is the next to the end-point.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1302335373287050777-6203773177074481553?l=bayumunajat.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bayumunajat.blogspot.com/feeds/6203773177074481553/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1302335373287050777&amp;postID=6203773177074481553' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1302335373287050777/posts/default/6203773177074481553'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1302335373287050777/posts/default/6203773177074481553'/><link rel='alternate' type='text/html' href='http://bayumunajat.blogspot.com/2011/11/circular-scrolling-map-style-of-tile.html' title='CIRCULAR-SCROLLING-MAP-STYLE OF TILE-BASED-PARALLAX-BACKGROUND FOR 2D-GAME'/><author><name>bayumunajat</name><uri>http://www.blogger.com/profile/09985028992139789875</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://4.bp.blogspot.com/_fzARBSK8P3M/S1PE1pjokPI/AAAAAAAAAJw/HhMTXLLQWG0/S220/113.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-3SUJFZXmE50/TtWIoBrZVgI/AAAAAAAAAOM/ODLiHVSsHs4/s72-c/map-round.PNG' height='72' width='72'/><thr:total>0</thr:total></entry></feed>
