<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Alessandra Montanino on Medium]]></title>
        <description><![CDATA[Stories by Alessandra Montanino on Medium]]></description>
        <link>https://medium.com/@alessandramontanino?source=rss-4f7925ba3d49------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*O-b3xDXMbPp9Py5u9lZDjg.jpeg</url>
            <title>Stories by Alessandra Montanino on Medium</title>
            <link>https://medium.com/@alessandramontanino?source=rss-4f7925ba3d49------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 00:11:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@alessandramontanino/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Developer Apprentice]]></title>
            <link>https://medium.com/apple-developer-academy-federico-ii/developer-apprentice-afa08f816c67?source=rss-4f7925ba3d49------2</link>
            <guid isPermaLink="false">https://medium.com/p/afa08f816c67</guid>
            <dc:creator><![CDATA[Alessandra Montanino]]></dc:creator>
            <pubDate>Fri, 10 Apr 2020 15:22:46 GMT</pubDate>
            <atom:updated>2020-04-10T15:22:46.880Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>How I started to develop an iPhone Game</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*hkxdJhZ57f-q3E07SJW_ZQ.jpeg" /></figure><h3>Introduction</h3><p>In this article I will tell you about my experience as a developer in the iOS environment and some basics to start using SpriteKit.</p><p>I’m Alessandra Montanino and I’m an Apple Developer Academy student, in Naples.</p><p>Until a month ago I had never tried to develop anything with the Swift SpriteKit framework, but I was very curious to find out.</p><p>I started my coder path with the beginning of the Academy.</p><p>Before then I had only a little experience two years earlier thanks to the Foundation Program.</p><p>I found the Swift language very intuitive. Even a person who has never had coding experience, with the right commitment, can take the first steps in the world of developers.</p><p>In the last month I’ve challenge myself to the goal of making an iOS game.</p><p>Usually several figures take part in the development and creation of a game: Game Designer, Game Artist and Game Developer are the three roles to start from.</p><p>The role I wanted was the Game Developer, in order to improve my coding skills.</p><p>While trying to achieve this goal, I found myself having to fit in other roles, but I could never have done it alone. Fortunately Ruggiero Maria Serio and Lucio Botteri came to help me almost immediately.</p><p>Over the course of this month more than ever, I learned how important teamwork is. In a team, however, someone has to direct the project, and I found myself having to do it, with great difficulty. It was immediately evident that to manage a team one must have very heterogeneous skills and a lot of experience.</p><p>The exchange and sharing of experiences and knowledge is a very useful thing to improve your skills. Collaboration is important and feedbacks are essential.</p><p>Lucio Botteri, Ruggiero Maria Serio and I, founded the “Badum-tss Team”, with the following breakdown:</p><p>Alessandra Montanino: PM, Game Artist</p><p>Ruggiero Maria Serio: Game Designer</p><p>Lucio Botteri: Game Developer</p><p>Each in relation to their knowledge and experience has given its contribution even outside its role, helping to improve the final result.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F403757517%3Fapp_id%3D122963&amp;dntp=1&amp;display_name=Vimeo&amp;url=https%3A%2F%2Fvimeo.com%2F403757517&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F873342401_1280.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=vimeo" width="1280" height="720" frameborder="0" scrolling="no"><a href="https://medium.com/media/43dc64e4dc378963c30c56b64fc7d94b/href">https://medium.com/media/43dc64e4dc378963c30c56b64fc7d94b/href</a></iframe><h3><strong>The code: introduces to SpriteKit</strong></h3><h4><strong>Nodes, player and backcloth</strong></h4><p>This game has been developed in the iOS environment, in Swift language, for the iPhone platform.</p><p>The SpriteKit and UIKIt frameworks were used to make this game</p><p>To use SpriteKit it’s essential to introduce the concept of node. What is a node? Almost everything in SpriteKit is a node.</p><p>Our character is a node, as well as the background and the view itself.</p><p>By making the nodes interact with each other we will get really fantastic results.</p><pre><strong>import</strong> SpriteKit<br><strong>import</strong> UIKit</pre><pre><strong>class</strong> GameScene: SKScene {</pre><pre><strong>var</strong> backcloth = SKSpriteNode(imageNamed: “backcloth”)<br><strong>var</strong> player = SKSpriteNode(imageNamed: “player”)</pre><pre><strong>override</strong> <strong>func</strong> didMove(to view: SKView) {</pre><pre>backcloth.zPosition = -1<br>backcloth.position = CGPoint(x: 0, y: 0)<br>backcloth.anchorPoint = CGPoint(x: 0, y: 0)<br>backcloth.size = size</pre><pre>addChild(player)<br>addChild(backcloth)<br>}</pre><p>In these lines of code we imported the <em>SpriteKit</em> and <em>UIKit</em> frameworks.</p><p>We then declared the two variables of class backcloth and player of type <em>SKSpriteNode</em>: these two variables are therefore two nodes.</p><p><em>Backcloth</em> is our background, while <em>player</em> is the main character. To both of them we have assigned the relative image (loaded in the assets folder).</p><p>Take a look at the <em>didMove</em> function. This is an important part of the scene, because everything we’ll write here, will be executed at the very first launch of the app. This is why we use it to set some initial values to the attributes of our <em>backcloth</em> node:</p><ul><li><strong>zPosition</strong>: an index to determine if the node will be beneath or above other nodes.</li><li><strong>position</strong>: the coordinates of the node in the scene.</li><li><strong>anchorPoint</strong>: the coordinates of the origin point in the node (ex: 0,0 will be the lower-left corner, while 0.5,0.5 will be the center)</li><li><strong>size</strong>: we assigned the same size of the scene in order to make the backcloth as large as the scene.</li></ul><p>For every added node, you’ll probably want to set some property in a similar way.</p><h4><strong>Physics</strong></h4><p>Fantastic things can be done with physics: thanks to it we can make objects move according to the rules of physics.</p><p>Adding this line of code, we assign a <em>physicsBody</em> to the player and set the <em>allowsRotation</em> to <em>false</em>, in order to prevent it from spinning.</p><pre>player.physicsBody = SKPhysicsBody(circleOfRadius: player.size.width/2)<br>player.physicsBody?.allowsRotation = <strong>false</strong></pre><p>Now, being subject to the laws of physics, and therefore to gravity, our player will continue to fall until he encounters another physicsBody.</p><p>By default in SpriteKit, two nodes that own a physicsBody can collide.</p><p>So to stop the falling of our player we’ll create a floor where he can land, like this:</p><pre>floor.physicsBody = SKPhysicsBody(rectangleOf: CGSize(width: size.width*2, height: 40))<br>floor.physicsBody?.isDynamic = <strong>false<br></strong>floor.physicsBody?.affectedByGravity = <strong>false</strong></pre><p>Alternatively we can disable the force of gravity on the player:</p><p>player.physicsBody?.affectedByGravity = <strong>false</strong></p><p>Without gravity, the node remain suspended in the air, and can float like an astronaut.</p><pre>Note:<br>Writing code can be really fun. The bugs that can occur during the process often made me smile.</pre><h4><strong>Camera</strong></h4><p>We discovered that SpriteKit has a camera node in order to easily follow the player during the game.</p><p>To set up the camera in SpriteKit, you must first create an <em>SKCameraNode</em>:</p><pre><strong>import</strong> SpriteKit<br><strong>import</strong> UIKit</pre><pre><strong>class</strong> GameScene: SKScene {</pre><pre><strong>let</strong> cameraNode = SKCameraNode()</pre><p>In the didMove we assign the position to the cameraNode. Then we assign it to the default camera, and finally, we add it to the scene.</p><pre><strong>override</strong> <strong>func</strong> didMove(to view: SKView) {</pre><pre>cameraNode.position = CGPoint(x: size.width/2, y: size.height/2)<br>camera = cameraNode</pre><pre>addChild(cameraNode)<br>}</pre><p>The update function is as important as the didMove. Everything we write here, will be executed continuously as the game is running. So this is the perfect place to make sure that the camera is always in a good position.</p><pre><strong>override</strong> <strong>func</strong> update(<strong>_</strong> currentTime: TimeInterval) {</pre><pre>//Place the camera<br><strong>if</strong> player.position.x &gt;= size.width/2 {</pre><pre>cameraNode.position.x = (size.width/2) + player.position.x — (size.width/2)<br>}</pre><pre><strong>if</strong> player.position.y &gt;= 150 {</pre><pre>cameraNode.position.y = (size.height/2) + player.position.y — 150<br> }<br>}</pre><p>Careful! An usual error is to write in the update something that we want to happen just once. If the didMove is like shooting a bullet, the update is like using a chaingun.</p><h3>Game concept and game designer</h3><p><em>write by Ruggiero Maria Serio</em></p><p>Like my colleague Alessandra I am a student of Apple Developer Academy in Naples and a logic games player since I have learned to count.</p><p>To be honest make games is one my dream and finally I start to make it real.</p><p>In academy we learned that we need a long research process before make an app, we have to focus on people needs, find that one we can solve or help, we have to take in consideration many factor like a good UI/UX, consistency, follow the HIG (human interface guideline)… but for a game?</p><p>We don’t need all of this, we need just passion and will.</p><p>The first part to consider about a game is the game concept: what you can do, where you are and what you have to do in synthesis.</p><p>It is really hard explain how we arrived to this.</p><p>When I made team with Alessandra and Lucio I thought: “It will be so easy for me make a game, it is my dream, I have all we need”, then we spent almost a week to decide the type of game. We start from an Alessandra’s idea about an action game based on degree’s path where you jump on book shoot the prof etc, to arrive to a platform logic game.</p><p>After this something like a bulb exposed in my head. I realised this high quality prototype in just five minutes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o0XC-17C6JEX6DNKbHciVg.jpeg" /></figure><p>And again I though: “Did it! My jobs ends here and it’s perfect”.</p><p>We had the idea of game, we have the coder but we miss all the asset, backgrounds, sounds and everything a player see in the game.</p><p>Here starts my game artist experience. I downloaded Sketch an I opened it for the first time.</p><p>Using vectors for the first time it is hard even make a simple shape like a triangle or a square but after a little bit of trying I have been able to make every type of shape I need.</p><p>Of course I am not a designer so I decided to use a simple design with simple coloured shape. Fortunately my passion for geometry and logic games let me go on in uncharted path.</p><p>As Alessandra already tell we often exchange our job, so they help me to understand some tricks like gradient and shadows, how to use layer, group ext…</p><p>After an other week we had finally something playable and beauty to see, as you can see in the video more or less.</p><p>At this point all the problems seem over and exactly here they came dozens of problems.</p><p>Does that lever work well? What if the character goes there? What if the player do this instead of that?</p><p>This was the moment that all Badum-tshh team work together to make a clear game design. We mixed coder and designer in one mind to solve the problems in all faces.</p><p>Re-taking in consideration my first high quality prototype where all works good I never thought we need to work so much to let it work, but taking a look to the result I am very proud of all we did and learned.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=afa08f816c67" width="1" height="1" alt=""><hr><p><a href="https://medium.com/apple-developer-academy-federico-ii/developer-apprentice-afa08f816c67">Developer Apprentice</a> was originally published in <a href="https://medium.com/apple-developer-academy-federico-ii">Apple Developer Academy | Federico II</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>