<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>BncApps &#187; psp</title>
	<atom:link href="http://bncapps.com/category/psp/feed/" rel="self" type="application/rss+xml" />
	<link>http://bncapps.com</link>
	<description>Open Source Applications and General Technology Blog</description>
	<lastBuildDate>Sat, 11 Dec 2010 23:48:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>GTA VCS Stuff</title>
		<link>http://bncapps.com/gta-vcs-stuff/</link>
		<comments>http://bncapps.com/gta-vcs-stuff/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 15:31:02 +0000</pubDate>
		<dc:creator>Brandon</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[psp]]></category>
		<category><![CDATA[bncplix]]></category>
		<category><![CDATA[cheat device]]></category>
		<category><![CDATA[grand theft auto fly]]></category>
		<category><![CDATA[gta vcs fly hack]]></category>
		<category><![CDATA[vcs]]></category>

		<guid isPermaLink="false">http://bncapps.com/?p=335</guid>
		<description><![CDATA[I still get constant emails and messages asking for the tutorial of my youtube video. I have a post about it here. I have not had a lot of time recently to make my own tutorial, so I decided to post up a few things. Well, the PRX plugin I used is called Cheat Device [...]]]></description>
			<content:encoded><![CDATA[<p>I still get constant emails and messages asking for the tutorial of my youtube video. I have a post about it <a href="http://bncapps.com/psp-vcs-fly-updates/">here.</a> I have not had a lot of time recently to make my own tutorial, so I decided to post up a few things.<br />
Well, the PRX plugin I used is called Cheat Device and it is made by Edison Carter. It can be found on his website, <a href="http://29e25066.linkbucks.com" rel=”nofollow”>CheatDevice.com</a>. It can only be used with a homebrew enabled PSP, so if you have one it's as simple as downloading it, dropping it in the SEPLUGINS folder, adding one line to the text file and enabling it. I tried mine on 3.03 OE-C, so I do not know if it will work on the latest M33 firmwares.<br />
<center><script type="text/javascript"><!--
google_ad_client = "pub-5038888073735758";
google_ad_slot = "9247579423";
google_ad_width = 336;
google_ad_height = 280;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center><br />
More in the full article<br />
<span id="more-335"></span><br />
Here are a few codes anybody can use, no need for a hacked PSP to use these. Just type in the codes for the different effect you want. These are taken from Edison Carter's website, <a href="http://29e25066.linkbucks.com" rel=”nofollow”>CheatDevice.com</a><br />
<!--more--></p>
<blockquote><p>
<strong>Weapon Set 1 </strong>- brass knucles, knife, molatov, 9mm, rifle, SMG, AK<br />
LEFT, RIGHT, X, UP, DOWN, SQUARE, LEFT, RIGHT<br />
<strong>Weapon Set 2</strong> - katana, remote grenades, python, shotgun, silenced uzi, m4, rockets, sniper rifle<br />
LEFT, RIGHT, SQUARE, UP, DOWN, TRIANGLE, LEFT, RIGHT<br />
<strong>Weapon Set 3 </strong>- chainsaw, grenades, laser scope python, shotgun, mp5, m4, minigun, sniper rifle<br />
LEFT, RIGHT, TRIANGLE, UP, DOWN, CIRCLE, LEFT, RIGHT<br />
Get $250000<br />
UP, DOWN, LEFT, RIGHT, X, X, L1, R1<br />
Armor<br />
UP, DOWN, LEFT, RIGHT, SQUARE, SQUARE, L1, R1<br />
Health<br />
UP, DOWN, LEFT, RIGHT, CIRCLE, CIRCLE, L1, R1<br />
<strong>Raise Wanted Level</strong><br />
UP, RIGHT, SQUARE, SQUARE, DOWN, LEFT, CIRCLE, CIRCLE<br />
<strong>Never Wanted</strong><br />
UP, RIGHT, TRIANGLE, TRIANGLE, DOWN, LEFT, X, X<br />
<strong>Sunny Weather</strong><br />
LEFT, DOWN, R1, L1, RIGHT, UP, LEFT, CIRCLE<br />
<strong>Clear Weather</strong><br />
LEFT, DOWN, R1, L1, RIGHT, UP, LEFT, X<br />
<strong>Overcast Weather</strong><br />
LEFT, DOWN, L1, R1, RIGHT, UP, LEFT, SQUARE<br />
<strong>Rainy Weather</strong><br />
LEFT, DOWN, L1, R1, RIGHT, UP, LEFT, TRIANGLE<br />
<strong>Foggy Weather</strong><br />
LEFT, DOWN, TRIANGLE, X, RIGHT, UP, LEFT, L1<br />
<strong>Spawn Rhino</strong><br />
UP, L1, DOWN, R1, LEFT, L1, RIGHT, R1<br />
<strong>Faster Clock</strong><br />
R1, L1, L1, DOWN, UP, X, DOWN, L1<br />
<strong>Destroy All Cars</strong><br />
L1, R1, R1, LEFT, RIGHT, SQUARE, DOWN, R1<br />
<strong>Peds Riot</strong><br />
R1, L1, L1, DOWN, LEFT, CIRCLE, DOWN, L1<br />
<strong>Peds Attack You</strong><br />
DOWN, TRIANGLE, UP, X, L1, R1, L1, R1<br />
<strong>Peds Have Weapons</strong><br />
UP, L1, DOWN, R1, LEFT, CIRCLE, RIGHT, TRIANGLE<br />
<strong>Faster Gameplay</strong><br />
LEFT, LEFT, R1, R1, UP, TRIANGLE, DOWN, X<br />
<strong>Slower Gameplay</strong><br />
LEFT, LEFT, CIRCLE, CIRCLE, DOWN, UP, TRIANGLE, X<br />
<strong>Perfect Traction, Down=Car Hop</strong><br />
DOWN, LEFT, UP, L1, R1, TRIANGLE, CIRCLE, X<br />
<strong>Commit Suicide</strong><br />
RIGHT, RIGHT, CIRCLE, CIRCLE, L1, R1, DOWN, X<br />
<strong>All Green Lights</strong><br />
UP, DOWN, TRIANGLE, X, L1, R1, LEFT, CIRCLE<br />
<strong>Aggressive Drivers</strong><br />
UP, UP, RIGHT, LEFT, TRIANGLE, CIRCLE, CIRCLE, SQUARE<br />
<strong>Black Traffic</strong><br />
L1, R1, L1, R1, LEFT, CIRCLE, UP, X<br />
<strong>Spawn Trashmaster</strong><br />
DOWN, UP, RIGHT, TRIANGLE, L1, TRIANGLE, L1, TRIANGLE<br />
<strong>Ride With Me</strong><br />
DOWN, UP, RIGHT, L1, L1, SQUARE, UP, L1<br />
<strong>Guys Follow You</strong><br />
RIGHT, L1, DOWN, L1, CIRCLE, UP, L1, SQUARE<br />
<strong>Upside Down</strong><br />
SQUARE, SQUARE, SQUARE, L1, L1, R1, LEFT, RIGHT<br />
<strong>Upside Down</strong><br />
LEFT, LEFT, LEFT, R1, R1, L1, RIGHT, LEFT<br />
<strong>Multiplayer Unlocks</strong><br />
UP, UP, UP, SQUARE, SQUARE, TRIANGLE, R1, L1<br />
<strong>Multiplayer Unlocks</strong><br />
UP, UP, UP, CIRCLE, CIRCLE, X, L1, R1<br />
<strong>Multiplayer Unlocks</strong><br />
UP, UP, UP, X, X, SQUARE, R1, L1<br />
<strong>Multiplayer Unlocks</strong><br />
UP, UP, UP, TRIANGLE, TRIANGLE, CIRCLE, L1, R1<br />
<strong>Chrome Cars</strong><br />
RIGHT, UP, LEFT, DOWN, TRIANGLE, TRIANGLE, L1, R1
</p></blockquote>
<p>If you already have a custom firmware, here is a guide on installing it: <a href="http://361b4b34.linkbucks.com" rel=”nofollow”>Running VCS Cheat Device</a></p>
<p>If you do not have a custom firmware and can not find a decent tutorial, let me know!</p>
]]></content:encoded>
			<wfw:commentRss>http://bncapps.com/gta-vcs-stuff/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>Shape objects in C++ (PSP)</title>
		<link>http://bncapps.com/shape-objects-in-c-psp/</link>
		<comments>http://bncapps.com/shape-objects-in-c-psp/#comments</comments>
		<pubDate>Mon, 15 Dec 2008 02:42:18 +0000</pubDate>
		<dc:creator>Brandon</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[psp]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[random number c++]]></category>
		<category><![CDATA[shape movements]]></category>
		<category><![CDATA[shape objects]]></category>

		<guid isPermaLink="false">http://bncapps.com/?p=206</guid>
		<description><![CDATA[We already discussed shape object creation and movements in VB.NET, but now lets take a look at it in C++. The principals are the same, create an Array or ArrayList for the rectangle object, and set its x and y position as well as its width, height and color. This example will show shape object [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://bncapps.com/?p=91">We already discussed shape object creation and movements in VB.NET</a>, but now lets take a look at it in C++.</p>
<p>The principals are the same, create an Array or ArrayList for the rectangle object, and set its x and y position as well as its width, height and color. This example will show shape object creation in C++. This code was originally written to run on the Playstation Portable (PSP) but if you know your way around C++, you should be able to get it running on windows without a problem.<br />
<center><script type="text/javascript"><!--
google_ad_client = "pub-5038888073735758";
google_ad_slot = "0739265609";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center><br />
<span id="more-206"></span><br />
The compiled binary (EBOOT) for PSP for the full game will be posted in a few weeks. The original game was written in VB.NET (Posted soon!), then ported to Java (Posted in a few weeks) and now being ported to C++ for PSP. In the future it may be ported to Objective C so it can run on the iPhone/iPod touch.</p>
<p>Here is a useful function for generating a random number on the PSP in C++ (Given to me by thecobra over at the <a href="http://www.qj.net">qj.net</a> forums)</p>
<pre class="cpp">&nbsp;
<span style="color: #0000ff;">static</span> <span style="color: #0000ff;">int</span> GetRandomNum<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">int</span> lo, <span style="color: #0000ff;">int</span> hi<span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
 SceKernelUtilsMt19937Context ctx;
 <span style="color: #0000ff;">int</span> rs = <span style="color: #0000dd;">10</span> + <span style="color: #0000dd;">rand</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> % <span style="color: #000000;">&#40;</span><span style="color: #0000dd;">500</span> - <span style="color: #0000dd;">10</span><span style="color: #000000;">&#41;</span> + <span style="color: #0000dd;">1</span>;
 sceKernelUtilsMt19937Init<span style="color: #000000;">&#40;</span>&amp;ctx, rs<span style="color: #000000;">&#41;</span>; <span style="color: #ff0000;">//SEED TO TIME</span>
 u32 rand_val = sceKernelUtilsMt19937UInt<span style="color: #000000;">&#40;</span>&amp;ctx<span style="color: #000000;">&#41;</span>;
 rand_val = lo + rand_val % hi;
 <span style="color: #0000ff;">return</span> <span style="color: #000000;">&#40;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&#41;</span>rand_val;
<span style="color: #000000;">&#125;</span>
&nbsp;</pre>
<p>Although it looks more complex than the one in VB.NET, which is:</p>
<pre class="vbnet">&nbsp;
<span style="color: #0600FF;">Function</span> Random<span style="color: #000000;">&#40;</span><span style="color: #FF8000;">ByVal</span> Lowerbound <span style="color: #FF8000;">As</span> <span style="color: #FF0000;">Long</span>, <span style="color: #FF8000;">ByVal</span> Upperbound <span style="color: #FF8000;">As</span> <span style="color: #FF0000;">Long</span><span style="color: #000000;">&#41;</span>
<span style="color: #0600FF;">Randomize</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
Random = <span style="color: #0600FF;">Int</span><span style="color: #000000;">&#40;</span><span style="color: #0600FF;">Rnd</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> * Upperbound<span style="color: #000000;">&#41;</span> + Lowerbound
<span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Function</span>
&nbsp;</pre>
<p>The basic formula is the same</p>
<p>Here are some things we should declare</p>
<pre class="cpp">&nbsp;
 <span style="color: #0000ff;">int</span> squaresin; <span style="color: #ff0000;">//the total amount of vertical squares in play</span>
 <span style="color: #0000ff;">int</span> arrowDirs<span style="color: #000000;">&#91;</span><span style="color: #0000dd;">1000</span><span style="color: #000000;">&#93;</span>; <span style="color: #ff0000;">//The directions for movement of the vertical squares</span>
 <span style="color: #0000ff;">int</span> Hsquaresin; <span style="color: #ff0000;">//the total amount of horizonal squares in play</span>
 <span style="color: #0000ff;">int</span> HarrowDirs<span style="color: #000000;">&#91;</span><span style="color: #0000dd;">1000</span><span style="color: #000000;">&#93;</span>; <span style="color: #ff0000;">//The directions for movement of the horizontal squares</span>
Rectangle squares<span style="color: #000000;">&#91;</span><span style="color: #0000dd;">1000</span><span style="color: #000000;">&#93;</span>; <span style="color: #ff0000;">//declare the array of vertical squares</span>
Rectangle Hsquares<span style="color: #000000;">&#91;</span><span style="color: #0000dd;">1000</span><span style="color: #000000;">&#93;</span>; <span style="color: #ff0000;">//declare the array of horizontal squares</span>
Color red = RGB<span style="color: #000000;">&#40;</span><span style="color: #0000dd;">255</span>, <span style="color: #0000dd;">0</span>, <span style="color: #0000dd;">0</span><span style="color: #000000;">&#41;</span>; <span style="color: #ff0000;">//declare various colours</span>
Color green = RGB<span style="color: #000000;">&#40;</span><span style="color: #0000dd;">0</span>, <span style="color: #0000dd;">255</span>, <span style="color: #0000dd;">0</span><span style="color: #000000;">&#41;</span>;
Color blue = RGB<span style="color: #000000;">&#40;</span><span style="color: #0000dd;">0</span>, <span style="color: #0000dd;">0</span>, <span style="color: #0000dd;">255</span><span style="color: #000000;">&#41;</span>;
Color yellow = RGB<span style="color: #000000;">&#40;</span><span style="color: #0000dd;">255</span>, <span style="color: #0000dd;">255</span>, <span style="color: #0000dd;">0</span><span style="color: #000000;">&#41;</span>;
&nbsp;</pre>
<p><strong>Note: There is no such thing as a boolean in C++, integers must be used. 1 represents true, 0 represents false.</strong></p>
<p>Next, lets use some methods to create the squares easily:</p>
<pre class="cpp">&nbsp;
	<span style="color: #0000ff;">void</span> addVertRectangle<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">int</span> Vertrectnum<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
     squares<span style="color: #000000;">&#91;</span>Vertrectnum<span style="color: #000000;">&#93;</span>.<span style="color: #00eeff;">x</span> = GetRandomNum<span style="color: #000000;">&#40;</span><span style="color: #0000dd;">1</span>, <span style="color: #0000dd;">480</span><span style="color: #000000;">&#41;</span>; <span style="color: #ff0000;">//random number between 1 and the dimensions of the psp screen</span>
     squares<span style="color: #000000;">&#91;</span>Vertrectnum<span style="color: #000000;">&#93;</span>.<span style="color: #00eeff;">y</span> = GetRandomNum<span style="color: #000000;">&#40;</span><span style="color: #0000dd;">1</span>, <span style="color: #0000dd;">272</span><span style="color: #000000;">&#41;</span>;
     squares<span style="color: #000000;">&#91;</span>Vertrectnum<span style="color: #000000;">&#93;</span>.<span style="color: #00eeff;">width</span> = <span style="color: #0000dd;">5</span>;
     squares<span style="color: #000000;">&#91;</span>Vertrectnum<span style="color: #000000;">&#93;</span>.<span style="color: #00eeff;">height</span> = <span style="color: #0000dd;">5</span>;
     squares<span style="color: #000000;">&#91;</span>Vertrectnum<span style="color: #000000;">&#93;</span>.<span style="color: #00eeff;">mycolor</span> = green; <span style="color: #ff0000;">//vertical squares are green</span>
   <span style="color: #000000;">&#125;</span>
&nbsp;
     <span style="color: #0000ff;">void</span> addHorizRectangle<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">int</span> Horizrectnum<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
     Hsquares<span style="color: #000000;">&#91;</span>Horizrectnum<span style="color: #000000;">&#93;</span>.<span style="color: #00eeff;">x</span> = GetRandomNum<span style="color: #000000;">&#40;</span><span style="color: #0000dd;">1</span>, <span style="color: #0000dd;">480</span><span style="color: #000000;">&#41;</span>;
     Hsquares<span style="color: #000000;">&#91;</span>Horizrectnum<span style="color: #000000;">&#93;</span>.<span style="color: #00eeff;">y</span> = GetRandomNum<span style="color: #000000;">&#40;</span><span style="color: #0000dd;">1</span>, <span style="color: #0000dd;">272</span><span style="color: #000000;">&#41;</span>;
     Hsquares<span style="color: #000000;">&#91;</span>Horizrectnum<span style="color: #000000;">&#93;</span>.<span style="color: #00eeff;">width</span> = <span style="color: #0000dd;">5</span>;
     Hsquares<span style="color: #000000;">&#91;</span>Horizrectnum<span style="color: #000000;">&#93;</span>.<span style="color: #00eeff;">height</span> = <span style="color: #0000dd;">5</span>;
     Hsquares<span style="color: #000000;">&#91;</span>Horizrectnum<span style="color: #000000;">&#93;</span>.<span style="color: #00eeff;">mycolor</span> = blue; <span style="color: #ff0000;">//horizontal squares are blue</span>
  <span style="color: #000000;">&#125;</span>
&nbsp;</pre>
<p>Put these within the main method. </p>
<p>Within our game loop we will need a few things. Here is the start of the game loop and the things we need within it. This is not the full code:</p>
<pre class="cpp">&nbsp;
&nbsp;
<span style="color: #0000ff;">while</span><span style="color: #000000;">&#40;</span><span style="color: #0000dd;">1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
SceCtrlData pad;
sceCtrlSetSamplingCycle<span style="color: #000000;">&#40;</span><span style="color: #0000dd;">0</span><span style="color: #000000;">&#41;</span>;
pspDebugScreenSetXY<span style="color: #000000;">&#40;</span><span style="color: #0000dd;">0</span>, <span style="color: #0000dd;">2</span><span style="color: #000000;">&#41;</span>;
sceCtrlReadBufferPositive<span style="color: #000000;">&#40;</span>&amp;pad, <span style="color: #0000dd;">1</span><span style="color: #000000;">&#41;</span>;
Refresh<span style="color: #000000;">&#40;</span>RGB<span style="color: #000000;">&#40;</span><span style="color: #0000dd;">0</span>, <span style="color: #0000dd;">0</span>, <span style="color: #0000dd;">0</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;
pspDebugScreenClear<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
&nbsp;</pre>
<p>Here is the code that goes within the game loop. This part handles movements and bouncing off the walls. (In the VB.NET and Java version, it works the excact same way!)</p>
<pre class="cpp">&nbsp;
<span style="color: #0000ff;">int</span> j;
   <span style="color: #0000ff;">for</span> <span style="color: #000000;">&#40;</span>j = <span style="color: #0000dd;">0</span>; j &lt; squaresin; j ++<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
       <span style="color: #0000ff;">if</span> <span style="color: #000000;">&#40;</span>arrowDirs<span style="color: #000000;">&#91;</span>j<span style="color: #000000;">&#93;</span> == <span style="color: #0000dd;">0</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
    squares<span style="color: #000000;">&#91;</span>j<span style="color: #000000;">&#93;</span>.<span style="color: #00eeff;">x</span> = squares<span style="color: #000000;">&#91;</span>j<span style="color: #000000;">&#93;</span>.<span style="color: #00eeff;">x</span> - <span style="color: #0000dd;">1</span>;
<span style="color: #000000;">&#125;</span><span style="color: #0000ff;">else</span><span style="color: #000000;">&#123;</span>
      squares<span style="color: #000000;">&#91;</span>j<span style="color: #000000;">&#93;</span>.<span style="color: #00eeff;">x</span> = squares<span style="color: #000000;">&#91;</span>j<span style="color: #000000;">&#93;</span>.<span style="color: #00eeff;">x</span> + <span style="color: #0000dd;">1</span>;
      <span style="color: #000000;">&#125;</span>
      <span style="color: #0000ff;">if</span> <span style="color: #000000;">&#40;</span>squares<span style="color: #000000;">&#91;</span>j<span style="color: #000000;">&#93;</span>.<span style="color: #00eeff;">x</span> &lt;= <span style="color: #0000dd;">5</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
      arrowDirs<span style="color: #000000;">&#91;</span>j<span style="color: #000000;">&#93;</span> = <span style="color: #0000dd;">1</span>;
      <span style="color: #000000;">&#125;</span>
      <span style="color: #0000ff;">if</span> <span style="color: #000000;">&#40;</span>squares<span style="color: #000000;">&#91;</span>j<span style="color: #000000;">&#93;</span>.<span style="color: #00eeff;">x</span> &gt;= <span style="color: #000000;">&#40;</span><span style="color: #0000dd;">480</span> - squares<span style="color: #000000;">&#91;</span>j<span style="color: #000000;">&#93;</span>.<span style="color: #00eeff;">width</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
      arrowDirs<span style="color: #000000;">&#91;</span>j<span style="color: #000000;">&#93;</span> = <span style="color: #0000dd;">0</span>;
      <span style="color: #000000;">&#125;</span>
    Draw<span style="color: #000000;">&#40;</span>squares<span style="color: #000000;">&#91;</span>j<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>;
&nbsp;
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #0000ff;">int</span> k;
   <span style="color: #0000ff;">for</span> <span style="color: #000000;">&#40;</span>k = <span style="color: #0000dd;">0</span>; k &lt; Hsquaresin; k ++<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
       <span style="color: #0000ff;">if</span> <span style="color: #000000;">&#40;</span>HarrowDirs<span style="color: #000000;">&#91;</span>k<span style="color: #000000;">&#93;</span> == <span style="color: #0000dd;">0</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
    Hsquares<span style="color: #000000;">&#91;</span>k<span style="color: #000000;">&#93;</span>.<span style="color: #00eeff;">y</span> = Hsquares<span style="color: #000000;">&#91;</span>k<span style="color: #000000;">&#93;</span>.<span style="color: #00eeff;">y</span> - <span style="color: #0000dd;">1</span>;
<span style="color: #000000;">&#125;</span><span style="color: #0000ff;">else</span><span style="color: #000000;">&#123;</span>
      Hsquares<span style="color: #000000;">&#91;</span>k<span style="color: #000000;">&#93;</span>.<span style="color: #00eeff;">y</span> = Hsquares<span style="color: #000000;">&#91;</span>k<span style="color: #000000;">&#93;</span>.<span style="color: #00eeff;">y</span> + <span style="color: #0000dd;">1</span>;
      <span style="color: #000000;">&#125;</span>
      <span style="color: #0000ff;">if</span> <span style="color: #000000;">&#40;</span>Hsquares<span style="color: #000000;">&#91;</span>k<span style="color: #000000;">&#93;</span>.<span style="color: #00eeff;">y</span> &lt;= <span style="color: #0000dd;">5</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
      HarrowDirs<span style="color: #000000;">&#91;</span>k<span style="color: #000000;">&#93;</span> = <span style="color: #0000dd;">1</span>;
      <span style="color: #000000;">&#125;</span>
      <span style="color: #0000ff;">if</span> <span style="color: #000000;">&#40;</span>Hsquares<span style="color: #000000;">&#91;</span>k<span style="color: #000000;">&#93;</span>.<span style="color: #00eeff;">y</span> &gt;= <span style="color: #000000;">&#40;</span><span style="color: #0000dd;">272</span> - Hsquares<span style="color: #000000;">&#91;</span>k<span style="color: #000000;">&#93;</span>.<span style="color: #00eeff;">height</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
      HarrowDirs<span style="color: #000000;">&#91;</span>k<span style="color: #000000;">&#93;</span> = <span style="color: #0000dd;">0</span>;
      <span style="color: #000000;">&#125;</span>
    Draw<span style="color: #000000;">&#40;</span>Hsquares<span style="color: #000000;">&#91;</span>k<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>;
<span style="color: #000000;">&#125;</span>
&nbsp;</pre>
<p>Heres a quick example on adding new shapes by clicking the O button:</p>
<pre class="cpp">&nbsp;
 <span style="color: #0000ff;">if</span> <span style="color: #000000;">&#40;</span>pad.<span style="color: #00eeff;">Buttons</span> &amp; PSP_CTRL_CROSS<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
                                   squaresin++;
                                   Hsquaresin++;
                                   addVertRectangle<span style="color: #000000;">&#40;</span>squaresin<span style="color: #000000;">&#41;</span>;
                                   addHorizRectangle<span style="color: #000000;">&#40;</span>Hsquaresin<span style="color: #000000;">&#41;</span>;
<span style="color: #000000;">&#125;</span>
&nbsp;</pre>
<p>Finally, finish the game loop with:</p>
<pre class="cpp">&nbsp;
&nbsp;
  pspDebugScreenClear<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
	<span style="color: #ff0000;">//Necessary</span>
 sceDisplayWaitVblankStart<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
 flipScreen<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
&nbsp;
<span style="color: #000000;">&#125;</span>
&nbsp;</pre>
<p>This tutorial may be a bit hard to follow. When the game is fully done the full source and a longer tutorial will be posted. In a few days a tutorial will be up on getting your development environment set up to begin programming for the PSP.</p>
<p>I will like to thank <a href="http://forums.qj.net/member.php?u=126875">thecobra</a> over at the qj.net forums for helping me get started in PSP programming!</p>
<p><center><script type="text/javascript"><!--
google_ad_client = "pub-5038888073735758";
google_ad_slot = "5539939403";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center></p>
]]></content:encoded>
			<wfw:commentRss>http://bncapps.com/shape-objects-in-c-psp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PSP VCS Fly + Updates</title>
		<link>http://bncapps.com/psp-vcs-fly-updates/</link>
		<comments>http://bncapps.com/psp-vcs-fly-updates/#comments</comments>
		<pubDate>Sat, 13 Dec 2008 22:28:35 +0000</pubDate>
		<dc:creator>Brandon</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[psp]]></category>
		<category><![CDATA[cheat device]]></category>
		<category><![CDATA[fly cheat]]></category>
		<category><![CDATA[fly hack]]></category>
		<category><![CDATA[grand theft auto]]></category>
		<category><![CDATA[gta fly]]></category>
		<category><![CDATA[playstation portable]]></category>
		<category><![CDATA[vice city stories]]></category>

		<guid isPermaLink="false">http://bncapps.com/?p=203</guid>
		<description><![CDATA[Visit http://PSPGTA.INFO For the cheat! A lot of people have been coming here looking for the PSP cheat to fly in Grand theft Auto, just like my youtube video. The tutorial will be up when there is time. For now, please suggest a programming tutorial for me to work on! This is the video: Please [...]]]></description>
			<content:encoded><![CDATA[<p><center><a href="http://pspgta.info">Visit http://PSPGTA.INFO For the cheat!</a></center><br />
A lot of people have been coming here looking for the PSP cheat to fly in Grand theft Auto, just like my youtube video. The tutorial will be up when there is time. For now, please suggest a programming tutorial for me to work on!</p>
<p>This is the video:<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/Oce1VlgyeBY&amp;hl=en&amp;fs=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/Oce1VlgyeBY&amp;hl=en&amp;fs=1" allowscriptaccess="always" allowfullscreen="true"></embed></object><br />
Please see <a href="http://bncapps.com/gta-vcs-stuff/">here</a> for a more up to date post!</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-5038888073735758";
google_ad_slot = "9247579423";
google_ad_width = 336;
google_ad_height = 280;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p><center><a href="http://pspgta.info">Visit http://PSPGTA.INFO For the cheat!</a></center></p>
]]></content:encoded>
			<wfw:commentRss>http://bncapps.com/psp-vcs-fly-updates/feed/</wfw:commentRss>
		<slash:comments>27</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
