<?xml version="1.0" encoding="utf-8"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Zune Boards - Development Help</title>
		<link>http://www.zuneboards.com/forums/</link>
		<description><![CDATA[For help from coding to error finding to that one thing you just can't get right]]></description>
		<language>en</language>
		<lastBuildDate>Sat, 21 Nov 2009 07:27:13 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.zuneboards.com/forums/images/styles/zune/misc/rss.jpg</url>
			<title>Zune Boards - Development Help</title>
			<link>http://www.zuneboards.com/forums/</link>
		</image>
		<item>
			<title>Line vs ball object collison</title>
			<link>http://www.zuneboards.com/forums/development-help/47218-line-vs-ball-object-collison.html</link>
			<pubDate>Thu, 19 Nov 2009 04:49:03 GMT</pubDate>
			<description>Hey gyus, i  need some help with object collison in a physics game, so we have our ball B and our Line L, righ tnow the code i have works, but its...</description>
			<content:encoded><![CDATA[<div>Hey gyus, i  need some help with object collison in a physics game, so we have our ball B and our Line L, righ tnow the code i have works, but its extremly processor expensive and lags after the 10th ball<br />
<br />
in the code we first see the line ordinates, then we see how the line was drawn and adjust our logic, then we see which way the line faces, and we do our foreach logic respectively.<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&nbsp; &nbsp; &nbsp; &nbsp; private void checkCollison()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; float x = 0, y = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; foreach (Line l in Lines)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Vector2 A = new Vector2((float)Math.Round(l.getStartPos().X), (float)Math.Round(l.getStartPos().Y));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Vector2 B = new Vector2((float)Math.Round(l.getEndPos().X), (float)Math.Round(l.getEndPos().Y));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Vector2 C;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (l.getStartPos().X &lt; l.getEndPos().X)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; C = B;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; B = A;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; A = C;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Vector2 locTo = Vector2.Normalize(B - A);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; foreach (Ball b in BallList)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (locTo.Y &lt; 0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (; A.X + x &gt;= B.X &amp;&amp; A.Y + y &gt;= B.Y; )<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ((b.getXpos() + 29) - (A.X + x) &gt;= -4 &amp;&amp; (b.getXpos() + 29) - (A.X + x) &lt;= 4 &amp;&amp; (b.getYpos() + 15) - (A.Y + y) &gt;= -4 &amp;&amp; (b.getYpos() + 15) - (A.Y + y) &lt;= 4)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; b.setXpos(b.getXpos() - 3);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; b.setXspeed(b.getXspeed() * -0.8f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; b.setYspeed(b.getYspeed() + (locTo.X * -0.1f));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x += locTo.X;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; y += locTo.Y;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if (locTo.Y &gt;= 0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (; A.X + x &gt;= B.X &amp;&amp; A.Y + y &lt;= B.Y; )<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ((b.getXpos() + 29) - (A.X + x) &gt;= -4 &amp;&amp; (b.getXpos() + 29) - (A.X + x) &lt;= 4 &amp;&amp; (b.getYpos() + 15) - (A.Y + y) &gt;= -4 &amp;&amp; (b.getYpos() + 15) - (A.Y + y) &lt;= 4)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; b.setXpos(b.getXpos() - 3);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; b.setXspeed(b.getXspeed() * -0.8f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; b.setYspeed(b.getYspeed() + (locTo.X * 0.1f));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x += locTo.X;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; y += locTo.Y;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; y = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }</code><hr />
</div>i was wondering, if anyone can help improve my code, or has a more efficient method, Thanks for the help.</div>

]]></content:encoded>
			<category domain="http://www.zuneboards.com/forums/development-help-194/">Development Help</category>
			<dc:creator>itsthatsguy</dc:creator>
			<guid isPermaLink="true">http://www.zuneboards.com/forums/development-help/47218-line-vs-ball-object-collison.html</guid>
		</item>
		<item>
			<title>Graphics Device Manager</title>
			<link>http://www.zuneboards.com/forums/development-help/47053-graphics-device-manager.html</link>
			<pubDate>Wed, 11 Nov 2009 02:20:48 GMT</pubDate>
			<description><![CDATA[I am using the GameStateManagement Sample on the Xna creators site which doesn't use a graphics device manager. I had to intialize my own here:...]]></description>
			<content:encoded><![CDATA[<div><div align="left">I am using the GameStateManagement Sample on the Xna creators site which doesn't use a graphics device manager. I had to intialize my own here:</div><font size="2"><font color="#2b91af"><font size="2"><font color="#2b91af">GraphicsDeviceManager</font></font></font></font><font size="2"> graphics;</font><br />
 <br />
<font size="2"><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">if</font></font></font></font><font size="2"> (graphics == </font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">null</font></font></font></font><font size="2">)<br />
{<br />
graphics = </font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">new</font></font></font></font><font size="2"><font color="#2b91af"><font size="2"><font color="#2b91af">GraphicsDeviceManager</font></font></font></font><font size="2">(ScreenManager.Game);<br />
}<br />
 <br />
But I keep getting this popup when the game is playing:<br />
 <br />
An unhandled exception of type 'System.ArgumentException' occurred in Microsoft.Xna.Framework.Game.dll<br />
Additional information: A graphics device manager is already registered.  The graphics device manager cannot be changed once it is set.<br />
 <br />
I only have one graphicsdevicemanager initialized, unless the sample has its own, which I don't think it does. Any help?<br />
</font></font></div>

]]></content:encoded>
			<category domain="http://www.zuneboards.com/forums/development-help-194/">Development Help</category>
			<dc:creator>BlackFox</dc:creator>
			<guid isPermaLink="true">http://www.zuneboards.com/forums/development-help/47053-graphics-device-manager.html</guid>
		</item>
		<item>
			<title>Sprite Issues!!! Helpa Me Please</title>
			<link>http://www.zuneboards.com/forums/development-help/46970-sprite-issues-helpa-me-please.html</link>
			<pubDate>Sun, 08 Nov 2009 01:41:48 GMT</pubDate>
			<description>ok, well, what is going on here is im porting my zGuitarTuner to zhd. My Problem is, that the sprite is not drawing properly. 
  
In my original...</description>
			<content:encoded><![CDATA[<div>ok, well, what is going on here is im porting my zGuitarTuner to zhd. My Problem is, that the sprite is not drawing properly.<br />
 <br />
In my original version (for zsd that work fine) i have one long sprite of many chord charts, that i scroll through by adding to the x value of the new vector<br />
 <br />
in my zhd version i have the exact same setup (scrolling method a lil different cause it is easier to code) but my sprite seems to just smear off into the distance?<br />
 <br />
This video pretty much sums it up!<br />
 <br />
<div align="center">
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="400" style="margin:10px 0">
<thead>
        <tr>
                <td class="tcat" colspan="2" style="text-align:center">
                        <a href="http://www.youtube.com/watch?v=mTj_DntCmAg" title="YouTube- ahhh.wmv" target="_blank">YouTube- ahhh.wmv</a>
                </td>
        </tr>
</thead>
<tbody>
        <tr>
                <td class="panelsurround" align="center"><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/mTj_DntCmAg"></param><embed src="http://www.youtube.com/v/mTj_DntCmAg" type="application/x-shockwave-flash" width="425" height="350" wmode="transparent"></embed></object></td>
        </tr>
</tbody>
</table></div></div>

]]></content:encoded>
			<category domain="http://www.zuneboards.com/forums/development-help-194/">Development Help</category>
			<dc:creator>Berty</dc:creator>
			<guid isPermaLink="true">http://www.zuneboards.com/forums/development-help/46970-sprite-issues-helpa-me-please.html</guid>
		</item>
		<item>
			<title>Flipping Windows XNA Game Window</title>
			<link>http://www.zuneboards.com/forums/development-help/46962-flipping-windows-xna-game-window.html</link>
			<pubDate>Sat, 07 Nov 2009 21:00:42 GMT</pubDate>
			<description><![CDATA[I'm trying to develop a game for the Zune HD, but because I do not have an HD, I make it in windows first, then port it to Zune. 
 
The game I'm...]]></description>
			<content:encoded><![CDATA[<div>I'm trying to develop a game for the Zune HD, but because I do not have an HD, I make it in windows first, then port it to Zune.<br />
<br />
The game I'm making is going to be played horizontally. Which is easy to make and do, But i don't know how to rotate the actual window.<br />
<br />
So what i'm saying is, I want to game to be 272x480 but on windows it will be rotated 90 degrees so it appears to be 480x272.</div>

]]></content:encoded>
			<category domain="http://www.zuneboards.com/forums/development-help-194/">Development Help</category>
			<dc:creator>ShotgunSnipist</dc:creator>
			<guid isPermaLink="true">http://www.zuneboards.com/forums/development-help/46962-flipping-windows-xna-game-window.html</guid>
		</item>
		<item>
			<title>Porting an Windows C#.net game to Zune/Xna Framework</title>
			<link>http://www.zuneboards.com/forums/development-help/46857-porting-windows-c-net-game-zune-xna-framework.html</link>
			<pubDate>Tue, 03 Nov 2009 10:13:31 GMT</pubDate>
			<description>I was looking at a C#.net game that I wanted to port to the zune. I suspect I am not up to the task but if it is not particularly difficult, just...</description>
			<content:encoded><![CDATA[<div>I was looking at a C#.net game that I wanted to port to the zune. I suspect I am not up to the task but if it is not particularly difficult, just very laborious then I might give it a go.  I suspect the main task is making the game do the same tasks under xna available resources as it did under windows.<br />
<br />
using System;<br />
using System.Collections;<br />
using System.Drawing;<br />
using System.IO;<br />
using System.Runtime.Serialization.Formatters.Binary;<br />
using System.Security.Permissions;<br />
using Microsoft.Win32;<br />
using System.Windows.Forms;<br />
<br />
The second problem is replacing all the forms that game uses with,  graphic equivalents by using spritebatch. That step I at least know how to do and enjoy.<br />
<br />
I know porting is a complicated. If anyone can speak intelligibly about it or point me at some information specifically about this I would be grateful. <br />
<br />
incidentally the game I was thinking of that prompted this post I talk about here<br />
 <a href="http://www.zuneboards.com/forums/game-requests/46856-open-source-space-trader-windows-c-net.html" target="_blank">http://www.zuneboards.com/forums/gam...ows-c-net.html</a></div>

]]></content:encoded>
			<category domain="http://www.zuneboards.com/forums/development-help-194/">Development Help</category>
			<dc:creator>badmoodguy88</dc:creator>
			<guid isPermaLink="true">http://www.zuneboards.com/forums/development-help/46857-porting-windows-c-net-game-zune-xna-framework.html</guid>
		</item>
		<item>
			<title>Music import/modifacation</title>
			<link>http://www.zuneboards.com/forums/development-help/46831-music-import-modifacation.html</link>
			<pubDate>Mon, 02 Nov 2009 01:22:45 GMT</pubDate>
			<description>hey guys, i have been asking for alot of help lately, sry about that. Anyway i was wondering, if and how i can access the songs a person puts on the...</description>
			<content:encoded><![CDATA[<div>hey guys, i have been asking for alot of help lately, sry about that. Anyway i was wondering, if and how i can access the songs a person puts on the zune, and If i can modify them (not like rewrite and save them but be a dj type-mockup) i was thinking about importing the song, then  storing it a variable, then modify it in the zunes ram, so i just grab a song, save it so the program can use it, then modify it. to be more simple i need to<br />
1. import the song<br />
2. save it as a varible<br />
3. modify it (like rewinding, fastforwarding, and scratch (as in records) and some other dj-type modification)</div>

]]></content:encoded>
			<category domain="http://www.zuneboards.com/forums/development-help-194/">Development Help</category>
			<dc:creator>itsthatsguy</dc:creator>
			<guid isPermaLink="true">http://www.zuneboards.com/forums/development-help/46831-music-import-modifacation.html</guid>
		</item>
		<item>
			<title>Line drawing....</title>
			<link>http://www.zuneboards.com/forums/development-help/46802-line-drawing.html</link>
			<pubDate>Sat, 31 Oct 2009 02:38:39 GMT</pubDate>
			<description><![CDATA[i feel kinda dumb right now, so i have 2 vector2's and i need to draw a line between them.. i currently have no code and i feel kinda dumb... but...]]></description>
			<content:encoded><![CDATA[<div>i feel kinda dumb right now, so i have 2 vector2's and i need to draw a line between them.. i currently have no code and i feel kinda dumb... but thanks for your help. i know xna has some easy built in feature right?.</div>

]]></content:encoded>
			<category domain="http://www.zuneboards.com/forums/development-help-194/">Development Help</category>
			<dc:creator>itsthatsguy</dc:creator>
			<guid isPermaLink="true">http://www.zuneboards.com/forums/development-help/46802-line-drawing.html</guid>
		</item>
		<item>
			<title>Gravity help</title>
			<link>http://www.zuneboards.com/forums/development-help/46798-gravity-help.html</link>
			<pubDate>Fri, 30 Oct 2009 21:07:24 GMT</pubDate>
			<description>hey guys, need some more help with a formula. So i have this formula that calculates gravity, which Should be a constant force, and in the program it...</description>
			<content:encoded><![CDATA[<div>hey guys, need some more help with a formula. So i have this formula that calculates gravity, which Should be a constant force, and in the program it looks like it is, but for some reason it only happens if i have a collision with the upper wall (if x &lt;= 0) heres the update code for the bounding box and the gravity formula.\<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (r.getXpos() &gt;= 244)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; r.setXspeed(r.getXspeed() * -1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; r.setXpos(243);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (r.getXpos() &lt;= 0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; r.setXspeed(r.getXspeed() * -1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; r.setXpos(1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (r.getYpos() &gt;= 452)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; r.setYpos(451);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; r.setYspeed(r.getYspeed() * -1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (r.getYpos() &lt;= 0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; r.setYpos(1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; r.setYspeed(r.getYspeed() * -1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</code><hr />
</div>Btw r is a &quot;red ball&quot; its a foreach loop.  this part of the code finds collison with the edges fo the screen<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">if (r.getGrav() &lt;= 6)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; r.setGrav(r.getGrav() + 1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; r.setYpos(r.getYpos() + r.getYspeed());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; r.setXpos(r.getXpos() + r.getXspeed() + r.getGrav());</code><hr />
</div>the if statement is how we calculate gravity until the ball reaches terminal velocity (its max fall speed0<br />
The second part is where we update the balls position based on its speed and gravity.</div>

]]></content:encoded>
			<category domain="http://www.zuneboards.com/forums/development-help-194/">Development Help</category>
			<dc:creator>itsthatsguy</dc:creator>
			<guid isPermaLink="true">http://www.zuneboards.com/forums/development-help/46798-gravity-help.html</guid>
		</item>
		<item>
			<title>Color collison</title>
			<link>http://www.zuneboards.com/forums/development-help/46755-color-collison.html</link>
			<pubDate>Wed, 28 Oct 2009 23:04:52 GMT</pubDate>
			<description>Hey guys, i need some help with a coding problem and i currently have no code (because i haev no idea how to tackle this problem) Is there a way,...</description>
			<content:encoded><![CDATA[<div>Hey guys, i need some help with a coding problem and i currently have no code (because i haev no idea how to tackle this problem) Is there a way, where i import a picture, and if an object (a ball, like the ones in the physics engine i posted) hits a certain color, it rebounds ( i know the how to code rebounding code and what not, i just need a detection method) much thanks. <br />
<br />
Cheers</div>

]]></content:encoded>
			<category domain="http://www.zuneboards.com/forums/development-help-194/">Development Help</category>
			<dc:creator>itsthatsguy</dc:creator>
			<guid isPermaLink="true">http://www.zuneboards.com/forums/development-help/46755-color-collison.html</guid>
		</item>
		<item>
			<title>Zune-HD Wireless</title>
			<link>http://www.zuneboards.com/forums/development-help/46752-zune-hd-wireless.html</link>
			<pubDate>Wed, 28 Oct 2009 21:37:25 GMT</pubDate>
			<description>Is it possible to use the wireless in Zune HD apps and games? For example multiplayer games and use of the Internet?</description>
			<content:encoded><![CDATA[<div>Is it possible to use the wireless in Zune HD apps and games? For example multiplayer games and use of the Internet?</div>

]]></content:encoded>
			<category domain="http://www.zuneboards.com/forums/development-help-194/">Development Help</category>
			<dc:creator>XxRiddleOutxX</dc:creator>
			<guid isPermaLink="true">http://www.zuneboards.com/forums/development-help/46752-zune-hd-wireless.html</guid>
		</item>
		<item>
			<title>Scrolling Method</title>
			<link>http://www.zuneboards.com/forums/development-help/46667-scrolling-method.html</link>
			<pubDate>Fri, 23 Oct 2009 20:14:48 GMT</pubDate>
			<description><![CDATA[I'm making a racing game as you may know, and I need a way to scroll the car around the track. I want the car to stay in the center of the screen at...]]></description>
			<content:encoded><![CDATA[<div>I'm making a racing game as you may know, and I need a way to scroll the car around the track. I want the car to stay in the center of the screen at all times. Any suggestions?</div>

]]></content:encoded>
			<category domain="http://www.zuneboards.com/forums/development-help-194/">Development Help</category>
			<dc:creator>BlackFox</dc:creator>
			<guid isPermaLink="true">http://www.zuneboards.com/forums/development-help/46667-scrolling-method.html</guid>
		</item>
	</channel>
</rss>
