<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2873846204347465510</id><updated>2011-07-31T12:49:30.056+02:00</updated><category term='alias'/><category term='snippet'/><category term='qt'/><category term='mac'/><category term='development'/><category term='stuff'/><title type='text'>Birmacher</title><subtitle type='html'>Game development in my spare time</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://birmacher.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2873846204347465510/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://birmacher.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Birmacher</name><uri>http://www.blogger.com/profile/16317195918694057796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_YO6GRzN-Gbg/TL6xUQfVDCI/AAAAAAAAA6s/6xr-z9NAkOA/S220/41276_1417277984865_1020079676_983257_6553565_n.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2873846204347465510.post-8170309153589094361</id><published>2011-07-29T00:05:00.001+02:00</published><updated>2011-07-29T00:06:10.151+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='snippet'/><category scheme='http://www.blogger.com/atom/ns#' term='qt'/><category scheme='http://www.blogger.com/atom/ns#' term='alias'/><category scheme='http://www.blogger.com/atom/ns#' term='mac'/><title type='text'>Make alias for a file with AppleScript</title><content type='html'>&lt;pre class="brush: c"&gt;bool createAlias(QString pathToShortcutTarget)&lt;br /&gt;{&lt;br /&gt;    QDir target(pathToShortcutTarget);&lt;br /&gt;    QFileInfo app(target.absolutePath());&lt;br /&gt;    QString createAliasWithFinder =&lt;br /&gt;        "tell application \"Finder\"\n"&lt;br /&gt;        "make new alias file at desktop to file \"" + app.fileName() + "\" ";&lt;br /&gt;    while (target.cdUp() &amp;amp;&amp;amp; !target.dirName().isEmpty())&lt;br /&gt;        createAliasWithFinder += "of folder \"" + target.dirName() + "\" ";&lt;br /&gt; &lt;br /&gt;    createAliasWithFinder += "of startup disk\nend tell";&lt;br /&gt;    QString osascript = "/usr/bin/osascript";&lt;br /&gt;    QStringList processArguments;&lt;br /&gt;    processArguments &amp;lt;&amp;lt; "-l" &amp;lt;&amp;lt; "AppleScript";&lt;br /&gt;    &lt;br /&gt;    QProcess p;&lt;br /&gt;    p.start(osascript, processArguments);&lt;br /&gt;    p.write(createAliasWithFinder.toUtf8());&lt;br /&gt;    p.closeWriteChannel();&lt;br /&gt;    return p.waitForFinished();&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2873846204347465510-8170309153589094361?l=birmacher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://birmacher.blogspot.com/feeds/8170309153589094361/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://birmacher.blogspot.com/2011/07/make-alias-for-file-with-applescript.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2873846204347465510/posts/default/8170309153589094361'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2873846204347465510/posts/default/8170309153589094361'/><link rel='alternate' type='text/html' href='http://birmacher.blogspot.com/2011/07/make-alias-for-file-with-applescript.html' title='Make alias for a file with AppleScript'/><author><name>Birmacher</name><uri>http://www.blogger.com/profile/16317195918694057796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_YO6GRzN-Gbg/TL6xUQfVDCI/AAAAAAAAA6s/6xr-z9NAkOA/S220/41276_1417277984865_1020079676_983257_6553565_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2873846204347465510.post-1348363079405827679</id><published>2010-10-24T01:37:00.003+02:00</published><updated>2010-10-24T01:38:51.400+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='development'/><title type='text'>Player entity and social gaming</title><content type='html'>I've finished the work with scrolling. Static backgrounds, and tiled maps can be added to the game without eating the framerate.&lt;br /&gt;Started to implement the player. Animating, enabling accelerometer and doing some basic movement.&lt;br /&gt;For animations I needed sprite sheets which is a lot of work to create - for me as a programmer:). For that I found a really great app called &lt;a href="http://zwoptexapp.com/" target="_blank"&gt;Zwoptex&lt;/a&gt;. It also supports Cocos2d, so I'm sure I'll buy a license!&lt;br /&gt;Also started to think about the social part of the game. I've never tried Game Center yet, so I made a search for it and found out that it only supports devices with iOS 4.1 or over.&lt;br /&gt;&lt;br /&gt;A long time ago I tried out &lt;a href="http://openfeint.com/" target="_blank"&gt;Openfeint&lt;/a&gt; so why not to go back and see how they are doing?! &lt;br /&gt;After jumping to the developer section I found a great iOS feature: Game Center Compatibility. The problem is solved:)&lt;br /&gt;&lt;br class="final-break" /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2873846204347465510-1348363079405827679?l=birmacher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://birmacher.blogspot.com/feeds/1348363079405827679/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://birmacher.blogspot.com/2010/10/untitled.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2873846204347465510/posts/default/1348363079405827679'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2873846204347465510/posts/default/1348363079405827679'/><link rel='alternate' type='text/html' href='http://birmacher.blogspot.com/2010/10/untitled.html' title='Player entity and social gaming'/><author><name>Birmacher</name><uri>http://www.blogger.com/profile/16317195918694057796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_YO6GRzN-Gbg/TL6xUQfVDCI/AAAAAAAAA6s/6xr-z9NAkOA/S220/41276_1417277984865_1020079676_983257_6553565_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2873846204347465510.post-180934717970093250</id><published>2010-10-21T18:12:00.003+02:00</published><updated>2010-10-21T18:15:51.639+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='development'/><title type='text'>Scrolling the background</title><content type='html'>Currently the scrolling is done by CCParallaxNode. There is 3 children layer added to the node, and when it's moved by 480pixels away, the node is positioned back to the origo, and the children elements get's a new texture.&lt;br /&gt;It's fast, but it should work with offsets to remove the positioning of the parallax node from the code.&lt;br /&gt;It was a bit hard to found out how to reposition the child elements. First I tried to go throw them, and set the new position, but nothing happened. After 1 hour I started to dig into Cocos2D and came up with this solution:&lt;br /&gt;&lt;pre class="brush: c"&gt;for(unsigned int i=0; i &amp;lt; parallaxArray_-&amp;gt;num; i++ ) {&lt;br /&gt;    [parallaxArray_-&amp;gt;arr[i] setOffset:ccpAdd([parallaxArray_-&amp;gt;arr[i] offset], offsetToAdd)];&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br class="final-break" /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2873846204347465510-180934717970093250?l=birmacher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://birmacher.blogspot.com/feeds/180934717970093250/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://birmacher.blogspot.com/2010/10/scrolling-background.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2873846204347465510/posts/default/180934717970093250'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2873846204347465510/posts/default/180934717970093250'/><link rel='alternate' type='text/html' href='http://birmacher.blogspot.com/2010/10/scrolling-background.html' title='Scrolling the background'/><author><name>Birmacher</name><uri>http://www.blogger.com/profile/16317195918694057796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_YO6GRzN-Gbg/TL6xUQfVDCI/AAAAAAAAA6s/6xr-z9NAkOA/S220/41276_1417277984865_1020079676_983257_6553565_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2873846204347465510.post-7203478967403264895</id><published>2010-10-21T00:39:00.001+02:00</published><updated>2010-10-21T00:39:27.213+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='development'/><title type='text'>Drawing background</title><content type='html'>&lt;p&gt;Currently I'm trying to find out the best method for drawing unlimited scrolling background.&lt;br /&gt;It seems like I've found a way to achieve this. On the iPod 4G the FPS isn't going under 55, but on the first generation it's going down to 44 frames per second (from 60). It needs to be optimized a little bit and everything will be okay.&lt;/p&gt;&lt;p&gt;Also started thinking about the platforms. The ground where the user gonna jump over and over. It would be great if I can draw it randomly, making the game variable.&lt;/p&gt;&lt;p&gt;The idea was to use tile maps. Each layer should present a small part of the level. The starting and the ending of the snippets should be almost the same. This will be good for connecting the parts together.&lt;/p&gt;&lt;p&gt;From these small parts will the map generated.&lt;/p&gt;&lt;br class='final-break'  /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2873846204347465510-7203478967403264895?l=birmacher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://birmacher.blogspot.com/feeds/7203478967403264895/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://birmacher.blogspot.com/2010/10/drawing-background.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2873846204347465510/posts/default/7203478967403264895'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2873846204347465510/posts/default/7203478967403264895'/><link rel='alternate' type='text/html' href='http://birmacher.blogspot.com/2010/10/drawing-background.html' title='Drawing background'/><author><name>Birmacher</name><uri>http://www.blogger.com/profile/16317195918694057796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_YO6GRzN-Gbg/TL6xUQfVDCI/AAAAAAAAA6s/6xr-z9NAkOA/S220/41276_1417277984865_1020079676_983257_6553565_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2873846204347465510.post-3426503381196727575</id><published>2010-10-20T14:41:00.002+02:00</published><updated>2010-10-20T14:44:15.379+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='development'/><title type='text'>Retina Display</title><content type='html'>My first game is gonna written to the iPhone. I'm not planning an iPad version, cause I think it would make the gamer looks silly when playing:)&lt;br /&gt;&lt;br /&gt;So there is two types of screen resolutions for the iPhone. The standard is 320x480 and devices with retina display is 640x960.&lt;br /&gt;From Cocos2d v0.99.5 beta3 Points is added to the project, to make it easier to develop on multiple devices. If I understand it, than all coordinates are transformed into the dimension of the standard device. There are no need to add different positions, just use points like that, and it will work on all devices:&lt;br /&gt;&lt;pre class="brush: c"&gt;sprite.position = ccp(240,160);&lt;br /&gt;&lt;/pre&gt;High resolution images is used automatically too. You say that you need sprite.png, and Cocos2d will see if retina display is enabled. If yes end there is a sprite-hd.png inside the resources than it will be used. The -hd suffix can be overwritten in the ccConfig.h file.&lt;br /&gt;Finally to enable retina display, just paste this code to your app delegate:&lt;br /&gt;&lt;pre class="brush: c"&gt;[director setOpenGLView:glView];&lt;br /&gt;&lt;br /&gt;if ([UIScreen instancesRespondToSelector:@selector(scale)]) {&lt;br /&gt;  [director setContentScaleFactor:[[UIScreen mainScreen] scale]];&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;a href="http://www.cocos2d-iphone.org/wiki/doku.php/prog_guide:how_to_develop_retinadisplay_games_in_cocos2d" target="_blank"&gt;For the article click here.&lt;/a&gt;&lt;br /&gt;&lt;br class="final-break" /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2873846204347465510-3426503381196727575?l=birmacher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://birmacher.blogspot.com/feeds/3426503381196727575/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://birmacher.blogspot.com/2010/10/retina-display.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2873846204347465510/posts/default/3426503381196727575'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2873846204347465510/posts/default/3426503381196727575'/><link rel='alternate' type='text/html' href='http://birmacher.blogspot.com/2010/10/retina-display.html' title='Retina Display'/><author><name>Birmacher</name><uri>http://www.blogger.com/profile/16317195918694057796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_YO6GRzN-Gbg/TL6xUQfVDCI/AAAAAAAAA6s/6xr-z9NAkOA/S220/41276_1417277984865_1020079676_983257_6553565_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2873846204347465510.post-4119071482338516968</id><published>2010-10-20T13:47:00.006+02:00</published><updated>2010-10-20T13:53:48.773+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='stuff'/><title type='text'>Syntax highlighting</title><content type='html'>If you don't want to upload codes to another host, than it's a bit hard to integrate some good looking code inside blogspot.&lt;br /&gt;&lt;br /&gt;After searching a while I've found this site: &lt;a href="http://geektalkin.blogspot.com/2009/11/embed-code-syntax-highlighting-in-blog.html" target="_blank"&gt;embed code syntax highlighting in blog by Shalabhsneha Katdare&lt;/a&gt;.&lt;br /&gt;If you follow the post, than the highlighting should be implemented in less than 5 minutes to your blog, and you can start posting code snippets like this:):&lt;br /&gt;&lt;pre class="brush: c"&gt;- (void)sayHello {&lt;br /&gt;   NSLog(@"Hello World");&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;Sadly Objective-C is not included in the bundled version:(&lt;br /&gt;&lt;br /&gt;Also I started to try out some blogging apps. The first one is called: &lt;a href="http://www.drinkbrainjuice.com/blogo" target="_blank"&gt;Blogo&lt;/a&gt;.&lt;br /&gt;It seems that Blogo kills the HTML code I'm adding to the code snippets. It cuts off the class="brush: c" from the pre tag&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2873846204347465510-4119071482338516968?l=birmacher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://birmacher.blogspot.com/feeds/4119071482338516968/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://birmacher.blogspot.com/2010/10/syntax-highlighting.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2873846204347465510/posts/default/4119071482338516968'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2873846204347465510/posts/default/4119071482338516968'/><link rel='alternate' type='text/html' href='http://birmacher.blogspot.com/2010/10/syntax-highlighting.html' title='Syntax highlighting'/><author><name>Birmacher</name><uri>http://www.blogger.com/profile/16317195918694057796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_YO6GRzN-Gbg/TL6xUQfVDCI/AAAAAAAAA6s/6xr-z9NAkOA/S220/41276_1417277984865_1020079676_983257_6553565_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2873846204347465510.post-6514930015207712009</id><published>2010-10-20T11:53:00.001+02:00</published><updated>2010-10-20T12:41:56.802+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='stuff'/><title type='text'>The very first post</title><content type='html'>The blog is restarted (again:)) I've finished it, cause I was only able to write about coding, and stuff like that. The point that I've started it again, is that I'm currently developing to the iOS platform at a company called &lt;a href="http://www.canecom.com/"&gt;Canecom Ltd&lt;/a&gt;. It's not a groundbreaking problem :), but I have totally stopped my game making life, and spent all my time, to projects and university (&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; border-collapse: collapse; font-family: arial, sans-serif; font-size: small; line-height: 13px;"&gt;&lt;a class="l" href="http://www.bme.hu/" style="color: #2200c1; cursor: pointer;" title="Budapest University of Technology and Economics"&gt;Budapest University of Technology and Economics&lt;/a&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; border-collapse: collapse; font-family: arial, sans-serif; font-size: small; line-height: 13px;"&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; border-collapse: separate; font-family: Times; font-size: medium; line-height: normal;"&gt;).&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_YO6GRzN-Gbg/TL66j_eeaTI/AAAAAAAAA7U/_5-cpyS5CKs/s1600/39b77f8c9fe811ce3c5d07c684bb430c.media.160x237.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="200" src="http://3.bp.blogspot.com/_YO6GRzN-Gbg/TL66j_eeaTI/AAAAAAAAA7U/_5-cpyS5CKs/s200/39b77f8c9fe811ce3c5d07c684bb430c.media.160x237.png" width="135" /&gt;&lt;/a&gt;After a time it was really hard to do it with love. I needed something more . So I decided to cut down my spare time and use it up for game development, but now on the iOS, and let's see how far I can get:)&lt;br /&gt;&lt;br /&gt;Also decided to do this blogging thing in english. I'm not practicing it since I've went to university, also I really need it.&lt;br /&gt;&lt;br /&gt;Currently I'm trying to understand the &lt;a href="http://www.cocos2d-iphone.org/"&gt;Cocos2d&lt;/a&gt;. It seems that it will be great for my games, and also has a great community support! So I'm learning it, doing some sample projects, and after that starting my fantastic game!:)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2873846204347465510-6514930015207712009?l=birmacher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://birmacher.blogspot.com/feeds/6514930015207712009/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://birmacher.blogspot.com/2010/10/very-first-post.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2873846204347465510/posts/default/6514930015207712009'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2873846204347465510/posts/default/6514930015207712009'/><link rel='alternate' type='text/html' href='http://birmacher.blogspot.com/2010/10/very-first-post.html' title='The very first post'/><author><name>Birmacher</name><uri>http://www.blogger.com/profile/16317195918694057796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_YO6GRzN-Gbg/TL6xUQfVDCI/AAAAAAAAA6s/6xr-z9NAkOA/S220/41276_1417277984865_1020079676_983257_6553565_n.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_YO6GRzN-Gbg/TL66j_eeaTI/AAAAAAAAA7U/_5-cpyS5CKs/s72-c/39b77f8c9fe811ce3c5d07c684bb430c.media.160x237.png' height='72' width='72'/><thr:total>0</thr:total></entry></feed>
