<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Tutorial 7: Using arrays</title>
	<atom:link href="http://www.codemii.com/2008/09/28/tutorial-7-using-arrays/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codemii.com/2008/09/28/tutorial-7-using-arrays/</link>
	<description>Home of the Homebrew Browser and Wii tutorials</description>
	<lastBuildDate>Thu, 02 Feb 2012 00:41:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: teknecal</title>
		<link>http://www.codemii.com/2008/09/28/tutorial-7-using-arrays/#comment-10763</link>
		<dc:creator>teknecal</dc:creator>
		<pubDate>Sun, 18 Oct 2009 06:36:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.codemii.com/?p=230#comment-10763</guid>
		<description>Hmm, I downloaded it and replaced the clear frame buffer you had with the displaying of the background picture. 

I ran it with gcube and I didn&#039;t experience any flickering, do I have the right code? Does it only happen when you try it on the Wii or on gcube too?

This is the code I have now: http://pastie.org/659273</description>
		<content:encoded><![CDATA[<p>Hmm, I downloaded it and replaced the clear frame buffer you had with the displaying of the background picture. </p>
<p>I ran it with gcube and I didn&#8217;t experience any flickering, do I have the right code? Does it only happen when you try it on the Wii or on gcube too?</p>
<p>This is the code I have now: <a href="http://pastie.org/659273" rel="nofollow">http://pastie.org/659273</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jj</title>
		<link>http://www.codemii.com/2008/09/28/tutorial-7-using-arrays/#comment-10761</link>
		<dc:creator>jj</dc:creator>
		<pubDate>Sat, 17 Oct 2009 19:48:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.codemii.com/?p=230#comment-10761</guid>
		<description>damn...
that took a long time, but i finally managed to get GRRLib installed.
i&#039;ll take a look at it later and see what it has to offer. now, i&#039;m beat. 4:47am over here! XP</description>
		<content:encoded><![CDATA[<p>damn&#8230;<br />
that took a long time, but i finally managed to get GRRLib installed.<br />
i&#8217;ll take a look at it later and see what it has to offer. now, i&#8217;m beat. 4:47am over here! XP</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jj</title>
		<link>http://www.codemii.com/2008/09/28/tutorial-7-using-arrays/#comment-10760</link>
		<dc:creator>jj</dc:creator>
		<pubDate>Sat, 17 Oct 2009 17:21:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.codemii.com/?p=230#comment-10760</guid>
		<description>sure thing. the link to the zip file is at the end of this post, and i&#039;d be delighted to get comments. i&#039;ll look into GRRLIB as soon as i can. it sounds very promising.

i took some time to comment my code as thoroughly as i could to make what going on or what i was trying to do very clear (maybe sometimes too clear?). i suspect it can get a little annoying sometimes, but it sure helped me wrap my head around what i was doing.

first working c program too! kinda excited, really...
(although it&#039;s kind of a pity it&#039;s such an inane program...)

http://jj.idele.org:8000/blog/wp-content/uploads/misc/tictactoe.zip</description>
		<content:encoded><![CDATA[<p>sure thing. the link to the zip file is at the end of this post, and i&#8217;d be delighted to get comments. i&#8217;ll look into GRRLIB as soon as i can. it sounds very promising.</p>
<p>i took some time to comment my code as thoroughly as i could to make what going on or what i was trying to do very clear (maybe sometimes too clear?). i suspect it can get a little annoying sometimes, but it sure helped me wrap my head around what i was doing.</p>
<p>first working c program too! kinda excited, really&#8230;<br />
(although it&#8217;s kind of a pity it&#8217;s such an inane program&#8230;)</p>
<p><a href="http://jj.idele.org:8000/blog/wp-content/uploads/misc/tictactoe.zip" rel="nofollow">http://jj.idele.org:8000/blog/wp-content/uploads/misc/tictactoe.zip</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: teknecal</title>
		<link>http://www.codemii.com/2008/09/28/tutorial-7-using-arrays/#comment-10759</link>
		<dc:creator>teknecal</dc:creator>
		<pubDate>Sat, 17 Oct 2009 06:41:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.codemii.com/?p=230#comment-10759</guid>
		<description>I remember having a flickering issue with my matching cards game, when there was too much images on the screen it did flicker, I don&#039;t remember if I found a suitable solution.

Could you zip up your code so we could take a look at it?

The other option if you have a Wii, could be to use a graphics library like GRRLIB and use PNG images instead, I haven&#039;t had any flickering issues with GRRLIB.</description>
		<content:encoded><![CDATA[<p>I remember having a flickering issue with my matching cards game, when there was too much images on the screen it did flicker, I don&#8217;t remember if I found a suitable solution.</p>
<p>Could you zip up your code so we could take a look at it?</p>
<p>The other option if you have a Wii, could be to use a graphics library like GRRLIB and use PNG images instead, I haven&#8217;t had any flickering issues with GRRLIB.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jj</title>
		<link>http://www.codemii.com/2008/09/28/tutorial-7-using-arrays/#comment-10758</link>
		<dc:creator>jj</dc:creator>
		<pubDate>Sat, 17 Oct 2009 03:24:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.codemii.com/?p=230#comment-10758</guid>
		<description>thanks for the reply!

unfortunately, after i found myself stumped with the flicker problem i decided to try to make it work with the wpad for the moment, so i rewrote much of my code...

and after reading your post and getting excited about the possibility of using the ir again, i started getting it into my new code again... and it worked fine without the line you gave me. :P so i suppose it is not so unfortunate, really...

however, come to think about it, the flicker is still there if i try to put a background image. if i just use smaller images for the circles and the crosses, then the jpegs don&#039;t really flicker at all... but when i put in a background, even with your VIDEO_Flush(); line, it starts flickering again... it&#039;s just that i decided not to use a background jpeg anymore.

any insights? it would be nice to see if i can ever get a background image to work. i haven&#039;t tried your other method, but i think i&#039;m done with c for now. i&#039;ll write back when i have results.

thanks again! :)</description>
		<content:encoded><![CDATA[<p>thanks for the reply!</p>
<p>unfortunately, after i found myself stumped with the flicker problem i decided to try to make it work with the wpad for the moment, so i rewrote much of my code&#8230;</p>
<p>and after reading your post and getting excited about the possibility of using the ir again, i started getting it into my new code again&#8230; and it worked fine without the line you gave me. <img src='http://www.codemii.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  so i suppose it is not so unfortunate, really&#8230;</p>
<p>however, come to think about it, the flicker is still there if i try to put a background image. if i just use smaller images for the circles and the crosses, then the jpegs don&#8217;t really flicker at all&#8230; but when i put in a background, even with your VIDEO_Flush(); line, it starts flickering again&#8230; it&#8217;s just that i decided not to use a background jpeg anymore.</p>
<p>any insights? it would be nice to see if i can ever get a background image to work. i haven&#8217;t tried your other method, but i think i&#8217;m done with c for now. i&#8217;ll write back when i have results.</p>
<p>thanks again! <img src='http://www.codemii.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: teknecal</title>
		<link>http://www.codemii.com/2008/09/28/tutorial-7-using-arrays/#comment-10756</link>
		<dc:creator>teknecal</dc:creator>
		<pubDate>Fri, 16 Oct 2009 14:13:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.codemii.com/?p=230#comment-10756</guid>
		<description>There are two things for you to try. Firstly you could try adding the below to your code:

VIDEO_Flush();
VIDEO_WaitVSync();

If that doesn&#039;t work, you can try this clearscreen function which basically just writes all black pixels to the screen:

// Clears the screen. Sets screen to black.
void clearscreen() {
	int x,y;
	for(y=0;y&lt;486;y++)
		for(x=0;x&lt;320;x++)
			xfb[0][x+320*y]=COLOR_BLACK;
}</description>
		<content:encoded><![CDATA[<p>There are two things for you to try. Firstly you could try adding the below to your code:</p>
<p>VIDEO_Flush();<br />
VIDEO_WaitVSync();</p>
<p>If that doesn&#8217;t work, you can try this clearscreen function which basically just writes all black pixels to the screen:</p>
<p>// Clears the screen. Sets screen to black.<br />
void clearscreen() {<br />
	int x,y;<br />
	for(y=0;y&lt;486;y++)<br />
		for(x=0;x&lt;320;x++)<br />
			xfb[0][x+320*y]=COLOR_BLACK;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jj</title>
		<link>http://www.codemii.com/2008/09/28/tutorial-7-using-arrays/#comment-10755</link>
		<dc:creator>jj</dc:creator>
		<pubDate>Fri, 16 Oct 2009 12:21:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.codemii.com/?p=230#comment-10755</guid>
		<description>i&#039;ve been following these tutorials for the past few days trying to improvise whenever possible, so i&#039;ve found myself doing some pretty random things every once in a while.

when i read this tutorial, it indeed seemed a little pointless, but i figured a tic-tac-toe was an interesting project to begin programming (this is my first time writing in c), so i&#039;ve been trying to get it to work with the wiimote ir code from a few posts back.

even though things have been working (more or less), i stumbled into a problem i don&#039;t really know how to solve.

with the code i have so far, my jpg files flicker intensely (specially the background).  i know it has to do with the way i&#039;m clearing the screen (necessary to move the ir cursor around) because if i comment out the following line:

VIDEO_ClearFrameBuffer (rmode, xfb, COLOR_BLACK);

the picture looks like it is supposed to.

my question, then, is: how can i avoid the flicker while at the same time clearing the screen so i can use a cursor that follows the wiimote ir?

thanks in advance.</description>
		<content:encoded><![CDATA[<p>i&#8217;ve been following these tutorials for the past few days trying to improvise whenever possible, so i&#8217;ve found myself doing some pretty random things every once in a while.</p>
<p>when i read this tutorial, it indeed seemed a little pointless, but i figured a tic-tac-toe was an interesting project to begin programming (this is my first time writing in c), so i&#8217;ve been trying to get it to work with the wiimote ir code from a few posts back.</p>
<p>even though things have been working (more or less), i stumbled into a problem i don&#8217;t really know how to solve.</p>
<p>with the code i have so far, my jpg files flicker intensely (specially the background).  i know it has to do with the way i&#8217;m clearing the screen (necessary to move the ir cursor around) because if i comment out the following line:</p>
<p>VIDEO_ClearFrameBuffer (rmode, xfb, COLOR_BLACK);</p>
<p>the picture looks like it is supposed to.</p>
<p>my question, then, is: how can i avoid the flicker while at the same time clearing the screen so i can use a cursor that follows the wiimote ir?</p>
<p>thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sean</title>
		<link>http://www.codemii.com/2008/09/28/tutorial-7-using-arrays/#comment-1897</link>
		<dc:creator>sean</dc:creator>
		<pubDate>Fri, 20 Mar 2009 19:25:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.codemii.com/?p=230#comment-1897</guid>
		<description>Up until this point, these have been among the best &quot;intro to programming&quot; tutorials i&#039;ve found, despite being Wii tutorials.  

I&#039;ve tried to learn C from online tutorials, but up until I found these, every single one i&#039;ve come accross has assumed I already knew a previous programming language - and used lingo that I didn&#039;t &quot;get.&quot; Maybe i&#039;m just bad at searching for tutorials.

At least I have a basic idea of how C works now, and i can read SOME source codes and tell what is going on, but i&#039;ve got a long way to go.</description>
		<content:encoded><![CDATA[<p>Up until this point, these have been among the best &#8220;intro to programming&#8221; tutorials i&#8217;ve found, despite being Wii tutorials.  </p>
<p>I&#8217;ve tried to learn C from online tutorials, but up until I found these, every single one i&#8217;ve come accross has assumed I already knew a previous programming language &#8211; and used lingo that I didn&#8217;t &#8220;get.&#8221; Maybe i&#8217;m just bad at searching for tutorials.</p>
<p>At least I have a basic idea of how C works now, and i can read SOME source codes and tell what is going on, but i&#8217;ve got a long way to go.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lewiis</title>
		<link>http://www.codemii.com/2008/09/28/tutorial-7-using-arrays/#comment-475</link>
		<dc:creator>Lewiis</dc:creator>
		<pubDate>Sat, 08 Nov 2008 01:02:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.codemii.com/?p=230#comment-475</guid>
		<description>Thanks Tek, that&#039;d be great.  I downloaded your Simon program but haven&#039;t had a chance to look through the source yet.  It&#039;s good to see some well documented source though and I&#039;m hoping it&#039;ll help me get going again with my game.  I&#039;ll hopefully have a beta version released in a few weeks.</description>
		<content:encoded><![CDATA[<p>Thanks Tek, that&#8217;d be great.  I downloaded your Simon program but haven&#8217;t had a chance to look through the source yet.  It&#8217;s good to see some well documented source though and I&#8217;m hoping it&#8217;ll help me get going again with my game.  I&#8217;ll hopefully have a beta version released in a few weeks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: teknecal</title>
		<link>http://www.codemii.com/2008/09/28/tutorial-7-using-arrays/#comment-469</link>
		<dc:creator>teknecal</dc:creator>
		<pubDate>Thu, 06 Nov 2008 09:03:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.codemii.com/?p=230#comment-469</guid>
		<description>To layer images, all you need to do is display the new image either over the top of the other image or have a if statement which can decide which image to display. So you could just have a variable which keeps track of this and then if the user clicks, it sets the variable to say true and then displays the other image.

This is quite easy and I should be able to do a quick tutorial on it this weekend.</description>
		<content:encoded><![CDATA[<p>To layer images, all you need to do is display the new image either over the top of the other image or have a if statement which can decide which image to display. So you could just have a variable which keeps track of this and then if the user clicks, it sets the variable to say true and then displays the other image.</p>
<p>This is quite easy and I should be able to do a quick tutorial on it this weekend.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

