<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.xna.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Game Design</title><link>http://forums.xna.com/forums/44.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 0.0)</generator><item><title>Re: 2D Side Scroller with inclined walking area</title><link>http://forums.xna.com/forums/thread/182112.aspx</link><pubDate>Sun, 24 May 2009 14:15:35 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:182112</guid><dc:creator>fritolay</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/182112.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=44&amp;PostID=182112</wfw:commentRss><description>There are some examples of this exactly as you have described with source code. You can find it by searching through the forum a little deeper.&lt;br /&gt;</description></item><item><title>Re: 2D Side Scroller with inclined walking area</title><link>http://forums.xna.com/forums/thread/181287.aspx</link><pubDate>Thu, 21 May 2009 23:16:41 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:181287</guid><dc:creator>crabby</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/181287.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=44&amp;PostID=181287</wfw:commentRss><description>HAven&amp;#39;t played castle crashers, but I was watching one of the art videos by Synj posted on the dev blog and noticed a boundary layer flashed a couple times. I think they defined the level with a bunch of line segments. Not sure of how they would code that though. Probably a formula out there to tell if a point is on the left side or right side of a line segment.&lt;br /&gt;
&lt;br /&gt;
Here&amp;#39;s the video I was talking about. There are these red lines that flash on screen around the 1:50 mark which look a lot like collision boundary information&lt;br /&gt;
&lt;a href="http://devblog.thebehemoth.com/?p=105"&gt;http://devblog.thebehemoth.com/?p=105&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Here&amp;#39;s an idea for doing inclines. Use a list of x,y points descirbing the maximum height points at various parts of your level. Say you wanted a level 400 px long with a small 50 px tall, 50 px long pyramid in the center. Your list would have 5 entries like so: [0,0] [175,0][200,50][225,0][400,0]&amp;nbsp; What you would do is loop through this list to find the two points the player&amp;#39;s x position is between. Then you find the slope for the line segment those points form and plug it into a simple y=mx+b formula to find out what the y position should be. &lt;br /&gt;
&lt;br /&gt;</description></item><item><title>Re: 2D Side Scroller with inclined walking area</title><link>http://forums.xna.com/forums/thread/180879.aspx</link><pubDate>Thu, 21 May 2009 03:55:23 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:180879</guid><dc:creator>Category 5</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/180879.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=44&amp;PostID=180879</wfw:commentRss><description>Hey Ben,&lt;br /&gt;
&lt;br /&gt;
Thanks for the reply, those are some good suggestions, I will look into trying them out to see if I can figure out how to get the look that I want. Thanks again.&lt;br /&gt;
&lt;br /&gt;
-C5&lt;br /&gt;</description></item><item><title>Re: 2D Side Scroller with inclined walking area</title><link>http://forums.xna.com/forums/thread/180841.aspx</link><pubDate>Thu, 21 May 2009 01:30:01 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:180841</guid><dc:creator>Ben Andersen</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/180841.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=44&amp;PostID=180841</wfw:commentRss><description>You can do it all with tiles however your platforms will be very blocky, unless you have some special way to determine a tiles collision.&lt;br /&gt;
&lt;br /&gt;
One way to defeat this, is you define for every tile a line that relative to some relative origin, that will describe where the boundary the tile describes. if the player is below this line then he&amp;#39;s collided with the ground.&lt;br /&gt;
&lt;br /&gt;
Another method is to have it flag a collision if the player is positioned over a pixel that is of a certain mask color.&lt;br /&gt;
&lt;br /&gt;
Another would be to define the shape of the level terrain with line segments and see if the player collides with this geometry.&lt;br /&gt;
&lt;br /&gt;
etc etc etc&lt;br /&gt;
&lt;br /&gt;
simply put there are a lot of ways to get boundaries which are not squares, it just takes some coding. There isn&amp;#39;t an easy fix, I&amp;#39;m afraid.&lt;br /&gt;</description></item><item><title>2D Side Scroller with inclined walking area</title><link>http://forums.xna.com/forums/thread/180804.aspx</link><pubDate>Wed, 20 May 2009 23:45:06 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:180804</guid><dc:creator>Category 5</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/180804.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=44&amp;PostID=180804</wfw:commentRss><description>Hi Guys,&lt;br /&gt;
&lt;br /&gt;
I have just finished the tutorials from XNA and would like to design a platform game with a &amp;#39;play&amp;#39; / &amp;#39;walking&amp;#39; area similar to Castle Crashers. I am not sure what that &amp;#39;area&amp;#39; would be classified as, or what would be necessary to build it. It almost seems like tiles, but do they stop at the center of the screen, which is followed by the background layers? Any insight would be most apreciated. Thanks all.&lt;br /&gt;</description></item></channel></rss>