<?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>github &#8211; Joni Mikkola (c) 2023</title>
	<atom:link href="https://jonimikkola.com/tag/github/feed/" rel="self" type="application/rss+xml" />
	<link>https://jonimikkola.com</link>
	<description></description>
	<lastBuildDate>Sat, 28 Feb 2015 14:40:33 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.1</generator>
	<item>
		<title>Creating fading music effect in Cocos2d-x 3.0</title>
		<link>https://jonimikkola.com/creating-fading-music-effect-in-cocos2d-x-3-0/</link>
					<comments>https://jonimikkola.com/creating-fading-music-effect-in-cocos2d-x-3-0/#comments</comments>
		
		<dc:creator><![CDATA[jonimikkola]]></dc:creator>
		<pubDate>Sun, 25 Jan 2015 19:35:03 +0000</pubDate>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[c++]]></category>
		<category><![CDATA[cocos2d-x]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[fade in]]></category>
		<category><![CDATA[fade out]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[SimpleAudioEngine]]></category>
		<guid isPermaLink="false">http://www.mikkolajoni.com/?p=645</guid>

					<description><![CDATA[Hello, In case someone is having some sort of difficulty implementing fading music effects in Cocos2d-x 3.0, feel free to click link below and see my implementation. https://github.com/joni-mikkola/cocos2d-x-tutorials I have inherited ActionInterval class for my MusicTo class, which means that it can be used as any Action in Cocos2d-x 3.0. To fade out music completely ... <a title="Creating fading music effect in Cocos2d-x 3.0" class="read-more" href="https://jonimikkola.com/creating-fading-music-effect-in-cocos2d-x-3-0/" aria-label="More on Creating fading music effect in Cocos2d-x 3.0">Read more</a>]]></description>
										<content:encoded><![CDATA[<p>Hello,</p>
<p>In case someone is having some sort of difficulty implementing fading music effects in Cocos2d-x 3.0, feel free to click link below and see my implementation.</p>
<p><a href="https://github.com/joni-mikkola/cocos2d-x-tutorials">https://github.com/joni-mikkola/cocos2d-x-tutorials</a></p>
<p>I have inherited <strong>ActionInterval</strong> class for my MusicTo class, which means that it can be used as any <strong>Action</strong> in Cocos2d-x 3.0.</p>
<p>To fade out music completely in 1 second:<br />
<code><br />
runAction(MusicTo::create(1.0f, 0.0);<br />
</code></p>
]]></content:encoded>
					
					<wfw:commentRss>https://jonimikkola.com/creating-fading-music-effect-in-cocos2d-x-3-0/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Cocos2d-x 2.x keyboard implementation for Mac OS X</title>
		<link>https://jonimikkola.com/cocos2d-x-2-x-keyboard-implementation-for-mac-os-x/</link>
					<comments>https://jonimikkola.com/cocos2d-x-2-x-keyboard-implementation-for-mac-os-x/#respond</comments>
		
		<dc:creator><![CDATA[jonimikkola]]></dc:creator>
		<pubDate>Sat, 10 May 2014 18:39:59 +0000</pubDate>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[c++]]></category>
		<category><![CDATA[cocos2d-x]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[os x]]></category>
		<guid isPermaLink="false">http://www.mikkolajoni.com/?p=39</guid>

					<description><![CDATA[In case someone has problems implementing Mac Cocos2d-x 2.x keyboard like I did, here is link to GitHub with working solution: https://github.com/joni-mikkola/cocos2d-x/tree/keyboard I have provided sample project with the implementation code. I downloaded the original code from somewhere in Cocos2d-x forums and modified it properly to work with Mac OS X. All you have to do, ... <a title="Cocos2d-x 2.x keyboard implementation for Mac OS X" class="read-more" href="https://jonimikkola.com/cocos2d-x-2-x-keyboard-implementation-for-mac-os-x/" aria-label="More on Cocos2d-x 2.x keyboard implementation for Mac OS X">Read more</a>]]></description>
										<content:encoded><![CDATA[<p>In case someone has problems implementing Mac Cocos2d-x 2.x keyboard like I did, here is link to GitHub with working solution: <a title="http://jonimikkola.wordpress.com/2014/04/15/cocos2d-x-2-x-keyboard-implementation-for-mac/" href="https://github.com/joni-mikkola/cocos2d-x/tree/keyboard" target="_blank">https://github.com/joni-mikkola/cocos2d-x/tree/keyboard</a></p>
<p>I have provided sample project with the implementation code. I downloaded the original code from somewhere in Cocos2d-x forums and modified it properly to work with Mac OS X. All you have to do, is to add files from cocos2dx/keyboard_dispatcher to your XCode project, then put following in your CCLayer inheriting class:</p>
<p>[code language=&#8221;cpp&#8221;]<br />
class HelloWorld : public cocos2d::CCLayer, public cocos2d::CCKeyboardDelegate {<br />
&#8230;<br />
virtual void keyDown(int key);<br />
virtual void keyUp(int key);<br />
}</p>
<p>bool HelloWorld::init() {<br />
&#8230;<br />
CCDirector::sharedDirector()-&gt;getKeyboardDispatcher()-&gt;addDelegate(this);<br />
}</p>
<p>void HelloWorld::keyDown(int key) {<br />
CCLog(&quot;%d pressed&quot;, key);<br />
}</p>
<p>void HelloWorld::keyUp(int key) {<br />
CCLog(&quot;%d released&quot;, key);<br />
}<br />
[/code]</p>
<p>If you are having some sort of difficulties with the code, please leave a comment.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jonimikkola.com/cocos2d-x-2-x-keyboard-implementation-for-mac-os-x/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
