<?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-2676376133900729477</id><updated>2012-01-15T02:10:01.776+01:00</updated><category term='flash'/><category term='board game'/><category term='game mechanic'/><category term='characters'/><category term='bug'/><category term='graphics'/><category term='ipad'/><category term='sketch'/><category term='guest'/><category term='pixelated'/><category term='music'/><category term='self portrait'/><category term='puzzle'/><category term='movement'/><category term='game jam'/><category term='game'/><category term='coordinate system'/><category term='unity course'/><category term='int'/><category term='christoffer'/><category term='C#'/><category term='++'/><category term='travel'/><category term='gloss effect'/><category term='3D'/><category term='sound'/><category term='2D'/><category term='animation'/><category term='nodes'/><category term='San Francisco'/><category term='icon'/><category term='video'/><category term='fix'/><category term='playtest'/><category term='code'/><category term='java script'/><category term='drop7'/><category term='sprite sheet'/><category term='float'/><category term='plusone'/><category term='prototype'/><category term='touch'/><category term='problem'/><category term='unity'/><title type='text'>GameByOne</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://gamebyone.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://gamebyone.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Benedikte</name><uri>http://www.blogger.com/profile/09205662448994093574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>26</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2676376133900729477.post-2874393090785361533</id><published>2012-01-15T02:10:00.000+01:00</published><updated>2012-01-15T02:10:01.784+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='movement'/><category scheme='http://www.blogger.com/atom/ns#' term='puzzle'/><category scheme='http://www.blogger.com/atom/ns#' term='playtest'/><category scheme='http://www.blogger.com/atom/ns#' term='game mechanic'/><title type='text'>Playtesting = Game Design</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-DehXWGiAl-w/TxIjjOMRqCI/AAAAAAAAAH8/xPtpWbVBHXM/s1600/Mansion_proto.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="148" src="http://4.bp.blogspot.com/-DehXWGiAl-w/TxIjjOMRqCI/AAAAAAAAAH8/xPtpWbVBHXM/s200/Mansion_proto.jpg" width="200" /&gt;&lt;/a&gt;&lt;/div&gt;Today I playtested "the mansion game" three times. It's impressive how much changes from one game to the next. Rules are tweaked and in this case the size of the board was almost halved. The result a faster and probably funnier game.&lt;br /&gt;&lt;br /&gt;I haven't written the rules down yet. The game is a puzzle game and the mechanics are about movement, shifting the board pieces aka rooms around and moving the character in order to snatch gems. The goal is to be the first to get all the gems in your color. While playing your objective is therefore to rearrange the board so you can move as freely as possible while hopefully limiting your opponents movement.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2676376133900729477-2874393090785361533?l=gamebyone.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gamebyone.blogspot.com/feeds/2874393090785361533/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gamebyone.blogspot.com/2012/01/playtesting-game-design.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/2874393090785361533'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/2874393090785361533'/><link rel='alternate' type='text/html' href='http://gamebyone.blogspot.com/2012/01/playtesting-game-design.html' title='Playtesting = Game Design'/><author><name>Benedikte</name><uri>http://www.blogger.com/profile/09205662448994093574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-DehXWGiAl-w/TxIjjOMRqCI/AAAAAAAAAH8/xPtpWbVBHXM/s72-c/Mansion_proto.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2676376133900729477.post-2479672424450258738</id><published>2012-01-12T14:13:00.000+01:00</published><updated>2012-01-12T14:13:26.595+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='board game'/><category scheme='http://www.blogger.com/atom/ns#' term='playtest'/><category scheme='http://www.blogger.com/atom/ns#' term='prototype'/><title type='text'>Two Board Games</title><content type='html'>&lt;table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: right; margin-left: 1em; text-align: right;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-quDAJ1Xj5vE/Tw7cBCQZTfI/AAAAAAAAAHk/QlIsDkWmc70/s1600/maze_testing.jpg" imageanchor="1" style="clear: right; margin-bottom: 1em; margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="320" src="http://2.bp.blogspot.com/-quDAJ1Xj5vE/Tw7cBCQZTfI/AAAAAAAAAHk/QlIsDkWmc70/s320/maze_testing.jpg" width="240" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Testing the four-player-game with two players&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;Lately I've been working on making a couple of board games. Well it started with one -a four-player-game but being designed for four I can only playtest when there are four people around with an hour or two to spar. Strangely enough even though I share a flat with four other people it rarely happens that they are here at the same time. So I began developing a second idea that could be playtested with only two people.&lt;br /&gt;&lt;br /&gt;To begin with the allure of making a board game is really that it is something I can make on my own (with the brilliant input of playtesters). I find when working on digital games as you can see in the very old previous posts that I get stuck in the scripting part of the process. And then the game mechanic ideas are sidetracked by the fight with the code. Though I actually really like coding I don't seem to be good enough to work my way through to a finish prototype on my own. Board game prototyping could be the way forward. I guess you could just call paper prototyping.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2676376133900729477-2479672424450258738?l=gamebyone.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gamebyone.blogspot.com/feeds/2479672424450258738/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gamebyone.blogspot.com/2012/01/two-board-games.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/2479672424450258738'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/2479672424450258738'/><link rel='alternate' type='text/html' href='http://gamebyone.blogspot.com/2012/01/two-board-games.html' title='Two Board Games'/><author><name>Benedikte</name><uri>http://www.blogger.com/profile/09205662448994093574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-quDAJ1Xj5vE/Tw7cBCQZTfI/AAAAAAAAAHk/QlIsDkWmc70/s72-c/maze_testing.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2676376133900729477.post-4183558472495289278</id><published>2010-10-27T13:20:00.000+02:00</published><updated>2010-10-27T13:20:20.709+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='unity'/><category scheme='http://www.blogger.com/atom/ns#' term='3D'/><category scheme='http://www.blogger.com/atom/ns#' term='game jam'/><category scheme='http://www.blogger.com/atom/ns#' term='prototype'/><category scheme='http://www.blogger.com/atom/ns#' term='flash'/><category scheme='http://www.blogger.com/atom/ns#' term='2D'/><title type='text'>A 2D-3D-co-op platformer</title><content type='html'>I haven't giving up on the kid game. It's just resting.&lt;br /&gt;&lt;br /&gt;In the meantime I've dug up another project. This game idea was born at the Nordic Game Jam and executed as &lt;a href="http://www.globalgamejam.org/2010/you-say-jump-i-say-how-high"&gt;You say Jump? I say How High!&lt;/a&gt;. Is a 2D-3D-two-player-co-op platformer where the main focus in the the verbal interaction between the two players playing. Both players control the same character. None of them however have full control. One player sees the character in top view and can move the character up and down. The other player sees the platform from the side and only controls the sideways movement. As both game view are flat 2D view neither of the players have enough information available on their screen to control the character alone. THEY MUST COMMUNICATE!&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_58gUaPIj6dQ/TMgJBaFc5SI/AAAAAAAAAF4/2jWv-7fdxag/s1600/2d_3d.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="248" src="http://1.bp.blogspot.com/_58gUaPIj6dQ/TMgJBaFc5SI/AAAAAAAAAF4/2jWv-7fdxag/s320/2d_3d.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size: x-small;"&gt;&amp;nbsp;This image is suppose to explain the basic game mechanics.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;For the game jam we had a crazy set up with one computer and two screens. None of us had touched Unity at that point so we went with bad old flash for developing. It turned out to no ones surprise that it was a difficult task to code what on all accounts except the visuals is a 3D game in a 2D environment. So all in all not the ideal offset for the huge commercial success we all were hoping for ;)&lt;br /&gt;&lt;br /&gt;After playing around with iPad I realised how ideal it is for two-player games. So now I'm prototyping the game in Unity.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2676376133900729477-4183558472495289278?l=gamebyone.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gamebyone.blogspot.com/feeds/4183558472495289278/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gamebyone.blogspot.com/2010/10/2d-3d-co-op-platformer.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/4183558472495289278'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/4183558472495289278'/><link rel='alternate' type='text/html' href='http://gamebyone.blogspot.com/2010/10/2d-3d-co-op-platformer.html' title='A 2D-3D-co-op platformer'/><author><name>Benedikte</name><uri>http://www.blogger.com/profile/09205662448994093574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_58gUaPIj6dQ/TMgJBaFc5SI/AAAAAAAAAF4/2jWv-7fdxag/s72-c/2d_3d.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2676376133900729477.post-9214173576463799712</id><published>2010-10-25T01:30:00.004+02:00</published><updated>2010-10-25T01:36:55.308+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='christoffer'/><category scheme='http://www.blogger.com/atom/ns#' term='++'/><category scheme='http://www.blogger.com/atom/ns#' term='graphics'/><category scheme='http://www.blogger.com/atom/ns#' term='sketch'/><category scheme='http://www.blogger.com/atom/ns#' term='drop7'/><title type='text'>!++</title><content type='html'>I let Christoffer be the ++ on the blog. He wrote &lt;a href="http://gamebyone.blogspot.com/2010/09/hello.html"&gt;one post&lt;/a&gt;. And then nothing...&lt;br /&gt;So now I have to do something. And so I have. I've made a draft for the graphics for his game.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_58gUaPIj6dQ/TMTAdnxCqOI/AAAAAAAAAF0/ZgPl5SC31XA/s1600/node_spil.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://2.bp.blogspot.com/_58gUaPIj6dQ/TMTAdnxCqOI/AAAAAAAAAF0/ZgPl5SC31XA/s320/node_spil.png" width="213" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;The style reminds me of &lt;a href="http://areacodeinc.com/drop7/"&gt;drop7&lt;/a&gt; right now but maybe it will get a life of it's own.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2676376133900729477-9214173576463799712?l=gamebyone.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gamebyone.blogspot.com/feeds/9214173576463799712/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gamebyone.blogspot.com/2010/10/blog-post.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/9214173576463799712'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/9214173576463799712'/><link rel='alternate' type='text/html' href='http://gamebyone.blogspot.com/2010/10/blog-post.html' title='!++'/><author><name>Benedikte</name><uri>http://www.blogger.com/profile/09205662448994093574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_58gUaPIj6dQ/TMTAdnxCqOI/AAAAAAAAAF0/ZgPl5SC31XA/s72-c/node_spil.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2676376133900729477.post-9144706233447815224</id><published>2010-10-23T00:06:00.000+02:00</published><updated>2010-10-23T00:06:11.412+02:00</updated><title type='text'>Why Not</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_58gUaPIj6dQ/TMIKYhHgEmI/AAAAAAAAAFw/Ob2GWWNKL5I/s1600/toes_skyer_monstre.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="640" src="http://1.bp.blogspot.com/_58gUaPIj6dQ/TMIKYhHgEmI/AAAAAAAAAFw/Ob2GWWNKL5I/s640/toes_skyer_monstre.png" width="449" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Playing with size.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2676376133900729477-9144706233447815224?l=gamebyone.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gamebyone.blogspot.com/feeds/9144706233447815224/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gamebyone.blogspot.com/2010/10/why-not.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/9144706233447815224'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/9144706233447815224'/><link rel='alternate' type='text/html' href='http://gamebyone.blogspot.com/2010/10/why-not.html' title='Why Not'/><author><name>Benedikte</name><uri>http://www.blogger.com/profile/09205662448994093574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_58gUaPIj6dQ/TMIKYhHgEmI/AAAAAAAAAFw/Ob2GWWNKL5I/s72-c/toes_skyer_monstre.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2676376133900729477.post-8727258540419787851</id><published>2010-10-22T18:09:00.004+02:00</published><updated>2010-10-22T22:08:22.631+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='animation'/><category scheme='http://www.blogger.com/atom/ns#' term='unity course'/><category scheme='http://www.blogger.com/atom/ns#' term='code'/><category scheme='http://www.blogger.com/atom/ns#' term='sprite sheet'/><category scheme='http://www.blogger.com/atom/ns#' term='fix'/><title type='text'>Unity Crash Course</title><content type='html'>This week I attended a lecture series in Unity hosted by &lt;a href="http://itu.dk/"&gt;ITU&lt;/a&gt;. Two nice guys from Unity, &lt;a href="http://www.joerobins.co.uk/Welcome.html"&gt;Joe&lt;/a&gt; and &lt;a href="http://angryant.com/"&gt;Emil&lt;/a&gt;, gave a guide tour through a lot of Unity's features from animation, textures, GUI and editor scripting. They covered tons of stuff and it turned out to be a nice introduction to Unity.&lt;br /&gt;&lt;br /&gt;Adding to the greatness of it all was the time given to questions from the audience. I got to ask what was wrong with the sprite sheet animation code since it was giving my this odd graphics problem over time. At first Joe found it just as strange as me but after a trip back to the Unity-factory he could give me the solution.&lt;br /&gt;&lt;br /&gt;It turns out the offset float value on the y-axe kept in increase over time. This would be fine if it wasn't for the fact that the float as it increased would be round up thereby constantly increasing in&amp;nbsp;inaccuracy.&lt;br /&gt;&lt;br /&gt;Solution: Adding Mathf.Repeat to the offset's x value with the length of 1.&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;offset.y = Mathf.Repeat(offset.y,1);&lt;/span&gt;&lt;br /&gt;This ensures the value every time it goes above 1 is returned to count from 0 instead.&lt;br /&gt;&lt;br /&gt;And now it &lt;a href="http://bdikte.dk/spiltest/ani_test_web.html"&gt;works&lt;/a&gt;! Yaaahhhhhh!&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://bdikte.dk/spiltest/ani_test_web.html"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_58gUaPIj6dQ/TMG2FS7ekuI/AAAAAAAAAFs/GNzYROQv-u0/s1600/Screen+shot+2010-10-22+at+6.03.40+PM.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2676376133900729477-8727258540419787851?l=gamebyone.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gamebyone.blogspot.com/feeds/8727258540419787851/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gamebyone.blogspot.com/2010/10/unity-crash-course.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/8727258540419787851'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/8727258540419787851'/><link rel='alternate' type='text/html' href='http://gamebyone.blogspot.com/2010/10/unity-crash-course.html' title='Unity Crash Course'/><author><name>Benedikte</name><uri>http://www.blogger.com/profile/09205662448994093574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_58gUaPIj6dQ/TMG2FS7ekuI/AAAAAAAAAFs/GNzYROQv-u0/s72-c/Screen+shot+2010-10-22+at+6.03.40+PM.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2676376133900729477.post-8624731351524380624</id><published>2010-10-17T17:56:00.000+02:00</published><updated>2010-10-17T17:56:01.025+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='characters'/><category scheme='http://www.blogger.com/atom/ns#' term='animation'/><title type='text'>Quickie</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_58gUaPIj6dQ/TLscTb-BjHI/AAAAAAAAAFk/xcfuSu6AFyQ/s1600/toes.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_58gUaPIj6dQ/TLscTb-BjHI/AAAAAAAAAFk/xcfuSu6AFyQ/s1600/toes.gif" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;4 frame animation of someone walking.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2676376133900729477-8624731351524380624?l=gamebyone.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gamebyone.blogspot.com/feeds/8624731351524380624/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gamebyone.blogspot.com/2010/10/quickie.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/8624731351524380624'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/8624731351524380624'/><link rel='alternate' type='text/html' href='http://gamebyone.blogspot.com/2010/10/quickie.html' title='Quickie'/><author><name>Benedikte</name><uri>http://www.blogger.com/profile/09205662448994093574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_58gUaPIj6dQ/TLscTb-BjHI/AAAAAAAAAFk/xcfuSu6AFyQ/s72-c/toes.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2676376133900729477.post-3893042696324983379</id><published>2010-10-17T02:30:00.000+02:00</published><updated>2010-10-17T02:30:39.504+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='characters'/><category scheme='http://www.blogger.com/atom/ns#' term='graphics'/><title type='text'>New Friends?</title><content type='html'>I'm a bit jetlagged still from our trip to &lt;a href="http://www.indiecade.com/"&gt;IndieCade&lt;/a&gt; with &lt;a href="http://www.copenhagengamecollective.org/"&gt;Copenhagen Game Collective&lt;/a&gt;. So this is all I have to share for now - a few new friends.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_58gUaPIj6dQ/TLpC_BmpN0I/AAAAAAAAAFY/w2Qx_JYbIqg/s1600/toesser.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="300" src="http://2.bp.blogspot.com/_58gUaPIj6dQ/TLpC_BmpN0I/AAAAAAAAAFY/w2Qx_JYbIqg/s400/toesser.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2676376133900729477-3893042696324983379?l=gamebyone.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gamebyone.blogspot.com/feeds/3893042696324983379/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gamebyone.blogspot.com/2010/10/new-friends.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/3893042696324983379'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/3893042696324983379'/><link rel='alternate' type='text/html' href='http://gamebyone.blogspot.com/2010/10/new-friends.html' title='New Friends?'/><author><name>Benedikte</name><uri>http://www.blogger.com/profile/09205662448994093574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_58gUaPIj6dQ/TLpC_BmpN0I/AAAAAAAAAFY/w2Qx_JYbIqg/s72-c/toesser.png' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2676376133900729477.post-3674119250737991799</id><published>2010-10-06T04:57:00.000+02:00</published><updated>2010-10-06T04:57:08.760+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='problem'/><category scheme='http://www.blogger.com/atom/ns#' term='pixelated'/><category scheme='http://www.blogger.com/atom/ns#' term='graphics'/><category scheme='http://www.blogger.com/atom/ns#' term='sprite sheet'/><title type='text'>Sprite Shiit</title><content type='html'>As I wrote last I've gotten the sprite animation somewhat working and I've even found a good way of making the sprite sheet. But I still haven't found the trick to getting the quality of the images right :(&lt;br /&gt;&lt;br /&gt;So to start with the quality seems fine almost anyway as you can see here:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_58gUaPIj6dQ/TKveSj4KBrI/AAAAAAAAAEw/K8mFcDAoHQs/s1600/photo+(4).PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://1.bp.blogspot.com/_58gUaPIj6dQ/TKveSj4KBrI/AAAAAAAAAEw/K8mFcDAoHQs/s320/photo+(4).PNG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;But after a while of running the application the graphics get blurred as you can see in this second screenshot. I have no idea why.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_58gUaPIj6dQ/TKveZOXuvhI/AAAAAAAAAE0/HP5nUXd7wCk/s1600/photo+(3).PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://2.bp.blogspot.com/_58gUaPIj6dQ/TKveZOXuvhI/AAAAAAAAAE0/HP5nUXd7wCk/s320/photo+(3).PNG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;If anyone out there has an idea as to what I'm doing wrong then please comment.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2676376133900729477-3674119250737991799?l=gamebyone.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gamebyone.blogspot.com/feeds/3674119250737991799/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gamebyone.blogspot.com/2010/10/sprite-shiit.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/3674119250737991799'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/3674119250737991799'/><link rel='alternate' type='text/html' href='http://gamebyone.blogspot.com/2010/10/sprite-shiit.html' title='Sprite Shiit'/><author><name>Benedikte</name><uri>http://www.blogger.com/profile/09205662448994093574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_58gUaPIj6dQ/TKveSj4KBrI/AAAAAAAAAEw/K8mFcDAoHQs/s72-c/photo+(4).PNG' height='72' width='72'/><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2676376133900729477.post-8304506288386820080</id><published>2010-10-02T02:14:00.002+02:00</published><updated>2010-10-02T02:17:07.904+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='unity'/><category scheme='http://www.blogger.com/atom/ns#' term='float'/><category scheme='http://www.blogger.com/atom/ns#' term='animation'/><category scheme='http://www.blogger.com/atom/ns#' term='int'/><category scheme='http://www.blogger.com/atom/ns#' term='pixelated'/><category scheme='http://www.blogger.com/atom/ns#' term='graphics'/><category scheme='http://www.blogger.com/atom/ns#' term='sprite sheet'/><title type='text'>It Moves!</title><content type='html'>I've got the code for animating sprite sheets working. I had made the mistake of setting a variable as a float instead of an integer. In human lingo this mean I was working with a&amp;nbsp;decimal&amp;nbsp;number where I was supposed to use a "whole" number. I took me a while to figure this out, but by now at least I understand the code I borrowed a lot better.&lt;br /&gt;&lt;br /&gt;I changed this:&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;float index = Time.time*fps;&lt;/span&gt;&lt;br /&gt;to this:&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;int index = (int)(Time.time*fps);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Current screenshot of application:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_58gUaPIj6dQ/TKZ1E8rAnVI/AAAAAAAAAEo/yU95ELNKHrw/s1600/photo+(2).PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://1.bp.blogspot.com/_58gUaPIj6dQ/TKZ1E8rAnVI/AAAAAAAAAEo/yU95ELNKHrw/s320/photo+(2).PNG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Everything looks a mess. I'm trying to figure out why my graphics gets pixelated now that I've change to &lt;a href="http://unity3d.com/unity/"&gt;Unity3&lt;/a&gt;&amp;nbsp;and while doing so I've piled graphics in different resolutions.&lt;br /&gt;&lt;br /&gt;Talking of Unity3 &lt;a href="http://gamebyone.blogspot.com/2010/09/det-sku-vr-sa-godt-men.html"&gt;the mysterious icon issue&lt;/a&gt; has been fixed and it's now super easy to add an icon picture under the player settings and best of all - it works!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2676376133900729477-8304506288386820080?l=gamebyone.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gamebyone.blogspot.com/feeds/8304506288386820080/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gamebyone.blogspot.com/2010/10/it-moves.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/8304506288386820080'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/8304506288386820080'/><link rel='alternate' type='text/html' href='http://gamebyone.blogspot.com/2010/10/it-moves.html' title='It Moves!'/><author><name>Benedikte</name><uri>http://www.blogger.com/profile/09205662448994093574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_58gUaPIj6dQ/TKZ1E8rAnVI/AAAAAAAAAEo/yU95ELNKHrw/s72-c/photo+(2).PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2676376133900729477.post-4981507048403642386</id><published>2010-09-29T22:01:00.000+02:00</published><updated>2010-09-29T22:01:32.203+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='problem'/><category scheme='http://www.blogger.com/atom/ns#' term='animation'/><category scheme='http://www.blogger.com/atom/ns#' term='java script'/><category scheme='http://www.blogger.com/atom/ns#' term='graphics'/><category scheme='http://www.blogger.com/atom/ns#' term='code'/><title type='text'>Damn, Smooth Sliding</title><content type='html'>Rewriting the code&amp;nbsp;the sprite sheet animation from java script to C# has given me some problems I didn't&amp;nbsp;anticipate. The code simply appears to work differently in C# than in java script. I have two videos that illustrate the difference.&lt;br /&gt;&lt;br /&gt;This video shows the right animation but the code is in java script:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;object width="320" height="266" class="BLOG_video_class" id="BLOG_video-96331f680545dd1b" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"&gt;&lt;param name="movie" value="http://www.youtube.com/get_player"&gt;&lt;param name="bgcolor" value="#FFFFFF"&gt;&lt;param name="allowfullscreen" value="true"&gt;&lt;param name="flashvars" value="flvurl=http://v18.nonxt1.googlevideo.com/videoplayback?id%3D96331f680545dd1b%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331222845%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D7F57127A919A282741BDF9C9FBE4BDFFDDAC0808.2C33FD47F554C2C6C9AF8E1C8939642EF49DEC8A%26key%3Dck1&amp;amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3D96331f680545dd1b%26offsetms%3D5000%26itag%3Dw160%26sigh%3DbB5OxL-vTkkRuIzjZjg9dsig-rs&amp;amp;autoplay=0&amp;amp;ps=blogger"&gt;&lt;embed src="http://www.youtube.com/get_player" type="application/x-shockwave-flash"width="320" height="266" bgcolor="#FFFFFF"flashvars="flvurl=http://v18.nonxt1.googlevideo.com/videoplayback?id%3D96331f680545dd1b%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331222845%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D7F57127A919A282741BDF9C9FBE4BDFFDDAC0808.2C33FD47F554C2C6C9AF8E1C8939642EF49DEC8A%26key%3Dck1&amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3D96331f680545dd1b%26offsetms%3D5000%26itag%3Dw160%26sigh%3DbB5OxL-vTkkRuIzjZjg9dsig-rs&amp;autoplay=0&amp;ps=blogger"allowFullScreen="true" /&gt;&lt;/object&gt;&lt;/div&gt;&lt;br /&gt;Here the similar code is rewritten in C# as you will see the sprite sheet just slides at an angle instead of jumping picture by picture:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;object width="320" height="266" class="BLOG_video_class" id="BLOG_video-cff7b4fff734ee19" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"&gt;&lt;param name="movie" value="http://www.youtube.com/get_player"&gt;&lt;param name="bgcolor" value="#FFFFFF"&gt;&lt;param name="allowfullscreen" value="true"&gt;&lt;param name="flashvars" value="flvurl=http://v17.nonxt7.googlevideo.com/videoplayback?id%3Dcff7b4fff734ee19%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331222845%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D4548F5C57759C51327BBC9C24136B701A70AFF4D.41C502B99E28016A183717CE8B8669421A7EFEAE%26key%3Dck1&amp;amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3Dcff7b4fff734ee19%26offsetms%3D5000%26itag%3Dw160%26sigh%3Doa01bBmENMxUWaxsG7RM3AW5jpA&amp;amp;autoplay=0&amp;amp;ps=blogger"&gt;&lt;embed src="http://www.youtube.com/get_player" type="application/x-shockwave-flash"width="320" height="266" bgcolor="#FFFFFF"flashvars="flvurl=http://v17.nonxt7.googlevideo.com/videoplayback?id%3Dcff7b4fff734ee19%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331222845%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D4548F5C57759C51327BBC9C24136B701A70AFF4D.41C502B99E28016A183717CE8B8669421A7EFEAE%26key%3Dck1&amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3Dcff7b4fff734ee19%26offsetms%3D5000%26itag%3Dw160%26sigh%3Doa01bBmENMxUWaxsG7RM3AW5jpA&amp;autoplay=0&amp;ps=blogger"allowFullScreen="true" /&gt;&lt;/object&gt;&lt;/div&gt;&lt;br /&gt;Here's the original java script code:&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;//vars for the whole sheet&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;var colCount &amp;nbsp; &amp;nbsp;: int = &amp;nbsp;4;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;var rowCount &amp;nbsp; &amp;nbsp;: int = &amp;nbsp;1;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;//vars for animation&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;var rowNumber &amp;nbsp; : int = &amp;nbsp;0; //Zero Indexed&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;var colNumber &amp;nbsp; : int = &amp;nbsp;0; //Zero Indexed&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;var totalCells &amp;nbsp;: int = &amp;nbsp;4;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;var fps &amp;nbsp;: int = 10;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;var offset &amp;nbsp;: Vector2; &amp;nbsp;//Maybe this should be a private var&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;//Update&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;function Update () { SetSpriteAnimation(colCount,rowCount,rowNumber,colNumber,totalCells,fps); &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;//SetSpriteAnimation&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;function SetSpriteAnimation(colCount : int,rowCount : int,rowNumber : int,colNumber : int,totalCells : int,fps : int){&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;// Calculate index&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;var index : int = Time.time * fps;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;// Repeat when exhausting all cells&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;index = index % totalCells;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;// Size of every cell&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;var size = Vector2 (1.0 / colCount, 1.0 / rowCount);&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;// split into horizontal and vertical index&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;var uIndex = index % colCount;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;var vIndex = index / colCount;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;// build offset&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;// v coordinate is the bottom of the image in opengl so we need to invert.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;offset = Vector2 ((uIndex+colNumber) * size.x, (1.0 - size.y) - (vIndex+rowNumber) * size.y);&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;renderer.material.SetTextureOffset ("_MainTex", offset);&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;renderer.material.SetTextureScale &amp;nbsp;("_MainTex", size);&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;And the code in my C# version:&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;using UnityEngine;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;using System.Collections;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;public class Animation_sprite_sheet : MonoBehaviour {&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;//vars for the whole sheet&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;public int colCount = &amp;nbsp;4;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;public int rowCount = &amp;nbsp;1;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;//vars for animation&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;public int rowNumber = 0; //Zero Indexed&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;public int colNumber = 0; //Zero Indexed&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;public int totalCells = 4;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;public int fps = 10;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;Vector2 offset; &amp;nbsp;//Maybe this should be a private var&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;// Use this for initialization&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;void Start () {&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;// Update is called once per frame&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;void Update () {&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;SetSpriteAnimation(colCount,rowCount,rowNumber,colNumber,totalCells,fps);&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;//SetSpriteAnimation&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;public void SetSpriteAnimation( int colCount, int rowCount, int rowNumber, int colNumber, int totalCells, int fps){&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;// Calculate index&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;float index = Time.time * fps;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;// Repeat when exhausting all cells&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;index = index % totalCells;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;// Size of every cell&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;Vector2 size = new Vector2 ((1.0f / colCount), (1.0f / rowCount));&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;// split into horizontal and vertical index&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;float uIndex = index % colCount;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;float vIndex = index / colCount;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;// build offset&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;// v coordinate is the bottom of the image in opengl so we need to invert.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;Vector2 offset = new Vector2 ((uIndex+colNumber) * size.x, ((1.0f - size.y) - (vIndex+rowNumber) * size.y));&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;renderer.material.SetTextureOffset ("_MainTex", offset);&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;renderer.material.SetTextureScale &amp;nbsp;("_MainTex", size);&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;As all the examples I can find in unity's documentation and around the internet on unity are mostly in java script I often find myself being lost when it comes to using C# in unity.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2676376133900729477-4981507048403642386?l=gamebyone.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gamebyone.blogspot.com/feeds/4981507048403642386/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gamebyone.blogspot.com/2010/09/damn-smooth-sliding.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/4981507048403642386'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/4981507048403642386'/><link rel='alternate' type='text/html' href='http://gamebyone.blogspot.com/2010/09/damn-smooth-sliding.html' title='Damn, Smooth Sliding'/><author><name>Benedikte</name><uri>http://www.blogger.com/profile/09205662448994093574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2676376133900729477.post-2292617889833579534</id><published>2010-09-29T02:14:00.000+02:00</published><updated>2010-09-29T02:14:41.724+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java script'/><category scheme='http://www.blogger.com/atom/ns#' term='graphics'/><category scheme='http://www.blogger.com/atom/ns#' term='code'/><category scheme='http://www.blogger.com/atom/ns#' term='sprite sheet'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>Power of Two</title><content type='html'>I'm slowly starting to figure out how I can add graphics to the game. Basically I'm getting tired of the green, red and blue squares. So now I'll go for red, yellow(!) and green blinking circles instead.&lt;br /&gt;&lt;br /&gt;I'll be working with &lt;a href="http://www.google.com/images?um=1&amp;amp;hl=en&amp;amp;biw=1236&amp;amp;bih=930&amp;amp;tbs=isch:1&amp;amp;sa=1&amp;amp;q=sprite+sheets&amp;amp;aq=f&amp;amp;aqi=&amp;amp;aql=&amp;amp;oq=&amp;amp;gs_rfai="&gt;sprite sheets&lt;/a&gt; for the animation. So far I've&amp;nbsp;managed to get a&amp;nbsp;clumsy animation running on the iPad by using a piece of&amp;nbsp;&lt;a href="http://www.unifycommunity.com/wiki/index.php?title=Animating_Tiled_texture"&gt;java script&lt;/a&gt; I borrowed from the Unity community wiki.&amp;nbsp;But I want to work in C# so now I have to rewrite it.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_58gUaPIj6dQ/TKKDwy7O9ZI/AAAAAAAAAEk/Yyn6dz_4EFE/s1600/unger_spil_ani.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="80" src="http://3.bp.blogspot.com/_58gUaPIj6dQ/TKKDwy7O9ZI/AAAAAAAAAEk/Yyn6dz_4EFE/s320/unger_spil_ani.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Oh and the "power of two"-title refers to the fact that in order to get nice graphics on the iPad I have to remember to use image sizes that are a power of two e.g. 256 x 1024.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2676376133900729477-2292617889833579534?l=gamebyone.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gamebyone.blogspot.com/feeds/2292617889833579534/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gamebyone.blogspot.com/2010/09/power-of-two.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/2292617889833579534'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/2292617889833579534'/><link rel='alternate' type='text/html' href='http://gamebyone.blogspot.com/2010/09/power-of-two.html' title='Power of Two'/><author><name>Benedikte</name><uri>http://www.blogger.com/profile/09205662448994093574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_58gUaPIj6dQ/TKKDwy7O9ZI/AAAAAAAAAEk/Yyn6dz_4EFE/s72-c/unger_spil_ani.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2676376133900729477.post-9185193458690052225</id><published>2010-09-26T19:40:00.007+02:00</published><updated>2010-09-26T20:03:04.835+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='San Francisco'/><category scheme='http://www.blogger.com/atom/ns#' term='nodes'/><category scheme='http://www.blogger.com/atom/ns#' term='travel'/><category scheme='http://www.blogger.com/atom/ns#' term='plusone'/><category scheme='http://www.blogger.com/atom/ns#' term='guest'/><category scheme='http://www.blogger.com/atom/ns#' term='self portrait'/><title type='text'>Hello!</title><content type='html'>&lt;div style="text-align: left;"&gt;Hi, I'm Christoffer,&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Benedikte and I are travelling together at the moment- we're going to &lt;a href="http://www.indiecade.com"&gt;IndieCade&lt;/a&gt; with our friends from the &lt;a href="http://www.copenhagengamecollective.org/"&gt;Copenhagen Game Collective&lt;/a&gt; - and I've been invited to guest write for the next couple of weeks. So for a short while it'll be GameByOne++. Right now we're in San Francisco.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Well, while Benedikte has been working on the Kids game, I've been trying to make a prototype of a little game that's about chain reactions. It's based on a concept of interconnected nodes with different abilities and you have to send energy between them. The game is aimed for the iPhone right now, so I'm also working in Unity.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;More on this later - first to the important stuff: Since Benedikte made such a nice picture of herself, I also drew a self-portrait - that's me up there. You may notice that I am almost as good with graphics as Benedikte is, ahem.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Also, here's a very early prototype screen shot:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://2.bp.blogspot.com/_Se8uwyppfcY/TJ-Jb619Q3I/AAAAAAAAAhU/zjLyMgVUFaw/s1600/IMG_0170.PNG"&gt;&lt;img src="http://2.bp.blogspot.com/_Se8uwyppfcY/TJ-Jb619Q3I/AAAAAAAAAhU/zjLyMgVUFaw/s400/IMG_0170.PNG" border="0" alt="" id="BLOGGER_PHOTO_ID_5521282780924560242" style="display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; text-align: center; cursor: pointer; width: 400px; height: 267px; " /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;OK, see you later.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2676376133900729477-9185193458690052225?l=gamebyone.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gamebyone.blogspot.com/feeds/9185193458690052225/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gamebyone.blogspot.com/2010/09/hello.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/9185193458690052225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/9185193458690052225'/><link rel='alternate' type='text/html' href='http://gamebyone.blogspot.com/2010/09/hello.html' title='Hello!'/><author><name>Christoffer</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_Se8uwyppfcY/TJ-Jb619Q3I/AAAAAAAAAhU/zjLyMgVUFaw/s72-c/IMG_0170.PNG' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2676376133900729477.post-7914515068248547004</id><published>2010-09-20T20:49:00.000+02:00</published><updated>2010-09-20T20:49:56.835+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='unity'/><category scheme='http://www.blogger.com/atom/ns#' term='problem'/><category scheme='http://www.blogger.com/atom/ns#' term='bug'/><title type='text'>Out of Order</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_58gUaPIj6dQ/TJepuO0yabI/AAAAAAAAAEM/V4-eyfPcAAA/s1600/unger_spil_i_stykker.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_58gUaPIj6dQ/TJepuO0yabI/AAAAAAAAAEM/V4-eyfPcAAA/s320/unger_spil_i_stykker.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;I've run into a problem. When I build and run the application it just shuts down right after showing the Unity icon. The console gives me this information:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_58gUaPIj6dQ/TJerLyAnXbI/AAAAAAAAAEU/tn2egetAnp8/s1600/Screen+shot+2010-09-20+at+7.35.41+PM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_58gUaPIj6dQ/TJerLyAnXbI/AAAAAAAAAEU/tn2egetAnp8/s320/Screen+shot+2010-09-20+at+7.35.41+PM.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;The internet tells me I should reinstall everything - Unity, XCode and my mobile provisioning files :(&amp;nbsp;3-4GB download. Yay.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2676376133900729477-7914515068248547004?l=gamebyone.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gamebyone.blogspot.com/feeds/7914515068248547004/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gamebyone.blogspot.com/2010/09/out-of-order.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/7914515068248547004'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/7914515068248547004'/><link rel='alternate' type='text/html' href='http://gamebyone.blogspot.com/2010/09/out-of-order.html' title='Out of Order'/><author><name>Benedikte</name><uri>http://www.blogger.com/profile/09205662448994093574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_58gUaPIj6dQ/TJepuO0yabI/AAAAAAAAAEM/V4-eyfPcAAA/s72-c/unger_spil_i_stykker.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2676376133900729477.post-2644266350335941534</id><published>2010-09-18T12:43:00.001+02:00</published><updated>2010-09-18T12:43:30.978+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='video'/><category scheme='http://www.blogger.com/atom/ns#' term='touch'/><category scheme='http://www.blogger.com/atom/ns#' term='code'/><category scheme='http://www.blogger.com/atom/ns#' term='game'/><title type='text'>Keeping Their Distance</title><content type='html'>I've refined the code that determines the placement of the kids. Now the code ensures that the kids aren't placed to close. Every kid placed after the first one is checked for whether or not they are in the vicinity of any of the kids that have already been placed.&lt;br /&gt;&lt;br /&gt;Here's a bit of code:&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;public bool DistanceCheck()&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;disCheck = false;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;for(int i=0; i&amp;lt;antal-1;i++)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;{&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;if ( ((kids[i].transform.position.x-temp.transform.position.x)*(kids[i].transform.position.x-temp.transform.position.x)) + ((kids[i].transform.position.y-temp.transform.position.y)*(kids[i].transform.position.y-temp.transform.position.y)) &amp;lt; 200)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;disCheck = true;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;return disCheck;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;And a video with the latest improvement:&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: auto;"&gt;&lt;object width="320" height="266" class="BLOG_video_class" id="BLOG_video-2ee6eb87ec87706d" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"&gt;&lt;param name="movie" value="http://www.youtube.com/get_player"&gt;&lt;param name="bgcolor" value="#FFFFFF"&gt;&lt;param name="allowfullscreen" value="true"&gt;&lt;param name="flashvars" value="flvurl=http://v9.nonxt7.googlevideo.com/videoplayback?id%3D2ee6eb87ec87706d%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331222845%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D3B638DD17011BEB3684C9919611AE95BB4511FA4.4CCE86701979ED550BE2DA73FD5DE4B88BE39715%26key%3Dck1&amp;amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3D2ee6eb87ec87706d%26offsetms%3D5000%26itag%3Dw160%26sigh%3DFjiOqTBC2ry7wiLiX65W2n84HOw&amp;amp;autoplay=0&amp;amp;ps=blogger"&gt;&lt;embed src="http://www.youtube.com/get_player" type="application/x-shockwave-flash"width="320" height="266" bgcolor="#FFFFFF"flashvars="flvurl=http://v9.nonxt7.googlevideo.com/videoplayback?id%3D2ee6eb87ec87706d%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331222845%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D3B638DD17011BEB3684C9919611AE95BB4511FA4.4CCE86701979ED550BE2DA73FD5DE4B88BE39715%26key%3Dck1&amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3D2ee6eb87ec87706d%26offsetms%3D5000%26itag%3Dw160%26sigh%3DFjiOqTBC2ry7wiLiX65W2n84HOw&amp;autoplay=0&amp;ps=blogger"allowFullScreen="true" /&gt;&lt;/object&gt;&lt;/div&gt;&lt;br /&gt;To sum up, reds are crying, blues are about to and green kids are okay for now. When the crying kids are tapped they turn happy (no paedophile&amp;nbsp;thoughts&amp;nbsp;intended).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2676376133900729477-2644266350335941534?l=gamebyone.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gamebyone.blogspot.com/feeds/2644266350335941534/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gamebyone.blogspot.com/2010/09/keeping-their-distance.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/2644266350335941534'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/2644266350335941534'/><link rel='alternate' type='text/html' href='http://gamebyone.blogspot.com/2010/09/keeping-their-distance.html' title='Keeping Their Distance'/><author><name>Benedikte</name><uri>http://www.blogger.com/profile/09205662448994093574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2676376133900729477.post-6701721179933984520</id><published>2010-09-17T11:58:00.001+02:00</published><updated>2010-09-18T11:21:45.607+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='unity'/><category scheme='http://www.blogger.com/atom/ns#' term='touch'/><category scheme='http://www.blogger.com/atom/ns#' term='code'/><category scheme='http://www.blogger.com/atom/ns#' term='ipad'/><category scheme='http://www.blogger.com/atom/ns#' term='game'/><title type='text'>Touchy Success</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_58gUaPIj6dQ/TJM7sJYegRI/AAAAAAAAAEE/xocuV19xuJY/s1600/unger_spil_fest.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_58gUaPIj6dQ/TJM7sJYegRI/AAAAAAAAAEE/xocuV19xuJY/s320/unger_spil_fest.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Finally the touch input is working.&amp;nbsp;I thought I would be able to "talk" directly to a method on a game object from another class e.g. objectname.method. I have now realised that I needed to use the method getComponent() to access the methods of the objects. This has taken forever to realise. But now the code works! It needs refining but it works.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_58gUaPIj6dQ/TJMwVyUF75I/AAAAAAAAAD8/d88a9FWCPUc/s1600/Screen+shot+2010-09-17+at+10.08.46+AM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_58gUaPIj6dQ/TJMwVyUF75I/AAAAAAAAAD8/d88a9FWCPUc/s320/Screen+shot+2010-09-17+at+10.08.46+AM.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;When I touch the screen a ray is sent along the z-axis into the 3d space (world space I guess). Whatever the ray&amp;nbsp;collides with is "registered"&amp;nbsp;in the raycast method's collider. Assuming the object the the ray collides with is an Kid object I can then access the methods in the kid and change it's state.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2676376133900729477-6701721179933984520?l=gamebyone.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gamebyone.blogspot.com/feeds/6701721179933984520/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gamebyone.blogspot.com/2010/09/touchy-success.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/6701721179933984520'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/6701721179933984520'/><link rel='alternate' type='text/html' href='http://gamebyone.blogspot.com/2010/09/touchy-success.html' title='Touchy Success'/><author><name>Benedikte</name><uri>http://www.blogger.com/profile/09205662448994093574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_58gUaPIj6dQ/TJM7sJYegRI/AAAAAAAAAEE/xocuV19xuJY/s72-c/unger_spil_fest.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2676376133900729477.post-1362380448294632994</id><published>2010-09-11T11:15:00.000+02:00</published><updated>2010-09-11T11:15:38.778+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='unity'/><category scheme='http://www.blogger.com/atom/ns#' term='code'/><category scheme='http://www.blogger.com/atom/ns#' term='coordinate system'/><title type='text'>When (0,0,0) is not (0,0,0)...</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_58gUaPIj6dQ/TItISE9wVoI/AAAAAAAAAD0/QROwkCxhQBM/s1600/unger_help.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_58gUaPIj6dQ/TItISE9wVoI/AAAAAAAAAD0/QROwkCxhQBM/s320/unger_help.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;I'm working on "refining" the touch function so that a kid can sense if is being touched.&lt;br /&gt;All this is probably really easy but as I'm a n00b in unity even the basic stuff is difficult.&amp;nbsp;The idea is that if you touch the screen on the ipad and the coordinates of your touch matches the coordinates matches a kid-object then the kid should do something.&lt;br /&gt;&lt;br /&gt;My problem is a can't get the coordinate system of the ipad to match the one in the unity editor. I sure it something really simple I'm missing but I can't figure it out so I've taken it to the extremes - I've&amp;nbsp;&lt;a href="http://answers.unity3d.com/questions/20322/how-do-i-get-ipad-coordinate-to-match-the-ones-in-the-editor"&gt;posted&lt;/a&gt;&amp;nbsp;for the first time in the unity community help forum.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2676376133900729477-1362380448294632994?l=gamebyone.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gamebyone.blogspot.com/feeds/1362380448294632994/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gamebyone.blogspot.com/2010/09/when-000-is-not-000.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/1362380448294632994'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/1362380448294632994'/><link rel='alternate' type='text/html' href='http://gamebyone.blogspot.com/2010/09/when-000-is-not-000.html' title='When (0,0,0) is not (0,0,0)...'/><author><name>Benedikte</name><uri>http://www.blogger.com/profile/09205662448994093574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_58gUaPIj6dQ/TItISE9wVoI/AAAAAAAAAD0/QROwkCxhQBM/s72-c/unger_help.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2676376133900729477.post-8589941440681609071</id><published>2010-09-09T23:59:00.001+02:00</published><updated>2010-09-10T00:13:17.003+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='unity'/><category scheme='http://www.blogger.com/atom/ns#' term='gloss effect'/><category scheme='http://www.blogger.com/atom/ns#' term='icon'/><title type='text'>Not so glossy now are you!</title><content type='html'>Bonus info on yesterday's post about the iPad icon. &lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;br /&gt;I wanted this: &lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_58gUaPIj6dQ/TIlW3mqbe5I/AAAAAAAAADk/u7iLDn0DB9o/s1600/not-so-glossy.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_58gUaPIj6dQ/TIlW3mqbe5I/AAAAAAAAADk/u7iLDn0DB9o/s320/not-so-glossy.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Instead of this:&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_58gUaPIj6dQ/TIlXK2TUDoI/AAAAAAAAADs/GPZt8NXcMc4/s1600/glossy.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_58gUaPIj6dQ/TIlXK2TUDoI/AAAAAAAAADs/GPZt8NXcMc4/s320/glossy.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Or to put it another way, I wanted to remove the glossy effect from my icon. &lt;br /&gt;&lt;br /&gt;To do just that I actually had to do it via Unity Iphone! I just ticked of UIPrerendered Icon  under  Player Settings and build. The Xcode then updated and voila I got  an icon without the gloss.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2676376133900729477-8589941440681609071?l=gamebyone.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gamebyone.blogspot.com/feeds/8589941440681609071/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gamebyone.blogspot.com/2010/09/not-so-glossy-now-are-you.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/8589941440681609071'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/8589941440681609071'/><link rel='alternate' type='text/html' href='http://gamebyone.blogspot.com/2010/09/not-so-glossy-now-are-you.html' title='Not so glossy now are you!'/><author><name>Benedikte</name><uri>http://www.blogger.com/profile/09205662448994093574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_58gUaPIj6dQ/TIlW3mqbe5I/AAAAAAAAADk/u7iLDn0DB9o/s72-c/not-so-glossy.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2676376133900729477.post-5069721351282620106</id><published>2010-09-08T23:06:00.001+02:00</published><updated>2010-09-08T23:33:45.848+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='unity'/><category scheme='http://www.blogger.com/atom/ns#' term='icon'/><category scheme='http://www.blogger.com/atom/ns#' term='ipad'/><title type='text'>Det sku' vær så godt, men ...</title><content type='html'>I though it would be easy, but no. A week into the project I am learning that the stuff that looks like it's going to be hard making is medium difficult, whereas the stuff that appears super easy turns out to be hard.&lt;br /&gt;After getting input from Martin and Steven (again thank you) I decided that I should rewrite all the code I've written so far. So instead of doing that I'd make a small easy thing, adding my own icon on the iPad for the game instead of the standard Unity icon.&lt;br /&gt;An easy&amp;nbsp;satisfying task. Unity Iphone even has a field for this under edit-&amp;gt;project settings-&amp;gt;player:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_58gUaPIj6dQ/TIfxmr0K9GI/AAAAAAAAADE/8UaJNVPE2Lk/s1600/Screen+shot+2010-09-08+at+10.23.30+PM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="191" src="http://2.bp.blogspot.com/_58gUaPIj6dQ/TIfxmr0K9GI/AAAAAAAAADE/8UaJNVPE2Lk/s200/Screen+shot+2010-09-08+at+10.23.30+PM.png" width="200" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;So I just drop and drag a 72x72 image on this field - a nice easy task; then build. Well no, this does not work! To the internet! After hours of reading forum posts, changing and testing I had no progress. Then I lost the Unity symbol and I was left with this:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_58gUaPIj6dQ/TIfzgLcpPpI/AAAAAAAAADM/riU61p9M7j8/s1600/photo.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_58gUaPIj6dQ/TIfzgLcpPpI/AAAAAAAAADM/riU61p9M7j8/s320/photo.PNG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;A blank icon. Desperate and ready to write to &lt;a href="http://blogs.unity3d.com/author/david/"&gt;David Helgason&lt;/a&gt; to&amp;nbsp;apologise for losing their icon, I was ready to give up.&lt;br /&gt;Most of the forum post I've read on the topic of icons and Unity iPhone mention that one would have to add the icon to the Xcode folder. Something I have been trying in different ways without luck.&amp;nbsp;&amp;nbsp;Finally, Christoffer helped me and by magic he got it working without knowing how come it worked. So I backtracked everything.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Here's the solution:&lt;/b&gt;&lt;br /&gt;Forget the icon field in Unity Iphone. It does&amp;nbsp;absolutely nothing, apparently. What works is adding the 72x72 .png icon (if you are as I working on something for the ipad) to the Xcode folder. To work the image has to be named Icon-72.png or Icon-iPad.png (the file names are the real magic Ü).&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_58gUaPIj6dQ/TIf3uFH_W0I/AAAAAAAAADU/Jdop1Nql1pA/s1600/Screen+shot+2010-09-08+at+10.49.19+PM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_58gUaPIj6dQ/TIf3uFH_W0I/AAAAAAAAADU/Jdop1Nql1pA/s320/Screen+shot+2010-09-08+at+10.49.19+PM.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;So finally this is what I got after hours of desperate experimenting, yaaaaaay:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_58gUaPIj6dQ/TIf5JIUGDDI/AAAAAAAAADc/BzugUeTbVnQ/s1600/photo+(1).PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_58gUaPIj6dQ/TIf5JIUGDDI/AAAAAAAAADc/BzugUeTbVnQ/s320/photo+(1).PNG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2676376133900729477-5069721351282620106?l=gamebyone.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gamebyone.blogspot.com/feeds/5069721351282620106/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gamebyone.blogspot.com/2010/09/det-sku-vr-sa-godt-men.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/5069721351282620106'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/5069721351282620106'/><link rel='alternate' type='text/html' href='http://gamebyone.blogspot.com/2010/09/det-sku-vr-sa-godt-men.html' title='Det sku&apos; vær så godt, men ...'/><author><name>Benedikte</name><uri>http://www.blogger.com/profile/09205662448994093574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_58gUaPIj6dQ/TIfxmr0K9GI/AAAAAAAAADE/8UaJNVPE2Lk/s72-c/Screen+shot+2010-09-08+at+10.23.30+PM.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2676376133900729477.post-3851373498761053322</id><published>2010-09-08T00:29:00.001+02:00</published><updated>2010-09-08T00:29:41.504+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='code'/><category scheme='http://www.blogger.com/atom/ns#' term='prototype'/><category scheme='http://www.blogger.com/atom/ns#' term='ipad'/><category scheme='http://www.blogger.com/atom/ns#' term='game'/><title type='text'>We have touch down</title><content type='html'>After a lengthy process that most fittingly can be described as black magic I now have Unity Iphone and a iphone developer licence installed on the computer. Thanks for your help Christoffer.&lt;br /&gt;&lt;br /&gt;I did some small changes in the code and now the prototype is on the ipad. "Only" problem is code registers touches in general on the screen and the specific location of the touch as you can see in the video.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;object width="320" height="266" class="BLOG_video_class" id="BLOG_video-20e6bedde62a57e" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"&gt;&lt;param name="movie" value="http://www.youtube.com/get_player"&gt;&lt;param name="bgcolor" value="#FFFFFF"&gt;&lt;param name="allowfullscreen" value="true"&gt;&lt;param name="flashvars" value="flvurl=http://v3.nonxt4.googlevideo.com/videoplayback?id%3D020e6bedde62a57e%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331222845%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D48EFAF26379091EBE1083CBAF1F4368A5E4D1723.42CF6E3A9B8B3DAF701630B64BCDDBB9995086AE%26key%3Dck1&amp;amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3D20e6bedde62a57e%26offsetms%3D5000%26itag%3Dw160%26sigh%3D4EXvgWt_G50Gf8oft344iOh4kHI&amp;amp;autoplay=0&amp;amp;ps=blogger"&gt;&lt;embed src="http://www.youtube.com/get_player" type="application/x-shockwave-flash"width="320" height="266" bgcolor="#FFFFFF"flashvars="flvurl=http://v3.nonxt4.googlevideo.com/videoplayback?id%3D020e6bedde62a57e%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331222845%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D48EFAF26379091EBE1083CBAF1F4368A5E4D1723.42CF6E3A9B8B3DAF701630B64BCDDBB9995086AE%26key%3Dck1&amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3D20e6bedde62a57e%26offsetms%3D5000%26itag%3Dw160%26sigh%3D4EXvgWt_G50Gf8oft344iOh4kHI&amp;autoplay=0&amp;ps=blogger"allowFullScreen="true" /&gt;&lt;/object&gt;&lt;/div&gt;&lt;br /&gt;To interact by touch instead of mouse click I changed this&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;void OnMouseDown()&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;{&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;gameObject.tag="smile";&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;SetCryTime();&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;}&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;to this&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;foreach (iPhoneTouch touch in iPhoneInput.touches)&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;{&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;if(touch.phase == iPhoneTouchPhase.Began)&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;{&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;  &lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;gameObject.tag="smile";&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;  &lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;SetCryTime();&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;}&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;}&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;and placed the code snippet inside the update function instead of outside. Next up is fixing the touch code so it only works on the object that are actually touched.&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2676376133900729477-3851373498761053322?l=gamebyone.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gamebyone.blogspot.com/feeds/3851373498761053322/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gamebyone.blogspot.com/2010/09/we-have-touch-down.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/3851373498761053322'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/3851373498761053322'/><link rel='alternate' type='text/html' href='http://gamebyone.blogspot.com/2010/09/we-have-touch-down.html' title='We have touch down'/><author><name>Benedikte</name><uri>http://www.blogger.com/profile/09205662448994093574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2676376133900729477.post-5609242771360372947</id><published>2010-09-06T23:37:00.000+02:00</published><updated>2010-09-06T23:37:36.116+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='animation'/><category scheme='http://www.blogger.com/atom/ns#' term='graphics'/><title type='text'>float progress = 0;</title><content type='html'>No progress today. I guess I tried to study. I was looking for tutorials on animating with &lt;a href="http://www.google.com/images?q=sprite+sheets&amp;amp;um=1&amp;amp;ie=UTF-8&amp;amp;source=univ&amp;amp;ei=6V6FTK2zK86lOKqKqdEO&amp;amp;sa=X&amp;amp;oi=image_result_group&amp;amp;ct=title&amp;amp;resnum=4&amp;amp;ved=0CDoQsAQwAw&amp;amp;biw=998&amp;amp;bih=791"&gt;sprite sheets&lt;/a&gt; something that would give me a good work method for vector animation. I didn't find anything useful. Mostly forum posts about how to convert a 3d animation to sprite sheets and often with very limited info. If I find a good method by myself then I guess I should write it down.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_58gUaPIj6dQ/TIVeTdQHHnI/AAAAAAAAAC8/iqWVyNV9SYk/s1600/unger_studere.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_58gUaPIj6dQ/TIVeTdQHHnI/AAAAAAAAAC8/iqWVyNV9SYk/s320/unger_studere.png" /&gt;&lt;/a&gt;&lt;/div&gt;I did find one post at &lt;a href="http://www.angryanimator.com/word/test/"&gt;angryanimator.com&lt;/a&gt; on animation in general which is nice. Not what I was looking for but still worth a look. Especially the links to “How to Animate” by Preston Blair &lt;a href="http://www.animationarchive.org/2006/05/media-preston-blairs-animation-first.html"&gt;volume 1&lt;/a&gt; and &lt;a href="http://www.animationarchive.org/2006/05/media-preston-blairs-animation-1st.html"&gt;volume 2&lt;/a&gt; are great. One of the comments mentions the book &lt;a href="http://www.goldbergcrashcourse.com/"&gt;Character Animation Crash Course!&lt;/a&gt; maybe I should find a copy.&lt;br /&gt;&lt;br /&gt;Also, I looked a bit at the code but I guess I wasn't in the zone.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2676376133900729477-5609242771360372947?l=gamebyone.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gamebyone.blogspot.com/feeds/5609242771360372947/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gamebyone.blogspot.com/2010/09/float-progress-0_06.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/5609242771360372947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/5609242771360372947'/><link rel='alternate' type='text/html' href='http://gamebyone.blogspot.com/2010/09/float-progress-0_06.html' title='float progress = 0;'/><author><name>Benedikte</name><uri>http://www.blogger.com/profile/09205662448994093574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_58gUaPIj6dQ/TIVeTdQHHnI/AAAAAAAAAC8/iqWVyNV9SYk/s72-c/unger_studere.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2676376133900729477.post-6996620768843399749</id><published>2010-09-05T18:17:00.002+02:00</published><updated>2010-09-06T09:30:57.291+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sound'/><category scheme='http://www.blogger.com/atom/ns#' term='music'/><category scheme='http://www.blogger.com/atom/ns#' term='game'/><title type='text'>Sigh...sound</title><content type='html'>I'm attempting to make a game on my own. I'm not trying for originality (though it would be nice) the main focus is making a game from start to finish. This means I want to sketch, code, design, draw and animate my way through a mini game production trying on all the roles needed to come full circle.&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In the game development endeavour I've been part of so far I've worked on the game design and the graphics. So this&amp;nbsp;dogma game entails many first for me. I'm fine with the coding part&amp;nbsp;actually&amp;nbsp;I'm excited about the coding. Up until now I've always left the coding to the coding savvy. But lately I've passed a Java course and I'm taking object-oriented programming. So now I get to play.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;No, the part I'm really scared of is the audio for the game. Though I enjoy music I rarely listen to any (I'm a talk-radio-person) and I definitely don't make any music. So where to start?&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_58gUaPIj6dQ/TIPCTehiJRI/AAAAAAAAACU/n48LOAmLumU/s1600/unger_spil.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_58gUaPIj6dQ/TIPCTehiJRI/AAAAAAAAACU/n48LOAmLumU/s320/unger_spil.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Music and sounds are really important for a game. The audio sets the tone of a game makes is fun or scary and in some cases boring. E.g. I've been playing a lot of &lt;a href="http://www.popcap.com/games/pvz"&gt;Plants vs. Zombies&lt;/a&gt; lately and I really like the background sound its happy and playful and though I play for a long time it doesn't start to annoy me which is a real quality. Recently, I've also played with &lt;a href="http://eriksvedang.com/kometen/"&gt;Kometen&lt;/a&gt;&amp;nbsp;I initially got it for the beautiful watercolour graphics but now the real draw is the soundscape that puts you in a&amp;nbsp;soothing meditative state.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So what should I do for the game audio? Of course I want funny event sounds like when a kid gets scared and starts crying. But I don't want constant crying. On its own the game play is stressful so maybe the background sound should be somewhat soothing?&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In trying to add sound elements in unity which was very easy. I made two sample prototypes with background sounds borrowing audio from &lt;a href="http://www.flashkit.com/loops/Techno-Dance/-extreme-empty-6234/index.php"&gt;FlashKit&lt;/a&gt; and &lt;a href="http://www.freesoundeffectsandloops.com/"&gt;here&lt;/a&gt;.&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://bdikte.dk/spiltest/lyd_less_stress/test.html"&gt;Prototype&lt;/a&gt;&amp;nbsp;with not so annoying background music&lt;/li&gt;&lt;li&gt;&lt;a href="http://bdikte.dk/spiltest/lyd_stress/test.html"&gt;Prototype&lt;/a&gt;&amp;nbsp;with really annoying background music&lt;/li&gt;&lt;/ul&gt;For the final game I have to make the music by myself.&lt;br /&gt;&lt;ul&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2676376133900729477-6996620768843399749?l=gamebyone.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gamebyone.blogspot.com/feeds/6996620768843399749/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gamebyone.blogspot.com/2010/09/sighsound.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/6996620768843399749'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/6996620768843399749'/><link rel='alternate' type='text/html' href='http://gamebyone.blogspot.com/2010/09/sighsound.html' title='Sigh...sound'/><author><name>Benedikte</name><uri>http://www.blogger.com/profile/09205662448994093574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_58gUaPIj6dQ/TIPCTehiJRI/AAAAAAAAACU/n48LOAmLumU/s72-c/unger_spil.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2676376133900729477.post-6607450408478579585</id><published>2010-09-05T01:52:00.001+02:00</published><updated>2010-09-05T01:53:39.672+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='code'/><category scheme='http://www.blogger.com/atom/ns#' term='game'/><title type='text'>Organised randomness</title><content type='html'>The boxes aka the kids were in the prototype placed by hand on the scene in a grid. I did this so I could easily check if my method for making the kids near a crying child sad work. It did. So today I've worked briefly on placing the boxes/kids randomly through the code thus making the game a bite more exciting.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_58gUaPIj6dQ/TILWQAJu91I/AAAAAAAAAB0/4TcLlkqmyHo/s1600/random.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="111" src="http://3.bp.blogspot.com/_58gUaPIj6dQ/TILWQAJu91I/AAAAAAAAAB0/4TcLlkqmyHo/s400/random.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;When placing the boxes/kids I didn't want complete randomness it would stupid if all the boxes ended up on top of each other or only in one side of the screen. I needed to organise the randomness a bit. So I've combined the random placement with a grid structure.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_58gUaPIj6dQ/TILYVKZJPkI/AAAAAAAAAB8/WyP_GXOjyxA/s1600/organised_random.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="277" src="http://2.bp.blogspot.com/_58gUaPIj6dQ/TILYVKZJPkI/AAAAAAAAAB8/WyP_GXOjyxA/s400/organised_random.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;In the code this is accomplished with the help of a couple of for-loops. The illustration above shows the concept. For each loop A, B and C in the example there are inner loops (here illustrated with 1, 2 and 3) that picks random numbers of kids to place (here either 3 or 4) and places them at random coordinates within the intervals defines by the two for-loops. Anyway, this is how I visualised the "organised randomness" in my head before I started coding. Perhaps the code is easier to read :)&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_58gUaPIj6dQ/TILa8cez5nI/AAAAAAAAACE/6YxLE0C19KQ/s1600/Screen+shot+2010-09-05+at+1.33.05+AM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="311" src="http://1.bp.blogspot.com/_58gUaPIj6dQ/TILa8cez5nI/AAAAAAAAACE/6YxLE0C19KQ/s400/Screen+shot+2010-09-05+at+1.33.05+AM.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2676376133900729477-6607450408478579585?l=gamebyone.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gamebyone.blogspot.com/feeds/6607450408478579585/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gamebyone.blogspot.com/2010/09/organised-randomness.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/6607450408478579585'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/6607450408478579585'/><link rel='alternate' type='text/html' href='http://gamebyone.blogspot.com/2010/09/organised-randomness.html' title='Organised randomness'/><author><name>Benedikte</name><uri>http://www.blogger.com/profile/09205662448994093574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_58gUaPIj6dQ/TILWQAJu91I/AAAAAAAAAB0/4TcLlkqmyHo/s72-c/random.jpg' height='72' width='72'/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2676376133900729477.post-7207398191813164860</id><published>2010-09-03T10:00:00.001+02:00</published><updated>2010-09-03T10:00:03.807+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='graphics'/><category scheme='http://www.blogger.com/atom/ns#' term='game'/><title type='text'>Screaming kids</title><content type='html'>The working title in my head for the game is Kindergarten Calamity. Looking at the sketches of the game characters you may understand why.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_58gUaPIj6dQ/TH6Hc1aRavI/AAAAAAAAABs/CnyC-C73Dxo/s1600/unger_spil_.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5511991923391425266" src="http://1.bp.blogspot.com/_58gUaPIj6dQ/TH6Hc1aRavI/AAAAAAAAABs/CnyC-C73Dxo/s400/unger_spil_.jpg" style="cursor: pointer; display: block; height: 252px; margin: 0px auto 10px; text-align: center; width: 372px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_58gUaPIj6dQ/TH6HVH292II/AAAAAAAAABk/DBXTdZl7PtE/s1600/Scan.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5511991790904662146" src="http://2.bp.blogspot.com/_58gUaPIj6dQ/TH6HVH292II/AAAAAAAAABk/DBXTdZl7PtE/s320/Scan.jpg" style="cursor: pointer; display: block; height: 276px; margin: 0px auto 10px; text-align: center; width: 320px;" /&gt;&lt;/a&gt;I haven't made any final decisions on the style of game. These drawings are simply my initial ideas.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2676376133900729477-7207398191813164860?l=gamebyone.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gamebyone.blogspot.com/feeds/7207398191813164860/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gamebyone.blogspot.com/2010/09/screaming-kids.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/7207398191813164860'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/7207398191813164860'/><link rel='alternate' type='text/html' href='http://gamebyone.blogspot.com/2010/09/screaming-kids.html' title='Screaming kids'/><author><name>Benedikte</name><uri>http://www.blogger.com/profile/09205662448994093574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_58gUaPIj6dQ/TH6Hc1aRavI/AAAAAAAAABs/CnyC-C73Dxo/s72-c/unger_spil_.jpg' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2676376133900729477.post-2797142140502001904</id><published>2010-09-02T01:20:00.000+02:00</published><updated>2010-09-02T01:23:49.763+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='code'/><title type='text'>Subversion and MonoDevelop</title><content type='html'>In trying to get more organised I've now with a little help from my friends gotten a revision control system. This gives me a bigger Ctrl+z button.&lt;br /&gt;&lt;br /&gt;So far I've used the unitys own editor to write the c# code but as MonoDevelop comes highly recommended I've installed it. I'm looking forward to its advantages :).&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_58gUaPIj6dQ/TH58E2c3eOI/AAAAAAAAABE/Xxl7789Ojsc/s1600/Screen+shot+2010-09-01+at+5.45.21+PM.png"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 200px; height: 133px;" src="http://3.bp.blogspot.com/_58gUaPIj6dQ/TH58E2c3eOI/AAAAAAAAABE/Xxl7789Ojsc/s200/Screen+shot+2010-09-01+at+5.45.21+PM.png" alt="" id="BLOGGER_PHOTO_ID_5511979416725977314" border="0" /&gt;&lt;/a&gt;I'm a n00b when it comes to installing programs on the mac. I still get surprised over how easy it is. Just drag and drop. It's somehow too easy.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2676376133900729477-2797142140502001904?l=gamebyone.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gamebyone.blogspot.com/feeds/2797142140502001904/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gamebyone.blogspot.com/2010/09/subversion-and-monodevelop.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/2797142140502001904'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/2797142140502001904'/><link rel='alternate' type='text/html' href='http://gamebyone.blogspot.com/2010/09/subversion-and-monodevelop.html' title='Subversion and MonoDevelop'/><author><name>Benedikte</name><uri>http://www.blogger.com/profile/09205662448994093574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_58gUaPIj6dQ/TH58E2c3eOI/AAAAAAAAABE/Xxl7789Ojsc/s72-c/Screen+shot+2010-09-01+at+5.45.21+PM.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2676376133900729477.post-1534626302600966583</id><published>2010-09-01T13:34:00.000+02:00</published><updated>2010-09-01T15:55:42.755+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='prototype'/><category scheme='http://www.blogger.com/atom/ns#' term='game'/><title type='text'>First prototype and first post</title><content type='html'>I started three days ago in unity on my first game. The goal is to make a game for the ipad &lt;a href="http://www.youtube.com/watch?v=oQAT0Ln6ggc"&gt;all by myself&lt;/a&gt;. I've just made my first prototype.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bdikte.dk/test.html"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 200px; height: 151px;" src="http://3.bp.blogspot.com/_58gUaPIj6dQ/TH5DcZItISI/AAAAAAAAAAM/-93cM3LoiMk/s200/Screen+shot+2010-09-01+at+2.12.20+PM.png" alt="" id="BLOGGER_PHOTO_ID_5511917149010862370" border="0" /&gt;&lt;/a&gt;You can find the prototype &lt;a href="http://bdikte.dk/test.html"&gt;here&lt;/a&gt;.&lt;br /&gt;You will need to install the unity plugin to play if you don't have it already.&lt;br /&gt;&lt;br /&gt;Rules:&lt;br /&gt;- keep the squares "happy"&lt;br /&gt;- green squares are the "happy" ones&lt;br /&gt;- red squares are "crying"&lt;br /&gt;- blue squares are about to cry because a square close to them are crying.&lt;br /&gt;- click on the red squares to turn them green&lt;br /&gt;&lt;br /&gt;Right now there is no win condition only stress.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2676376133900729477-1534626302600966583?l=gamebyone.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gamebyone.blogspot.com/feeds/1534626302600966583/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gamebyone.blogspot.com/2010/09/first-prototype-and-first-post.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/1534626302600966583'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2676376133900729477/posts/default/1534626302600966583'/><link rel='alternate' type='text/html' href='http://gamebyone.blogspot.com/2010/09/first-prototype-and-first-post.html' title='First prototype and first post'/><author><name>Benedikte</name><uri>http://www.blogger.com/profile/09205662448994093574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_58gUaPIj6dQ/TH5DcZItISI/AAAAAAAAAAM/-93cM3LoiMk/s72-c/Screen+shot+2010-09-01+at+2.12.20+PM.png' height='72' width='72'/><thr:total>2</thr:total></entry></feed>
