<?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>DrMop &#187; Cool news</title>
	<atom:link href="http://www.drmop.com/index.php/categories/think-tank/cool-news/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.drmop.com</link>
	<description>Mobile Game and App Programming Tutorials</description>
	<lastBuildDate>Sat, 19 May 2012 22:16:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Yet another IwGame Engine UI Progress Update</title>
		<link>http://www.drmop.com/index.php/2012/05/09/yet-another-iwgame-engine-ui-progress-update/</link>
		<comments>http://www.drmop.com/index.php/2012/05/09/yet-another-iwgame-engine-ui-progress-update/#comments</comments>
		<pubDate>Wed, 09 May 2012 23:37:57 +0000</pubDate>
		<dc:creator>drmop</dc:creator>
				<category><![CDATA[Android App Development]]></category>
		<category><![CDATA[Apps]]></category>
		<category><![CDATA[Blackberry Playbook App Development]]></category>
		<category><![CDATA[C++ Programming]]></category>
		<category><![CDATA[Cool news]]></category>
		<category><![CDATA[Game and App Development]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[iOS App Development]]></category>
		<category><![CDATA[IwGame Engine]]></category>
		<category><![CDATA[Pocketeers Limited]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Samsung Bada Development]]></category>
		<category><![CDATA[IwGame Engine UI]]></category>

		<guid isPermaLink="false">http://www.drmop.com/?p=1641</guid>
		<description><![CDATA[Not had a great deal of spare time to spend on the UI this week but did manage to get a few cool things in there including: Scrolling grids Scrolling list boxes Horizontal list boxes 9-patch brushes Child element sizing based on percentage of parent Child clipping Grid per column bindings Dynamic resizing of elements, [...]]]></description>
			<content:encoded><![CDATA[<p>Not had a great deal of spare time to spend on the UI this week but did manage to get a few cool things in there including:</p>
<ul>
<li>Scrolling grids</li>
<li>Scrolling list boxes</li>
<li>Horizontal list boxes</li>
<li>9-patch brushes</li>
<li>Child element sizing based on percentage of parent</li>
<li>Child clipping</li>
<li>Grid per column bindings</li>
<li>Dynamic resizing of elements, grids and list boxes will automatically re-layout child elements to make use of extra space</li>
<li>UI elements can allow touch events to bubble up to parent elements allowing them to also receive the same events</li>
<li>Tidied up the UI input system</li>
<li>4 parameter skewing &#8211;  See the wonky text on the large and small buttons for an example</li>
</ul>
<p>Heres a quick screen shot showing the current UI demo:</p>
<div id="attachment_1640" class="wp-caption aligncenter" style="width: 1034px"><a href="http://www.drmop.com/wp-content/uploads/2012/05/ui1.jpg"><img class="size-full wp-image-1640" title="More Advanced IwGame Engine UI" src="http://www.drmop.com/wp-content/uploads/2012/05/ui1.jpg" alt="More Advanced IwGame Engine UI Screen Shot" width="1024" height="768" /></a><p class="wp-caption-text">More Advanced IwGame Engine UI Screen Shot</p></div>
<p>Those frogs look happy to be sat in that list box like that <img src='http://www.drmop.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>And here&#8217;s a new and better video showing the new UI <a href="http://www.youtube.com/watch?v=IhtT_e5u8gU" target="_blank" rel="nofollow">http://www.youtube.com/watch?v=IhtT_e5u8gU</a></p>
<p>I hope to spend a few additional weeks on implementing more UI controls such as sliders and tab vies etc.. before we released 0.35.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.drmop.com/index.php/2012/05/09/yet-another-iwgame-engine-ui-progress-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IwGame UI Progress Update</title>
		<link>http://www.drmop.com/index.php/2012/05/04/iwgame-ui-progress-update/</link>
		<comments>http://www.drmop.com/index.php/2012/05/04/iwgame-ui-progress-update/#comments</comments>
		<pubDate>Fri, 04 May 2012 11:24:47 +0000</pubDate>
		<dc:creator>drmop</dc:creator>
				<category><![CDATA[Android App Development]]></category>
		<category><![CDATA[Apps]]></category>
		<category><![CDATA[Blackberry Playbook App Development]]></category>
		<category><![CDATA[C++ Programming]]></category>
		<category><![CDATA[Cool news]]></category>
		<category><![CDATA[Game and App Development]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[iOS App Development]]></category>
		<category><![CDATA[IwGame Engine]]></category>
		<category><![CDATA[Pocketeers Limited]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Samsung Bada Development]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[IwGame Engine UI]]></category>
		<category><![CDATA[User interface]]></category>

		<guid isPermaLink="false">http://www.drmop.com/?p=1577</guid>
		<description><![CDATA[Got a quick update showing how the IwGame engines UI system is shaping up. Note that the UI system is &#8220;bitmap&#8221; based and IwGame does not draw things like buttons, grids etc.. manually. Here&#8217;s a quick screen shot at iPad resolution showing some basic UI: This is just a static image however, so you cannot [...]]]></description>
			<content:encoded><![CDATA[<p>Got a quick update showing how the IwGame engines UI system is shaping up. Note that the UI system is &#8220;bitmap&#8221; based and IwGame does not draw things like buttons, grids etc.. manually. Here&#8217;s a quick screen shot at iPad resolution showing some basic UI:</p>
<div id="attachment_1578" class="wp-caption aligncenter" style="width: 1034px"><a href="http://www.drmop.com/wp-content/uploads/2012/05/ui.jpg"><img class="size-full wp-image-1578" title="Basic IwGame Engine UI" src="http://www.drmop.com/wp-content/uploads/2012/05/ui.jpg" alt="Basic IwGame Engine UI Screenshot" width="1024" height="768" /></a><p class="wp-caption-text">Basic IwGame Engine UI Screenshot</p></div>
<p>This is just a static image however, so you cannot really see the animation that&#8217;s built into the UI, for that you need to take a look at a quick video I stuck together showing the UI in action at <a title="iwGame Engine Basic UI Video" href="http://www.youtube.com/watch?v=oV3kYLbzcKo" rel="nofollow" target="_blank">http://www.youtube.com/watch?v=oV3kYLbzcKo</a></p>
<p>&nbsp;</p>
<p>The UI itself consists of the following elements:</p>
<ul>
<li> StackPanels &#8211; The top left hand control is a vertical stack panel containing 3 horizontal stack panels. Each horizontal stack panel contains multiple basic UI components including buttons, labels and text input boxes. The check boxes and the long named button are toggle buttons. The top stack panel and the components within the panel have been draggable so they can be dragged away from the stack panel and moved around. Tapping the Expert check box will spin the control 360 degrees using an animation time line. One of the buttons and two of the check boxes also have animation time lines applied to them.</li>
<li>Grid &#8211; The control to the bottom left is a 3&#215;4 grid that contains 12 items. These items are simple label buttons that when tapped will animate. A XOML array variable is bound to the grid and data from the array is moved into the grid. Updating the XOML array will automatically update the grid elements. The types of elements within the grid are defined using an item template. You can create a grid manually by adding components directly to the grid in XOML or in code bypassing the binding system. This allows you to create more complex controls within each grid cell. Tapping an item in the grid will set it animating</li>
<li>List box &#8211; The list box to the top right work on the same principles as the grid where data is bound to the list box and a template can be specified that defnies the type of items. This list box is a multi-select list box which allows you to select multiple  items</li>
<li>List Box 2 &#8211; The list box to the bottom right is more complex list box that shows list items using a more complex control. The list box items in this instance are created using a horizontal stack panel, which contains a label and a button. The list box is a single item selection list box</li>
</ul>
<p>The UI controls themselves can be moved around and placed anywhere in the scene. the whole scene can also be moved around.</p>
<p>To give you an idea as to how the XOML looks, here&#8217;s a short code clip showing the XOL that creates the list box to the upper right of the screen:</p>
<pre>   <span style="color: #008000;"> &lt;!-- Create a listbox --&gt; </span>
    <span style="color: #008000;">&lt;!-- ListBoxItems - Defines a list of items that will be bound to the list box --&gt;</span>
    &lt;<span style="color: #0000ff;">Variable</span> Name="ListBoxItems" Type="arraystring" Size="4" Value="Item 1, Item 2, Item 3, Item 4" /&gt;
    <span style="color: #008000;">&lt;!-- Create a template that will be used to generate the list box actors --&gt;</span>
    &lt;<span style="color: #0000ff;">Template</span> Name="ListBoxItemTemp"&gt;
        &lt;Label Name="ListItem$index$" Background="ListBoxItemBrush" BackgroundColour="200, 200, 200, 255" SelectedColour="80, 80, 255, 255" Font="trebuchet_12" TextColour="255, 255, 255, 255" SelectedTextColour="255, 255, 255, 255" Margin="0, 0, 20, 0" SelectType="toggle" Selected="false" /&gt;
    &lt;/<span style="color: #0000ff;">Template</span>&gt;
    &lt;<span style="color: #0000ff;">ListBox</span> Name="ListBox" Position="351, -190" Background="ListBoxBrush" MultiSelect="true" <span style="color: #ff00ff;">ItemsData="ListBoxItems"</span> <span style="color: #ff00ff;">ItemsTargetType="text"</span> ItemsTemplate="<span style="color: #ff00ff;">ListBoxItemTemp"</span> HitTest="true" Draggable="true" /&gt;</pre>
<p>&nbsp;</p>
<p>As you can see its pretty straight forward:</p>
<ul>
<li>We create an array string variable and assign it the data that will be bound to the list box</li>
<li>We create a template that represents our items</li>
<li>We create a list box that uses the template and data and make it draggable</li>
</ul>
<p>Well that&#8217;s it for now. We will be adding more and more features to the UI over the coming weeks and will keep you updated.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.drmop.com/index.php/2012/05/04/iwgame-ui-progress-update/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Pocketeers Limited is taking on New Mobile Projects</title>
		<link>http://www.drmop.com/index.php/2012/05/03/pocketeers-limited-new-mobile-projects/</link>
		<comments>http://www.drmop.com/index.php/2012/05/03/pocketeers-limited-new-mobile-projects/#comments</comments>
		<pubDate>Thu, 03 May 2012 14:05:55 +0000</pubDate>
		<dc:creator>drmop</dc:creator>
				<category><![CDATA[Android App Development]]></category>
		<category><![CDATA[Apps]]></category>
		<category><![CDATA[Blackberry Playbook App Development]]></category>
		<category><![CDATA[Cool news]]></category>
		<category><![CDATA[Digital Publishing]]></category>
		<category><![CDATA[Game and App Development]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[iOS App Development]]></category>
		<category><![CDATA[IwGame Engine]]></category>
		<category><![CDATA[Marmalade SDK]]></category>
		<category><![CDATA[Nintendo]]></category>
		<category><![CDATA[Pocketeers Limited]]></category>
		<category><![CDATA[Samsung Bada Development]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Game projects wanted]]></category>
		<category><![CDATA[Mobile projects]]></category>

		<guid isPermaLink="false">http://www.drmop.com/?p=1568</guid>
		<description><![CDATA[&#160; Need a mobile game or app developed across multiple platforms (iPhone, iPad, Andriod,Bada, PlayBook etc..) at little extra cost? Or maybe you need a rapid prototype of your next game or app idea creating as proof of concept? Pocketeers Limited a UK based mobile app and game developer (established in 2002) responsible for the [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsandwich--><br />
<div id="attachment_1569" class="wp-caption aligncenter" style="width: 266px"><a href="http://www.drmop.com/wp-content/uploads/2012/05/Pocketeers_Logo_256x256.png"><img class="size-full wp-image-1569" title="Pocketeers_Logo_256x256" src="http://www.drmop.com/wp-content/uploads/2012/05/Pocketeers_Logo_256x256.png" alt="Pocketeers Limited Mobile Developer Logo" width="256" height="256" /></a><p class="wp-caption-text">Pocketeers Limited Mobile Developer</p></div></p>
<p>&nbsp;</p>
<p>Need a mobile game or app developed across multiple platforms (iPhone, iPad, Andriod,Bada, PlayBook etc..) at little extra cost? Or maybe you need a rapid prototype of your next game or app idea creating as proof of concept?</p>
<p>Pocketeers Limited a UK based mobile app and game developer (established in 2002) responsible for the creation of the IwGame Engine are looking to take on additional gaming and app projects. Pocketeers will consider any size project, but will favour those projects that utilise the IwGame engine / Marmalade SDK. Pocketeers have worked with clients large and small including the likes of Electronic Arts, Destination Software, Ideaworks, Honey Badger Studios, Tournay Software, and others.  Pocketeers provide a full range of services including design, coding, art work, audio and testing at very competitive prices.</p>
<p>For more details you can contact Pocketeers Limited via the web at <a href="http://www.pocketeers.co.uk/?page_id=8">http://www.pocketeers.co.uk/?page_id=8</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.drmop.com/index.php/2012/05/03/pocketeers-limited-new-mobile-projects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Marmalade Job Post &#8211; Playalla Need Word Game Developer</title>
		<link>http://www.drmop.com/index.php/2012/04/30/marmalade-job-post-playalla-need-word-game-developer/</link>
		<comments>http://www.drmop.com/index.php/2012/04/30/marmalade-job-post-playalla-need-word-game-developer/#comments</comments>
		<pubDate>Mon, 30 Apr 2012 09:41:27 +0000</pubDate>
		<dc:creator>drmop</dc:creator>
				<category><![CDATA[AirPlay SDK]]></category>
		<category><![CDATA[Android App Development]]></category>
		<category><![CDATA[Blackberry Playbook App Development]]></category>
		<category><![CDATA[C++ Programming]]></category>
		<category><![CDATA[Cool news]]></category>
		<category><![CDATA[iOS App Development]]></category>
		<category><![CDATA[Marmalade SDK]]></category>
		<category><![CDATA[Marmalade SDK Jobs]]></category>
		<category><![CDATA[Samsung Bada Development]]></category>
		<category><![CDATA[Marmalade SDK Job]]></category>

		<guid isPermaLink="false">http://www.drmop.com/?p=1540</guid>
		<description><![CDATA[Hi Everyone, Another job posting has come across my desk recently so here it is. A new start-up called Playalla is seeking a  C/C++ Marmalade SDK developer for a short term contract (around 3 months) to help them finish their word games. Playalla already have a prototype of their game up and running based on [...]]]></description>
			<content:encoded><![CDATA[<p>Hi Everyone,</p>
<p>Another job posting has come across my desk recently so here it is. A new start-up called Playalla is seeking a  C/C++ Marmalade SDK developer for a short term contract (around 3 months) to help them finish their word games. Playalla already have a prototype of their game up and running based on match-3 game play. Ideally they are looking for a developer that has previous experience with creating word games. The work can be carried out remotely so is ideal for a freelance game developer.</p>
<p>If you are interested then please send a few details about yuorself, your experience (games released etc..) to Wissam at <a href="mailto:wissamharoun@hotmail.com">wissamharoun@hotmail.com</a></p>
<p>Mat</p>
]]></content:encoded>
			<wfw:commentRss>http://www.drmop.com/index.php/2012/04/30/marmalade-job-post-playalla-need-word-game-developer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Game Engines Review</title>
		<link>http://www.drmop.com/index.php/2012/04/25/game-engines-review/</link>
		<comments>http://www.drmop.com/index.php/2012/04/25/game-engines-review/#comments</comments>
		<pubDate>Wed, 25 Apr 2012 13:08:13 +0000</pubDate>
		<dc:creator>drmop</dc:creator>
				<category><![CDATA[AirPlay SDK]]></category>
		<category><![CDATA[Cool news]]></category>
		<category><![CDATA[IwGame Engine]]></category>
		<category><![CDATA[Marmalade SDK]]></category>
		<category><![CDATA[Pocketeers Limited]]></category>
		<category><![CDATA[Mobile Game Engines]]></category>

		<guid isPermaLink="false">http://www.drmop.com/?p=1504</guid>
		<description><![CDATA[I came across a cool web sit the other day that shows many of the different game engine solutions for mobile platforms at http://mobilegameengines.com. The list itself is very comprehensive and includes information relating to the engines as well as reviews from actual engine users. If you have a spare 5-10 mins please consider leaving a [...]]]></description>
			<content:encoded><![CDATA[<p>I came across a cool web sit the other day that shows many of the different game engine solutions for mobile platforms at <a href="http://mobilegameengines.com/" rel="nofollow" target="_blank">http://mobilegameengines.com</a>. The list itself is very comprehensive and includes information relating to the engines as well as reviews from actual engine users.</p>
<p>If you have a spare 5-10 mins please consider leaving a review for the IwGame Engine at <a href="http://mobilegameengines.com/iphone/engines/40-iwgame-engine" rel="nofollow" target="_blank">http://mobilegameengines.com/iphone/engines/40-iwgame-engine</a></p>
<p>And possibly also a review for the Marmalade SDK at <a href="http://mobilegameengines.com/iphone/engines/11-marmalade" rel="nofollow" target="_blank">http://mobilegameengines.com/iphone/engines/11-marmalade</a></p>
<p>A BIG thank you to anyone that gets the time to leave a review</p>
]]></content:encoded>
			<wfw:commentRss>http://www.drmop.com/index.php/2012/04/25/game-engines-review/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Puzzle Friends FREE for iOS Just Released</title>
		<link>http://www.drmop.com/index.php/2012/04/19/puzzle-friends-free-for-ios-just-released/</link>
		<comments>http://www.drmop.com/index.php/2012/04/19/puzzle-friends-free-for-ios-just-released/#comments</comments>
		<pubDate>Thu, 19 Apr 2012 23:41:14 +0000</pubDate>
		<dc:creator>drmop</dc:creator>
				<category><![CDATA[Apps]]></category>
		<category><![CDATA[Cool news]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[IwGame Engine]]></category>
		<category><![CDATA[Pocketeers Limited]]></category>
		<category><![CDATA[Puzzle Friends]]></category>
		<category><![CDATA[Puzzle Friends FREE for iOS]]></category>

		<guid isPermaLink="false">http://www.drmop.com/?p=1472</guid>
		<description><![CDATA[IwGame powered Puzzle Friends has just been released on iPhone, iPad and iPod Touch. This product shows many of the latest IwGame features running in a commercial product on iOS, including in-app purchasing, Facebook posting and dynamic content. It also includes Scoreloop leaderboards which will be integrated into IwGame soon as an extension. http://itunes.apple.com/us/app/puzzle-friends/id513683800?ls=1&#38;mt=8 Its [...]]]></description>
			<content:encoded><![CDATA[<p>IwGame powered Puzzle Friends has just been released on iPhone, iPad and iPod Touch. This product shows many of the latest IwGame features running in a commercial product on iOS, including in-app purchasing, Facebook posting and dynamic content. It also includes Scoreloop leaderboards which will be integrated into IwGame soon as an extension.</p>
<p><a href="http://itunes.apple.com/us/app/puzzle-friends/id513683800?ls=1&amp;mt=8">http://itunes.apple.com/us/app/puzzle-friends/id513683800?ls=1&amp;mt=8</a></p>
<p>Its FREE so grab a copy now and check it out. Please consider leaving a nice review if you like the game <img src='http://www.drmop.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.drmop.com/index.php/2012/04/19/puzzle-friends-free-for-ios-just-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IwGame Engine Update &#8211; XML Schema for XOML Now Available</title>
		<link>http://www.drmop.com/index.php/2012/04/18/iwgame-engine-update-xml-schema-for-xoml-now-available/</link>
		<comments>http://www.drmop.com/index.php/2012/04/18/iwgame-engine-update-xml-schema-for-xoml-now-available/#comments</comments>
		<pubDate>Wed, 18 Apr 2012 16:45:49 +0000</pubDate>
		<dc:creator>drmop</dc:creator>
				<category><![CDATA[Android App Development]]></category>
		<category><![CDATA[Cool news]]></category>
		<category><![CDATA[Game and App Development]]></category>
		<category><![CDATA[iOS App Development]]></category>
		<category><![CDATA[IwGame Engine]]></category>
		<category><![CDATA[Pocketeers Limited]]></category>
		<category><![CDATA[Samsung Bada Development]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[XOML XML Schema]]></category>

		<guid isPermaLink="false">http://www.drmop.com/?p=1454</guid>
		<description><![CDATA[Ok, so we&#8217;ve heard back from a few of you and its apparent that XOML can be a little difficult to work with especially as it had no intellisense to help create well formed XOML. In the interests of making XOML much easier to write we have created an XML Schema that you can use [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, so we&#8217;ve heard back from a few of you and its apparent that XOML can be a little difficult to work with especially as it had no intellisense to help create well formed XOML. In the interests of making XOML much easier to write we have created an XML Schema that you can use to validate your XOML and provide intellisense support. Please note that the schema has only been tested in Visual Studio 2010. If you have problems with it in any other IDE then please let us know.</p>
<p>The XML Schema for XOML can be downloaded from <a title="XOML XML Schema" href="http://www.drmop.com/XOML.xsd">http://www.drmop.com/XOML.xsd</a></p>
<p>Updated versions of the Schema will also be included with the IwGame Engine from v0.35 onwards</p>
<p>To use the Schema in Visual Studio 2010, open your XOML file, right click somewhere on the page and select properties then go to the properties windows. Click in the Schemas box then click the small file selector to the right (this will open up all of the available XML schemas). If XOML.xsd is not already in the list then click the Add button which pops up the file select dialog. Select XOML.xsd and open it, this will place it in the XML schemas list. Now click in the Use column next to XOML.xsd and select &#8220;Use this schema&#8221; then click OK. Your document should now be validated against the XOML schema and you should have intellisense / auto-complete etc..</p>
<p>Note that there are a few restrictions, for example, the schema does not include support for custom actor / scene names or support for FromTemplate parameters. if you are XSD savvy enough to figure out how to add that support then please let us know (I personally have only spent one day working with XSD which was today so I&#8217;m still a little wet behind the ears). For the meantime, you may want to edit the XOML.xsd schema file and add them yourself. A quick and easy way to get the schema to recognise your custom named scenes is to edit XOML.xsd, go to the bottom of the file and you will see a group called TopLevel. Copy and paste the line that defines Scene and change the word Scene to the name of your own scene class, e.g:</p>
<p><span style="color: #ff6600;">&lt;xs:element name=&#8221;Scene&#8221; type=&#8221;SceneType&#8221; /&gt;</span></p>
<p><span style="color: #ff6600;">&lt;xs:element name=&#8221;MenuScene&#8221; type=&#8221;SceneType&#8221; /&gt;</span></p>
<p>To add a custom actor create a copy the ActorImage tag and rename the copy to your custom class name, e.g.:</p>
<p><span style="color: #ff6600;">&lt;xs:element name=&#8221;ActorImage&#8221; type=&#8221;ActorImageType&#8221; /&gt;</span></p>
<p><span style="color: #ff6600;">&lt;xs:element name=&#8221;FrogActor&#8221; type=&#8221;ActorImageType&#8221; /&gt;</span></p>
<p>For actors, you will also need to copy the same line to the ActorGroup (situated just below the TopLevel group)</p>
<p>Please note that this will not take into account your own custom parameters, for that you will need to add your own complex types and attributes to handle it.</p>
<p>Lastly, to add custom actions, go to the top of XOML.xsd to the ActionsEnum type and copy one of the existing actions, paste and replace your own action name, e.g:</p>
<p><span style="color: #ff6600;">&lt;xs:enumeration value=&#8221;CustomAction1&#8243; /&gt;</span></p>
<p>Well that&#8217;s it, hope the schema helps to make XOML more usable. Please let us know if you have any problems (don&#8217;t send me complex schema questions because I don&#8217;t have a clue <img src='http://www.drmop.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.drmop.com/index.php/2012/04/18/iwgame-engine-update-xml-schema-for-xoml-now-available/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>IwGame Engine v0.34 Released &#8211; Modifiers, Box2D Joints and Marmalade 6.0 fix</title>
		<link>http://www.drmop.com/index.php/2012/04/17/iwgame-engine-v0-34-released-modifiers-box2d-joints-and-marmalade-6-0-fix/</link>
		<comments>http://www.drmop.com/index.php/2012/04/17/iwgame-engine-v0-34-released-modifiers-box2d-joints-and-marmalade-6-0-fix/#comments</comments>
		<pubDate>Tue, 17 Apr 2012 17:23:33 +0000</pubDate>
		<dc:creator>drmop</dc:creator>
				<category><![CDATA[AirPlay SDK]]></category>
		<category><![CDATA[Android App Development]]></category>
		<category><![CDATA[Blackberry Playbook App Development]]></category>
		<category><![CDATA[C++ Programming]]></category>
		<category><![CDATA[Cool news]]></category>
		<category><![CDATA[iOS App Development]]></category>
		<category><![CDATA[IwGame Engine]]></category>
		<category><![CDATA[Marmalade SDK]]></category>
		<category><![CDATA[Pocketeers Limited]]></category>
		<category><![CDATA[Samsung Bada Development]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[IwGame Update]]></category>

		<guid isPermaLink="false">http://www.drmop.com/?p=1442</guid>
		<description><![CDATA[New here? What&#8217;s IwGame? IwGame is an open source free to use cross platform game engine for iPhone, iPad, Android, Bada, Playbook, Symbian, Windows Mobile, LG-TV, Windows and Mac, built on top of the Marmalade SDK. You can find out more and download the SDK from our IwGame Engine page. Well this release is a [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.drmop.com/wp-content/uploads/2012/01/IwGameLogo2.png"><img class="aligncenter size-large wp-image-705" title="IwGameLogo2" src="http://www.drmop.com/wp-content/uploads/2012/01/IwGameLogo2-1024x300.png" alt="" width="512" height="150" /></a></p>
<p>New here? What&#8217;s IwGame? IwGame is an open source free to use cross platform game engine for iPhone, iPad, Android, Bada, Playbook, Symbian, Windows Mobile, LG-TV, Windows and Mac, built on top of the <a title="Marmalade SDK" href="http://www.madewithmarmalade.com/" rel="nofollow" target="_blank">Marmalade SDK</a>. You can find out more and download the SDK from our <a title="IwGame Engine" href="http://www.drmop.com/index.php/iwgame-engine/" target="_self">IwGame Engine page</a>.</p>
<p>Well this release is a little earlier I’m afraid, we wanted to get UI functionality into 0.34, but 0.33 had a compile issue with the recent Marmalade 6.0 release so we decided to do a release now.</p>
<p>Below is the list of changes for IwGame 0.34:</p>
<ul>
<li>Fixed Marmalade 6.0 compile error</li>
<li>JPEG loading support has been removed as this is now supported by Marmalade image classes</li>
<li>New extensions system added (pass true for enable_extensions in IwGame::Init() to enable, enabled by default) – Extensions are none standard IwGame code that will be added over the coming months to support game specific features</li>
<li>Actions now have a 4th parameter</li>
<li>New modifier system added that allows you to add functionality units to actors and scene. This enables a build from blocks style development</li>
<li>New AddModifier action that can be used to add a modifier to an actor or scene and modifier its behaviour in real-time</li>
<li>New ChangeModifier action that can be used to change the active state or remove a modifier from an actor or scene</li>
<li>Actors can now be marked as draggable. A draggable actor can be moved aruond by the user using their finger</li>
<li>New SetProperty action added for actors. You can now directly change the properties of an actor using actions. Can also be used to add torque and force onto actors under control of the physics system</li>
<li>New AddProperty action added for actors. This action can be used to add a value onto the peoperties of an actor</li>
<li>IwGame now supports brushes in code and in XOML. Brushes can be created and attached to actors saving you from having to specify image and SrcRect for each actor. This enables actor styling across any actors</li>
<li>CIwGameActorImage can now be instantiated from XOML using the ActorImage tag</li>
<li>New XOML atlas inner tag added to animations to allow auto generation of sprite atlas frames</li>
<li>Support has been added for joints (distance, revolute, prismatic, pulley and wheel joints are supported in code and in XOML)</li>
<li>A scenes physics update can now be changed between constant time step and variable</li>
<li>Box2D materials now support bullet, fixed rotation and gravity scaling parameters</li>
<li>Checks for duplicates added to resources, variables, actions, modifiers, class creators</li>
<li>New CIwGameActorConnector extension actor added – This actor will size and orientate itself so that it connects two static / dynamic points in space (can target moving actors)</li>
<li>New CIwGameModFollowHeading modifier extension added – When added to an existing actor the actor can be controlled using headnig and speed instead of velocity</li>
<li>CIwGameImage::CreatePNG() now supports RGBA_8888</li>
<li>Two basic Hello World examples added, one that displays text in code and another that uses XOML</li>
<li>BUG FIX: IwGameBox2d now coompiles on Mac without error</li>
<li>BUG FIX: CIwGameBox2dBody::setFixture() now behaves as expected</li>
<li>BUG FIX: Collision flags are now restored when turning an object from none collidable to collidable</li>
<li>BUG FIX: Memory leak in CIwGameActorImage::SetSrcDest(), SetSrcRect() and SetDestSize()</li>
<li>BUG FIX: Fixed problem with html parsing in CIwGameAds::ExtractLinkAndImageFromtHTML()</li>
<li>BUG FIX: CIwGameImage::CreatePNG() crash bug fixed</li>
</ul>
<p>Lots of changes and a few bug fixes for good measure. The most interesting changes include Box2D physics joints (been playing with them all week and they are awesome), the new modifiers system, draggable actors and the ability to set actor properties directly using actions. Lets look at some of these new changes in more detail:</p>
<h2>Box2D Joints Support</h2>
<p>Physics joints enable you to connect physical bodies together in a variety of ways. The following types of physical joints are currently supported:</p>
<ul>
<li>Distance – A distance joint limits the distance of two bodies and attempts to keep them the same distance apart, damping can also be applied</li>
<li>Revolute – A revolute joint forces two bodies to share a common anchor point. It has a single degree of freedom and the angle between the two bodies can be limited. In addition a motor can also be applied to the joint</li>
<li>Prismatic – A prismatic joint limits movement between the two bodies by translation (rotation is prevented). The translational distance between the two joints can be limited. In addition a motor can also be applied to the joint</li>
<li>Pulley Joint – A pulley joint can be used to create a pulley system between two bodies so that when one body rises the other will fall.</li>
<li>Wheel Joint – A wheel joint restricts one body to the line on another body and can be used to create suspension springs. A motor can also be applied to the joint</li>
</ul>
<p>All joints share the same base class IIwGameBox2dJoint</p>
<p>Joints can be created in code and attached to a body using CiwGameBox2dBody::addJoint(). Joints can later be removed using removeJoint(). You can also search for existing joints using getJoint() and findJoint()</p>
<pre>        &lt;ActorImage Name="Crate1" ...... /&gt;
        &lt;ActorImage Name="Crate2" ...... &gt;
            &lt;Joints&gt;
                &lt;Joint type="distance" ActorB="Crate1" OffsetA="0, 50" OffsetB="0, -50" Frequency="10" Damping="0" SelfCollide="true" /&gt;
            &lt;/Joints&gt;
        &lt;/ActorImage&gt;</pre>
<p>The easiest way to create and attach joints is using XOML. Below is an example showing how to create and attach a distance joint between two crates:</p>
<h2>Actor and Scene Modifiers</h2>
<p>IwGame supports modifiers using the IwGameModfier system. Modifiers can be thought of as small functional building blocks that can be stacked in an actor or scene to extend the functionality of that actor or scene. For example, a typical modifier for a scene could be one that tracks the players scores / hi-scores, change day / night settings or detects special gestures. An actor modifier example could be a modifier that allows the actor move around using heading and speed or even a modifier with functionality specific to your game such as make a baddy that walks left and right on a platform. The idea is to allow developers to build games and apps up from smaller re-usable building blocks and be able to add them using code or XOML. Below is a quick example showing how to attach a modifiers list to an actor in XOML:</p>
<pre>     &lt;ActorImage Name="Baddy1" ....... &gt;
          &lt;Modifiers&gt;
              &lt;Modifier Name="AddThrustMod" Active="true" Param1="1" /&gt;
              &lt;Modifier Name="ShootPlayerWhenClose" Active="true" Param1="1" /&gt;
          &lt;/Modifiers&gt;
     &lt;/ActorImage&gt;</pre>
<p>Here we have added two modifiers to the Baddy1 actor which modify its behaviour. Note that up to 4 parameters can be passed to the modifier</p>
<p>Modifiers can also be attached in code like this:</p>
<pre>    // Find the modifiers creator
    IIwGameModifierCreator* creator = IW_GAME_MODS-&gt;findCreator("addthrustmod");
    if (creator != NULL)
    {
        // Create an instance of the modifier
        IIwGameModifier* mod = creator-&gt;CreateInstance();
        if (mod != NULL)
        {
            // Set up the instance
            mod-&gt;setName("addthrustmod");
            mod-&gt;setActive(true);
            mod-&gt;setParameter(0, "1");

            // Add the modifier to the actor
            actor-&gt;getModifiers()-&gt;addModifier(mod);
        }
    }</pre>
<h2>Draggable Actors</h2>
<p>Any actor can now be set as draggable, allowing the user to tap it and drag it around the world. You can make any actor draggble in XOML by adding Draggable=&#8221;true&#8221; to its definition.</p>
<h2>Setting / Updating Actor Properties from XOML</h2>
<p>Its now possible to set or update actor properties directly from an action in XOML. Using the new SetProperty / AddProperty actions</p>
<h2>Extensions System</h2>
<p>From v0.34 of IwGame a new optional extensions system has been added. The extensions system is basically a collection of actors, scenes, actions, modifiers and other elements that are not part of the base IwGame engine. The extensions system provides support for game specific objects and other functionality that can be used to make creating specific types of games much easier. There&#8217;s not many extensions available yet but many more will be added in the future</p>
<h2>IwGame Usage Changes</h2>
<p>Please note the recent changes that have been applied to IwGame Usage. The new usage terms are shown below:</p>
<p>You are free to use IwGame in your projects in part or in whole as long as the header comments remain in-tact. Whilst you are not obliged to mention your usage of IwGame in your products it would be great and beneficial to let us know as we can publicise your product on our blog and other web sites / services (Our blog receives over 200,000 hits per month) However, if you use any part of the IwGame extensions system, which includes extension actors, extension scenes or extension modifiers then you are required to mention usage of the IwGame Engine in your product.</p>
<p>You may not claim the IwGame engine or its documentation as your own work or package it up and include it in any kind of middleware product without express prior written notice from an executive of Pocketeers Limited with the correct authority to grant authorisation. You may not publicly host any source code that is part of the IwGame Engine, the source will be hosted at <a title="IwGame Engine" href="http://www.drmop.com/index.php/iwgame-engine/">http://www.drmop.com/index.php/iwgame-engine/</a></p>
<p>These changes apply to all versions of the IwGame Engine.</p>
<p>Well that&#8217;s it for this update</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.drmop.com/index.php/2012/04/17/iwgame-engine-v0-34-released-modifiers-box2d-joints-and-marmalade-6-0-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Marmalade 6.0 is out NOW!</title>
		<link>http://www.drmop.com/index.php/2012/04/16/marmalade-6-0-is-out-now/</link>
		<comments>http://www.drmop.com/index.php/2012/04/16/marmalade-6-0-is-out-now/#comments</comments>
		<pubDate>Mon, 16 Apr 2012 20:20:48 +0000</pubDate>
		<dc:creator>drmop</dc:creator>
				<category><![CDATA[AirPlay SDK]]></category>
		<category><![CDATA[Android App Development]]></category>
		<category><![CDATA[Blackberry Playbook App Development]]></category>
		<category><![CDATA[C++ Programming]]></category>
		<category><![CDATA[Cool news]]></category>
		<category><![CDATA[Game and App Development]]></category>
		<category><![CDATA[HTML Programming]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[iOS App Development]]></category>
		<category><![CDATA[JavaScript Programming]]></category>
		<category><![CDATA[Marmalade SDK]]></category>
		<category><![CDATA[Samsung Bada Development]]></category>
		<category><![CDATA[Marmalade 6.0]]></category>

		<guid isPermaLink="false">http://www.drmop.com/?p=1429</guid>
		<description><![CDATA[**** IwGame does not compile with Marmalade 6.0. To fix please comment out the following line at the top of IwGameImage.cpp for now. We will release an early update this week to fix it **** //#include &#8220;pngstruct.h&#8221; Ok, its not often I look in my email box and find good news, but today I saw [...]]]></description>
			<content:encoded><![CDATA[<p>**** IwGame does not compile with Marmalade 6.0. To fix please comment out the following line at the top of IwGameImage.cpp for now. We will release an early update this week to fix it ****</p>
<p>//#include &#8220;pngstruct.h&#8221;</p>
<p>Ok, its not often I look in my email box and find good news, but today I saw an email from Marmalade announcing Marmalade 6.0. I took a quick look over the changes list and the new features and it looks pretty awesome. I&#8217;m a little disappointed that there&#8217;s no native web deployment, but there&#8217;s plenty of other cool features to be playing with including:</p>
<ul>
<li>Web Marmalade &#8211; You can now develop apps with HTML5 / CSS3 and Javascript. Marmalade have used the same standard as Phone Gap to make it compatible (smart move IMO). This is pretty awesome in itself, but to be honest I&#8217;m waiting for the full native bridge exposure and documentation. You wont be making any real time smooth arcade style games with 6.0 but its great for apps and none arcade style game development. Either way I&#8217;m going to be getting my hands dirty with Javascript (the most lawless language on Earth <img src='http://www.drmop.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )</li>
<li>iPad retina support</li>
<li>New native UI enhancements including Toolbar, Table, Picket / Listbox , Tab / Tap Group, Activity indicator and Navigation bar</li>
<li>New Mac anehancements such as support accelerometer and location in the simulator</li>
<li>And a mass of bug fixes, including the notorious Facebook extension which has been upgraded to the latest on  Facebook SDK for iOS. Also native support for JPEG images</li>
</ul>
<p>To see the full list of changes check out Marmalades web site at <a href="https://www.madewithmarmalade.com/marmalade/whats-new" rel="nofollow" target="_blank">https://www.madewithmarmalade.com/marmalade/whats-new</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.drmop.com/index.php/2012/04/16/marmalade-6-0-is-out-now/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>IwGame Engine v0.33 Released – Unified Android and iOS in-app purchasing</title>
		<link>http://www.drmop.com/index.php/2012/04/06/iwgame-engine-v0-33-released-unified-android-and-ios-in-app-purchasing/</link>
		<comments>http://www.drmop.com/index.php/2012/04/06/iwgame-engine-v0-33-released-unified-android-and-ios-in-app-purchasing/#comments</comments>
		<pubDate>Fri, 06 Apr 2012 17:40:27 +0000</pubDate>
		<dc:creator>drmop</dc:creator>
				<category><![CDATA[Android App Development]]></category>
		<category><![CDATA[Apps]]></category>
		<category><![CDATA[Apps and Games]]></category>
		<category><![CDATA[C++ Programming]]></category>
		<category><![CDATA[cOnnecticOns]]></category>
		<category><![CDATA[Cool news]]></category>
		<category><![CDATA[Game and App Development]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[iOS App Development]]></category>
		<category><![CDATA[IwGame Engine]]></category>
		<category><![CDATA[Marketing]]></category>
		<category><![CDATA[Marmalade SDK]]></category>
		<category><![CDATA[Pocketeers Limited]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Puzzle Friends]]></category>
		<category><![CDATA[Android in-app purchasing]]></category>
		<category><![CDATA[iOS in-app purchasing]]></category>
		<category><![CDATA[IwGame Engine Update]]></category>

		<guid isPermaLink="false">http://www.drmop.com/?p=1239</guid>
		<description><![CDATA[New here? What&#8217;s IwGame? IwGame is an open source free to use cross platform game engine for iPhone, iPad, Android, Bada, Playbook, Symbian, Windows Mobile, LG-TV, Windows and Mac, built on top of the Marmalade SDK. You can find out more and download the SDK from our IwGame Engine page. I can tell you one thing, testing in-app [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.drmop.com/wp-content/uploads/2012/01/IwGameLogo2.png"><img class="aligncenter size-large wp-image-705" title="IwGameLogo2" src="http://www.drmop.com/wp-content/uploads/2012/01/IwGameLogo2-1024x300.png" alt="" width="512" height="150" /></a></p>
<p>New here? What&#8217;s IwGame? IwGame is an open source free to use cross platform game engine for iPhone, iPad, Android, Bada, Playbook, Symbian, Windows Mobile, LG-TV, Windows and Mac, built on top of the <a title="Marmalade SDK" href="http://www.madewithmarmalade.com/" rel="nofollow" target="_blank">Marmalade SDK</a>. You can find out more and download the SDK from our <a title="IwGame Engine" href="http://www.drmop.com/index.php/iwgame-engine/" target="_self">IwGame Engine page</a>.</p>
<p>I can tell you one thing, testing in-app purchasing from scratch is NOT an easy task, in fact its a pain in the a** to be quite honest. However, like anything that&#8217;s cool its worth doing. Its been a while coming but we finally put together a unified API for in-app purchasing on the Android and iOS platforms. To see the end product in action check out <a title="Puzzle Friends  FREE for Android" href="https://play.google.com/store/apps/details?id=com.pocketeers.puzzlefriends" rel="nofollow" target="_blank">Puzzle Friends on Android</a> (the new name for the free version of cOnnecticOns (I must have been off my head when I invented the name cOnnecticOns <img src='http://www.drmop.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ). The iOS version is currently with the great Apple reviewers in the sky.</p>
<p>Ok, here is the list of changes for 0.33:</p>
<ul>
<li>In-app purchasing added for Android and iOS (IwGameMarket)</li>
<li>Scenes can now be augmented after they have been created (like partial classes)</li>
<li>Scenes can now be layered visually</li>
<li>New SetAllTimelines action added to XOML that will set the timeline of all scenes</li>
<li>SetVariable action now allows you to specify the scene in which the variable lives</li>
<li>Resources can now be tagged with a tag name</li>
<li>New RemoveResource and RemoveResources actions that allow removal of resources from global resource manager</li>
<li>New CallActions action added that enables execution of other actions lists</li>
<li>Actor now has ScaleX and ScaleY bindings</li>
<li>Relative actor depth is now 0 for linked actors</li>
<li>UDID removed from IwGameAds for iOS</li>
<li>Scenes now have a ClipStatic property that will force the clipping area of a scene to stay in place on screen instead of moving with the scenes camera</li>
<li>BUG FIX: Scene NotifyResuming now called properly</li>
<li>BUG FIX: CIwGameAnimInstance::setAnimation() no longer crashes if NULL is passed</li>
<li>BUG FIX: IwGameAdsView sprites are now updated correctly</li>
</ul>
<p>The most interesting addition this update is the well hidden IN-APP PURCHASING for iOS and Android. With the aid of copy and paste lets take a look at the changes in more detail:</p>
<h2>IwGameMarket &#8211; Unified In App Purchasing API for iOS And Android</h2>
<p>Its an incredibly tough job to get noticed in the app stores these days with approaching half a million apps available in the larger stores (insane competition), its an even tougher job persuading Joe public to part with their money for your app. Many developers are turning to developing freemium titles as a means to increase visibility (app users are much more likely to download a free app) and earn money by offering the app in a limited form then allowing users to purchase additional content and game features. As of IwGame v0.33, basic in-app purchasing is now available for iOS and Android using a wrapper around Marmalade&#8217;s EDK in-app purchase extensions called IIwGameMarket.</p>
<p>IIwGameMarket is a not a concrete class however so you cannot just create one and use it. Instead it provides a basic interface for creating the platform specific market class as well as access to common functionality. At the moment the following marker classes are available:</p>
<p>CIwGameMarketiOS – Uses iOS in-app purchasing<br />
CIwGameMarketAndroid – Uses Android market billing<br />
CIwGameMarketTest – This version is a test class that you can use to simulate purchases / errors etc in the simulator.</p>
<p>IwGameMarket is designed to allow you to initialise and set-up and use in-app purchasing in a platform agnostic fashion, allowing you to query / purchase content very easily.</p>
<p>IwGameMarket works using a product list system, where you create and add CIwGameMarketProduct products to the IwGameMarket. Each CIwGameMarketProduct represents a single consumable / none consumable product that can be purchased.</p>
<p>Setting up the IwGameMarket is very simple, you simply call IIwGameMarket::Create() which initialises the correct market for the platform that your game or app is running on then set-up a few handlers, depending upon which messages you want to handle. Below shows a quick example:</p>
<blockquote>
<pre>IiwGameMarket::Create("Your android public key");
IIwGameMarket::getMarket()-&gt;setReceiptAvailableHandler(PurchaseComplete, NULL);
IIwGameMarket::getMarket()-&gt;setErrorHandler(PurchaseError, NULL);
IIwGameMarket::getMarket()-&gt;setRefundHandler(Refunded, NULL);	// Android only</pre>
</blockquote>
<p>Note that if you are releasing for iOS only then you do not need to supply your Android Market public key, simply pass no parameters to Create().</p>
<p>In this example, we have told IwGameMarket that we want to be notified when a purchase receipt is available, when an error occurs or when a transaction refund has happened.</p>
<p>When done with the market don&#8217;t forget to clean it up using:</p>
<blockquote>
<pre>IIwGameMarket::Destroy();</pre>
</blockquote>
<p>Now that the market is set-up we need to add products, below shows a quick example:</p>
<blockquote>
<pre>// Which OS are we running
int os = s3eDeviceGetInt(S3E_DEVICE_OS);

// Create product 1
CIwGameMarketProduct* product = new CIwGameMarketProduct();
product-&gt;Consumable = true;
product-&gt;ID = 1;
product-&gt;Name = "10 Coins";
if (os == S3E_OS_ID_IPHONE)
	product-&gt;ExternalID = "com.companyname.gamename.coinsx10";
else
	product-&gt;ExternalID = "coinsx10";
product-&gt;Purchased = false;
IIwGameMarket::getMarket()-&gt;addProduct(product);

// Create product 2
product = new CIwGameMarketProduct();
product-&gt;Consumable = true;
product-&gt;ID = 2;
product-&gt;Name = "50 Coins";
if (os == S3E_OS_ID_IPHONE)
	product-&gt;ExternalID = "com.companyname.gamename.coinsx50";
else
	product-&gt;ExternalID = "coinsx50";
product-&gt;Purchased = false;
IIwGameMarket::getMarket()-&gt;addProduct(product);</pre>
</blockquote>
<p>In this example, we create 2 products, our first represents 10 in-game coins, whilst the second represents 50 in-game coins. The ExternalID property is the product ID as defined in the in-app purchase section of your app in iTunes Connect for iOS or the product id of the in-app purchase in the in-app purchase section of your Android Market product control panel for Android. ID can be anything you like but will need to be unique.</p>
<p>Now that the system and product set-up are out the way, lets take a look at how to purchase a product. Firstly you need to call PurchaseProduct() passing in the ID defined in the CIwGameMarketProduct that you added earlier:</p>
<blockquote>
<pre>if (IiwGameMarket::getMarket()-&gt;PurchaseProduct(product_id))
{
}</pre>
</blockquote>
<p>You then need to add code to the callbacks that we added in our set-up:</p>
<blockquote>
<pre>int32 MarketScene::PurchaseComplete(void* caller, void* data)
{
	int type = IIwGameMarket::getMarket()-&gt;getLastPurchaseID();
	if (type == 1)	// 10 coins
	{
		GAME-&gt;AddCoins(10);
	}
	else
	if (type == 2)	// 50 coins
	{
		GAME-&gt;AddCoins(50);
	}

	return 1;
}

int32 MarketScene::PurchaseError(void* caller, void* data)
{
	// Display an error to the user

	return 1;
}

int32 MarketScene::Refunded(void* caller, void* data)
{
	// Only available on th Andriod platform
	CIwGameString id = IW_GAME_MARKET_ANDROID-&gt;getRefundedID();

	// Player was refunded so take back the items(s)

	return 1;
}</pre>
</blockquote>
<h2>Augmenting Scenes</h2>
<p>Another cool new feature in v0.33 is the ability to augment a previously created scene and add extra stuff to it after the fact. You can for example have a basic common scene that provides the basic background of the scene. This gets loaded by many other scenes and serves as its basic background. After its been loaded you can declare the scene a 2nd time and add additional elements which will then be integrated into the original scene.</p>
<h2>Layered Scenes</h2>
<p>Scenes can now be depth sorted (visually only). This is incredibly useful as previously scenes would always be drawn in the order in which they were added to the game class. There is no limit to the layer number of a scene.</p>
<h2>Tagged Resources</h2>
<p>Resources can now be given a tag name, allowing you to identify groups of resources. New actions have also been added that allow the removal of specific resources or groups of tagged resources from the global resource manager. We added this new features because we found that sometimes it is very useful to have resources in the global resource manager so they can be shared across scenes, but later needed a way to remove those resources when done with them.</p>
<h2>Calling Actions Lists</h2>
<p>Its now possible to call an actions list from an action. This is great if you want to define lots of different action sets then pick and choose which ones you want to use. </p>
<p>And that&#8217;s it for this update, please enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.drmop.com/index.php/2012/04/06/iwgame-engine-v0-33-released-unified-android-and-ios-in-app-purchasing/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

