<?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 Matthew Tyas on Medium]]></title>
        <description><![CDATA[Stories by Matthew Tyas on Medium]]></description>
        <link>https://medium.com/@matthewjtyas?source=rss-4b4ab2f12cc6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*20IiT44WLKlqo5sl.jpeg</url>
            <title>Stories by Matthew Tyas on Medium</title>
            <link>https://medium.com/@matthewjtyas?source=rss-4b4ab2f12cc6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 01:29:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@matthewjtyas/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[Runaway Tales]]></title>
            <link>https://medium.com/@matthewjtyas/runaway-tales-9fb3a9a36171?source=rss-4b4ab2f12cc6------2</link>
            <guid isPermaLink="false">https://medium.com/p/9fb3a9a36171</guid>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[unity]]></category>
            <dc:creator><![CDATA[Matthew Tyas]]></dc:creator>
            <pubDate>Mon, 23 Oct 2017 11:38:27 GMT</pubDate>
            <atom:updated>2017-10-25T14:28:11.136Z</atom:updated>
            <content:encoded><![CDATA[<h4>On learning from the past while building for the future.</h4><p>It’s been a while since last I wrote and that’s on me, so first off I’m sorry. I’ve spent the last few months working on and off on a new project and am now ready to announce. It’s a partnership with one of my very best friends, Steve Kingston, to build and release high quality games. It’s called Runaway Tales and we’re pleased to be able to announce our first project March of Progress which we are aiming to release by the end of the year.</p><p>Before talking about the game a little, I want to discuss my two week prototypes project from earlier in the year and first days of this blog. It was a very exciting period for me and it was a challenge I was very happy that I chose to undertake and it taught me a great deal. But with the benefit of hindsight it was a project doomed to failure. Attempting to release a working decent quality prototype of a game every two weeks while holding down a full time job was never going to work in the long run.</p><p>But. It taught me a great deal and the experience will inform my work on Runaway Tales going forward. First I learnt a great deal about Unity, about how to structure games correctly in it, about how to run animations, build menus, implement physics and many more small pieces of the great games making puzzle that I had not known about before.</p><p>Second it allowed me to build a large library of scripts that we will be using extensively in future Runaway Tales games. The Conversation Controller, The Static Content Loader (re-used in March of Progress), the Inventory Manager, Crosshairs, Enemy Spawners, NPC Behaviour Managers and so, so many more.</p><p>Finally it gave me a confidence to share my work. It has been said in the past that the difference between a hobbyist and an artist is a confidence to share ones work. I have that confidence now, more than ever. I was given some very kind feedback about my games and blog posts and I want to deeply thank everyone that took the time to talk to me about my prototypes, whether to give feedback or compliments, they all helped me immensely.</p><p>There will be more two week prototypes, but not to such a rigorous schedule. For now I am focused on Runway Tales and March of Progress. Our commitment as a group is to produce high quality games that deliver player satisfaction and value. If we wouldn’t play the game we are making then we won’t deem it ready for release. We promise nothing less than quality and innovation.</p><p>We want to foster a diverse and collaborative environment to create games and provide unique experiences for people from a wide variety of backgrounds.</p><p>We promise a transparent and in depth look at the development process. I’m going to blog about the process and put out various video blogs with an in-depth and honest discussion of my thoughts of how the game is coming along. I may even by able to bring my partner to the table to get his take on the game who knows. If you enjoyed my blog earlier in the year then you should be excited for what is coming and I look forward to speaking to you soon.</p><p>Until then happy trails and I’ll see you down the road,</p><p>Matt</p><p>P.S. Follow us @<a href="http://twitter.com/Runaway_Tales">runaway_tales</a> for more information on development and our upcoming games!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9fb3a9a36171" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Failure To Release]]></title>
            <link>https://medium.com/@matthewjtyas/a-failure-to-release-63e7b24fcf4e?source=rss-4b4ab2f12cc6------2</link>
            <guid isPermaLink="false">https://medium.com/p/63e7b24fcf4e</guid>
            <dc:creator><![CDATA[Matthew Tyas]]></dc:creator>
            <pubDate>Wed, 29 Mar 2017 12:34:47 GMT</pubDate>
            <atom:updated>2017-03-29T12:34:47.035Z</atom:updated>
            <content:encoded><![CDATA[<h4>Ideas, Motivation and a Willing Lack of Crassness.</h4><p>So prototype number five should have gone live on the 11th of March and clearly we are well passed that date with not a release in site. So what happened? Societal collapse? Sordid drunken evenings? Rampant bouts of anxiety, depression and insomnia causing my life to spiral out of control? Well no not exactly. (Although an argument could be made for number 1, and number 3 would have been a chief suspect last year).</p><p>After Space Station Amadeus went live (I’m still really happy with that one), I came up with an interesting concept for a game in which you my dear reader would have played as a potion store owner in which you had to manage your time between brewing potions, cleaning the shop, selling and chatting to customers and then trying to maintain a decent quality of life outside your harried time as a potion store owner. I was excited to get started but I suppose life got in the way.</p><p>It’s hard to dedicate yourself to side projects when you’re working a full time job, especially one that you want to run two weekly deadlines for a whole year. Enthusiasm waxes and wanes like the tides, and when work got busy I found myself too tired to get the ball rolling on Potion Maker each evening. By the end of the first week I had nothing but a menu and my template project and I knew I needed to change something.</p><p>I decided to switch to a project of smaller scope, to an idea that I wasn’t so keen on, the theory being that I wouldn’t mind as much if I released a project of smaller scope and reduced quality if I was less interested in the basic idea. So naturally I tried to make a runner!</p><p>I don’t want to insult runners, they can be great (Temple Run and Lara Croft: Relic Run are both wonderful free games) but the scope of a basic one is very small. My problems with making a runner started when I decided I wanted to make an <em>interesting</em> runner.</p><p>I had a concept I wanted to build the game around, something that would let me spread my wings a little more as a story teller. The problem was that the event in question is miserable, and central to a much grander story that I fully intend to tell one day. It would have been very easy to accidentally make something crass and tone deaf that would have missed the mark entirely, so I decided not to pursue that particular plot point leaving me with a very poorly controlling runner I had no passion for.</p><p>In the end I decided to miss the release and have spent the last few weeks dabbling with another prototype. I’m pleased with the concept and how it is coming along (it’s nothing groundbreaking but is a new genre for me) so I’ll be looking to release it soonish, then I’ll try and get back on the two weekly schedule. Then it’s just a matter of finding the time to cram in some additional games so that I hit my quota of 26 for the year!</p><p>I’ll announce the new prototype soon, it’s something fun and breezy with a slight twist on a fairly routine indy game genre. I look forward to sharing it with all of you!</p><p>Happy trails and I’ll see you down the road.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=63e7b24fcf4e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Prototype 4: Space Station Amadeus]]></title>
            <link>https://medium.com/@matthewjtyas/prototype-4-space-station-amadeus-50f6302ddcd9?source=rss-4b4ab2f12cc6------2</link>
            <guid isPermaLink="false">https://medium.com/p/50f6302ddcd9</guid>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[unity]]></category>
            <category><![CDATA[design]]></category>
            <dc:creator><![CDATA[Matthew Tyas]]></dc:creator>
            <pubDate>Tue, 28 Feb 2017 20:22:33 GMT</pubDate>
            <atom:updated>2017-02-28T20:22:33.344Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bZ3rVEE6I8rcYGrRqDlxOw.png" /></figure><h4>In which a deadly crime is investigated in the far future…</h4><p>Get it <a href="http://tyasdev.com/prototypes/space-station-amadeus.html">here</a></p><p>With Break the Bank in the… well bank I wanted to switch gears away from from 3D action based games. I also wanted to take on a prototype that would yield a greater passion within me than the zombie banker shooter that had instilled so much apathy within me. To that end I began work on Space Station Amadeus, a murder investigation set on a city sized space station far in the future.</p><p>I’ve had the idea of an adventure game on a space station kicking around for a number of years, albeit with a different plot entirely. The idea was to establish an awe inspiring locale and give the players a bit of a taste of what life on the station would be like. I opted not to tell the original tail I had in mind as I didn’t believe I would have time and writing talent (at the moment) to do it justice.</p><p>So was born a murder. With this game I wanted to start improving my writing acumen, and begin the process of personal asset creation (thus far all assets have been downloaded free of charge from the Unity store). As is often the case the games scope was initially the entire case, from crime scene to arrest, with the player travelling between multiple locations to gather all information and clues needed to arrest a suspect. As time went on and implementation of the various systems I needed dragged on I shrank back my aspirations, ending up with just an elevator conversation and the initial crime scene.</p><p>Still as an exercise in writing I am very pleased with my work. Character dialogue has always been a challenge for me, to the extent that I have never released any fiction containing dialogue in the past, but I think I did a decent job with Moira and Kastorn. I think the story of the crime scene is interesting and that the prototype acts as a good teaser for a larger story.</p><h3>The Coding</h3><p>(This one is going to be a deep dive into the creation of a conversation controller. Feel free to skip ahead to Design and Building where I’ll discuss narrative creation and game design.)</p><p>To my utter surprise SSA is right up there with Torch Lighter as the most code intensive of all my prototypes. The chief challenge with this game was to create a reusable conversation system. The aims of the system where as follows:</p><ul><li>1-n Participants in the conversation.</li><li>1-n Lines in the conversation.</li><li>Trigger events during or at the end of the conversation.</li><li>Optionally load portraits for conversation participants.</li><li>Store conversations on disk as a JSON object.</li><li>Spell check the conversations at some point during the creation process!</li><li>Conversation assets should all be pre-loaded to prevent lag when a conversation starts.</li></ul><p>The above aims provided me with both a work flow and a format. Each of the conversations was typed up in Evernote (could have used a Google Document as well, I just needed a document that was accessible over the internet, with spell check facilities). Once typed, edited and spellchecked the conversation was converted into a JSON object. The full spec for my conversation format can be found <a href="https://gist.github.com/matthewjtyas/d717acf1b8e5eb6d4c58977b70914adc">here</a>.</p><p>Each of the conversations was stored in a separate file for ease of editing, and once finished I manually verified that the JSON objects were valid using <a href="https://jsonformatter.curiousconcept.com/">JSON formatter</a>. Finally I stored all of the conversations in a single resources folder called conversations (well duh). As part of the load process for the main game scene in unity a class called <strong>ConversationLibrary </strong>loads the contents of that entire folder. I created serialised <strong>Conversation</strong>,<strong> Line </strong>and <strong>Participant </strong>classes. One of the C# features available in Unity is <strong>JsonUtility</strong>. It parses JSON files and converts them into a class provided to it. As long as that class has all the potential parameters (including additional Serialisable classes if desired) it will automatically assign them all correctly from the JSON file.</p><p>With the conversations available in the <strong>ConversationLibrary </strong>I created another class called the <strong>ConversationController </strong>which manages displaying the conversations. In essence once a conversation is started it takes the current <strong>Line</strong> (some text, the id of the participant) and passes that information to the <strong>SSAUIConversationController </strong>(OK I admit it class names can get silly sometimes) for display. Whenever the player clicks it goes to the next line until there are no more at which point it exits (and triggers any required game flags to be set).</p><p>Each <strong>Element</strong> in a given location (something the player can click on or scan, I.E the blood) can have multiple conversations assigned to it and they will play out in turn. Finally I added a slight delay between one conversation finishing and another being able to start. This was done to prevent players accidentally clicking an element as they closed the last conversation (which would annoyingly trigger another conversation). These issues are the kind you probably don’t think about when you consider the things games developers have to deal with to make decent enough products!*</p><p>I also worked on my first implementation of game state flow. In torch lighter and Sunwalker progression was pretty much tied to your physical movement through the games and Break the Bank had none to talk of. In Space Station Amadeus I needed to track where the player was in the story to trigger certain events.</p><p>In essence the game checks through a list of true/false flags and triggers certain events once they are true. The most obvious example being the start of the game when we load into a scene (with just a single button, that you can see for a fraction of a second) then immediately load into the elevator and trigger the start conversation. A game flag called startGame is set to true indicating that the player is at the start of the game. The conversation is triggered and at the end sets the flag to false causing the game flow manager to load the player into the crime scene.</p><p>*Note that this fix in itself caused another bug in the original release of this game! Thanks to Steve for spotting that one!</p><h3>Design and Building</h3><p>My main challenge with Space Station Amadeus was constructing a believable setting. I was only going to be able to do much with free stock assets so I knew the writing of the game would have to do most of the heavy lifting to establish the setting. When I started the game I knew I wanted a huge space station, something completely impossible for modern society to build. All I really had in my head was a structure some sixty stories tall.</p><p>I opted to draw the whole station, planning initially on digitising the drawing and using it as the background for either an area select or main menu. In the end the drawing itself took three evenings of effort, and doing work to make it look good enough for the game would have taken another couple of days so I ended up using it more as a piece of concept art. As I drew it out I figured out why the station existed, what people did there for fun how different areas of the station would end up more wealthy than others and also how the planet below factored into day to day life. It was a wonderful discovery process and by the end of the drawing I was ready to start writing the conversations in the game.</p><p>I never sat down to write out every conversation in the game, mostly as I didn’t have a plan of what the flow of it would be. Instead I wrote conversations as I added elements in, developing the characters as I went so as to give each of them an individual voice. I had an overall plan for the whole case, including who the killer and victim was, what the motive was and what the killer was planning to do next. That gave me enough direction to begin building the crime scene, and allow the crime scene to lead to another location.</p><p>In terms of designing the flow of the game I initially aimed for something like the start of a Monkey Island game. The player could access multiple locations and would need to gather items (or in this case evidence) from each in order to eventually be able to progress. Sadly time was my enemy for this prototype. I was not code complete until the release day of the prototype (25th of February). As I was developing the features I had added content in that used them so I had about half of the crime scene ready on the morning of release.</p><p>I opted to focus on adding more conversations into that crime scene and refining the elements that I had in place. I could have tried to rush out another scene but it would have been of low quality and would have detracted from the prototype as a whole. I have instead ended up with most of the systems one would need to develop an adventure game (I did not build an inventory in the end, but have most of that built from the Sunwalker Omega prototype) and a really solid single scene. Down the line I will almost certainly make another adventure game prototype and it should have far more content in, as the majority of the code is in place already. Perhaps another case for Moira and Kastorn?</p><h3>Learning Outcomes</h3><p>Unity is a wonderful tool. It enables people of all skill levels to make games and facilitates rapid game development like no other game engine. There are a couple of features I have encountered thus far that took a lot of effort for me to learn. First was the animation system as I detailed at length in my Torch Lighter <a href="https://medium.com/@matthewjtyas/prototype-2-torch-lighter-95bd446bb4e8#.gx4vdsjtm">wrap up post</a>. Another system that appears remarkably complex is the UI building system.</p><p>Going into this game I would only begrudgingly work on the UIs for my games, you need only look at the Main Menus for each of the prototypes for proof of that! The main outcome of Space Station Amadeus has been me getting very comfortable with the UI tools. I built the entire game as a series of UIs. The scenes that load up are Unity Canvases, the Elements that players can hover over are UI images. The scan window, conversation UI, the controls panel are all canvases. This prototype offered me a ton of practice building UIs which has removed that reluctance.</p><p>I’m now in a place where I can knock out feature rich UIs very quickly, something that should let me build better looking menus for my later games (instead of cramming them in a half hour before executing the final builds). I am a long, long way from building beautiful menus, all of mine have been spartan (though always symmetrical, I won’t abide a slightly out of place piece of text or button). I’m a long way from Persona or Panzer Dragoon Saga, but it’s a good start and a skill I’m grateful to have banked, and really that’s the entire point of this year long exercise (merciless self imposed suffering aside).</p><p>As I alluded to in the design section I also have added a full conversation system to my shared-scripts repository that should prove very, very useful in the prototypes to come. Additionally the game state flags and flow manager should be useful in later games as a way of gating player access to content and areas.</p><p>All in all I’m very well placed to make another adventure game and have most of the code I need to make all my games have some sort of plot elements going forward. Also I got a chance to release some fiction for the first time, something I’m happy to have done as I have long been reluctant to share my writing. I remain hesitant to share short stories but now feel quite comfortable with the idea of writing for my games, something I am very keen to continue to improve at.</p><h3>Lastly</h3><p>Thank you, thank you, thank you for reading this and playing my prototypes. I hope you’ll continue to see a quality increase as I continue to build my skills and code base. This one was a bit of a passion project for me and represents the start of a project I’ve had kicking around in my mind since 2010 (more on that later). Up next is something a bit more game play focused that I’ll be announcing before the working week is out. (Touch wood).</p><p>Happy trails and I’ll see you down the road,</p><p>Matt</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50f6302ddcd9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Prototype 3: Break the Bank]]></title>
            <link>https://medium.com/@matthewjtyas/prototype-3-break-the-bank-62c695433c9d?source=rss-4b4ab2f12cc6------2</link>
            <guid isPermaLink="false">https://medium.com/p/62c695433c9d</guid>
            <category><![CDATA[unity]]></category>
            <category><![CDATA[videogames]]></category>
            <category><![CDATA[game-development]]></category>
            <dc:creator><![CDATA[Matthew Tyas]]></dc:creator>
            <pubDate>Fri, 17 Feb 2017 09:50:04 GMT</pubDate>
            <atom:updated>2017-02-17T09:50:04.713Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hedv_Aa8_-jUyL1hSxdO0g.png" /></figure><h4>Zombie Bankers, Ragdolls and the lessons learnt from failure.</h4><p>Get it <a href="http://tyasdev.com/prototypes/break-the-bank.html">here</a> for free.</p><p>OK so prototype three is finished, and honestly thank God for that. It’s been a very interesting lesson in the art of motivation and the dangers of underestimating the complexity of programming video game A.I. I realise this is also my most late blog post yet, fortunately the reason for it’s delay is my excitement for prototype number 4 which is coming along very nicely indeed.</p><p>So Break the Bank is a simple arena shooter in which you shoot zombies with a pistol until you die, or the game crashes. If a zombie touches you, you die. You may notice this is nothing like the concept I described a <a href="https://medium.com/@matthewjtyas/prototype-3-announcement-break-the-bank-1d5168534211#.4ba1owl77">couple of weeks back</a>. Well it turns out building a proper first person shooter with multiple guns, physics and AI based enemies is a really complex, time consuming challenge and I simply wasn’t motivated enough by the concept to do it.</p><p>Never the less I’m pleased with the results. I pared the design back to a zombie arena on Tuesday the 7th and was able to build that. Every zombie you kill (re-kill?) remains in the level and they stack up in fairly funny ways. The ragdoll effect was fun and I quite liked the music I ended up using.</p><h3>The Coding</h3><p>(Again if the technical specifics of coding games doesn’t interest you skip forward to the design section)</p><p>Despite the reduced scope of the game I managed to add some interesting code to my ever growing repo of scripts. As the first game that had AI characters in it I had to begin to develop a series of classes for NPCs. At the moment I use simple inheritance with a parent <strong>NPC </strong>class and a child <strong>ZombieBanker</strong> class. The <strong>NPC</strong> class has the code for movement and dying in it (elements that I will absolutely need again in the future be it for friends of foes).</p><p>The <strong>ZombieBanker</strong> class contained the behaviour specific to the zombie characters in this game. They were quite simple. Upon spawning in they locate the player and move towards them constantly. There’s no detection code, they automatically know where the player is at all times. To move towards the player I had to get the vector of the difference between the zombie’s position and the player’s position and normalise it. This provided the direction the player was from the zombie, which was then passed to the move method.</p><p>The NPC class itself borrows very heavily from the <strong>ThirdPersonController</strong> I built for Torch Lighter (Yes reusable code!). All I had to do was swap out the reading for input on the joystick / WASD keys and use a provided Vector3 for movement instead. This allowed me to duplicate the Animation Controller from Torch Lighter as well saving me over a week of work. All I had to do was swap out the animations for walking and running to use zombie based ones from Mixamo instead, and voila hordes of marching undead!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qmQWXyT0OUIIvoR3aN5tnw.jpeg" /><figcaption>HORDES!</figcaption></figure><p>The only other interesting challenge from a coding point of view was spawning mechanics. I had simple requirements: spawn the zombie in a random location and make sure they are more than x distance from the player. Nothing fancy in the solution here. I created a function that took a minimum Vector3 and a maximum Vector3 (essentially defining a cuboid of space in which the object can be spawned) then generated a random value for the x, y and z values between the minimum and maximum of each. I then checked how far that point was from the player and if it was too close simply ran the position choosing function again. Sooner rather than later a random position would be picked that was suitably far away then the zombie could be spawned there.</p><h3>Designing and Building</h3><p>As I said at the top it’s obvious that the final result here is very different to the game I had intended to build at the start of the two weeks. My intent was to build a very simple first person shooter level, think Goldeneye or Time Splitters. Looking back now that seems like a wildly lofty aim given the time scale and my experience coding both A.I and shooting mechanics.</p><p>I spent the first week trying to build that initial prototype. I added ray casted bullets, which would hit whatever the very centre of the screen was looking at. I then spawned a bullet hole at that point, which was pretty easy to get going and looked quite good. I then played around with physics, allowing the bullets to impart a force on anything they collided with, again very cool and quite simple.</p><p>The problems began when I started trying to add an enemy. Some would say enemies are a key component of First Person Shooters. These people would be correct. Sadly they are very complicated to get working. As per the coding section I modified the code I wrote for Torch Lighter to handle enemy movement and animation. I knew early on that I wanted to use ragdoll physics on the enemies the moment they died.</p><p>For those that don’t know ragdoll physics were a precursor to the more realistic complex physics and animations that games use today. The earliest game I remember using it was Hitman 2: Silent Assassin although I’m certain that was not the first. In essence various parts of the model (think forearm, lower leg etc) is given it’s own RigidBody so collides naturally with the environment. Each RigidBody is connected to another by the bones used by the animation skeleton. This provides a more realistic death animation and allows bodies to flop around post death (with often hilarious and morbid consequences).</p><p>Unity provides a very good wizard for creating ragdolls, simply requiring the creator to drag and drop various bones from the animation skeleton they already use. Unity then generates each of the RigidBodies and attaches them to the Game Object in question. Once the ragdoll was in place on the model (I’m sorry Torch Lighter you were the only one to hand) I added code to detect when a bullet hit an enemy which would then call the NPC.die method. This method told the Game Object to turn off the Animation Controller (that would select the animation for the living model be it run, walk or idle) and turn on the ragdoll. At the same time the bullet would impart a decent sized Impulse force to the ragdoll, making for interesting death animations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*q1j77NrP6EKqme5BiuiWgw.png" /><figcaption>I’m So Sorry Torch Lighter!</figcaption></figure><p>That all worked great, the problem was that implementing just an animated static enemy that reacted once they got shot took me almost a week. It was a combination of burnout (Torch Lighter was a ton of work to finish up) and a lack of interest in the concept. I found multiple days going past in which I got no work done and realised I would need to alter the final game concept if I was to stand any chance of finishing on time.</p><p>I decided to go with Zombie enemies as all they needed to do was rush at the player. I added the code for that basic behaviour and enemy spawning (see the coding section above) over the last couple of days of development time then added in my usual menu and game exit components. This left with me with a very basic arena shooter which I was able to just about say I was proud of when I released it (a lot of thought went into saying “proud” in the menu, but I think that sells the prototype a little short).</p><p>I am pleased with the visual design of the game. I used a green fog effect similar to the blue fog used for the under water sections in Sunwalker Omega, which masked the zombies spawning in from no where. I also used a wonderful skybox that I stumbled upon when building Torch Lighter, making for a very green Turok 64-esque arena. Finally I put torches on each of the walls of the level, continuing my chain of callbacks to the previous prototype.</p><h3>Learning Outcomes</h3><p>So what did I learn from my first failure of the year? I think the key word is passion. In order to work on something out of hours you need to be passionate about that project. I lacked a passion for Break the Bank and that is telling in the resultant game. There are first person shooter games I would love to make but clearly this wasn’t one. I was hesitant about the original intent of the game, and was keen to distance myself from the notion of violence against these “evil” bankers.</p><p>I make these games in my free time and I don’t have much of that. After a run in the evenings I have two, maybe three hours in weekday evenings and something like 24 hours over a weekend (assuming I have nothing else on). If I’m going to dedicate a reasonable amount of time to one of these prototypes (50+ hours) I damn sure better have a passion for the thing I’m trying to make or the motivation simply won’t be there.</p><p>A.I was an eye opener as well. I could probably have coded an enemy that shoots the player. That’s a far more complex task than it sounds though. Perfection is simple in programming. I code an A.I that hits the player every time without fail in under 10 minutes. The difficulty lies in making an A.I that hits the player when the player deserves to be hit, one that represents your typical poor movie henchman. Then you need code to detect the player, figure out if they are in line of sight, and how to get them in line of sight if they are not (but only if the A.I is aware). That’s two weeks of work alone if not more right there.</p><p>Beyond that I found asset selection a problem. I wanted to build a half decent approximation of a bank but found very few appropriate pieces of furniture or decorations available on the Unity Store (at least for free). I think I’m going to have to try and get back into 3D modelling if I want to build specific locations (something I’m encountering again on my new prototype), and then I need to start balancing my time between designing, coding, level building and asset creation. An interesting challenge I suppose if nothing else (anyone want to do 3D modelling for me? You get paid the same as me!).</p><p>All’s told it has been an interesting couple of weeks, I’ve certainly learnt a lot about myself, my motivations and I have some decent building blocks for NPCs which will be undoubtably useful for future prototypes! Bring on prototype number four!</p><p>Happy trails and I’ll see you down the road.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=62c695433c9d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Prototype 3 Announcement — Break The Bank]]></title>
            <link>https://medium.com/@matthewjtyas/prototype-3-announcement-break-the-bank-1d5168534211?source=rss-4b4ab2f12cc6------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d5168534211</guid>
            <category><![CDATA[videogames]]></category>
            <category><![CDATA[gaming]]></category>
            <dc:creator><![CDATA[Matthew Tyas]]></dc:creator>
            <pubDate>Fri, 03 Feb 2017 12:51:34 GMT</pubDate>
            <atom:updated>2017-02-03T12:51:34.893Z</atom:updated>
            <content:encoded><![CDATA[<h4>A farcical first person shooter in which the player seeks to reclaim that which the bank has stolen from them.</h4><p>With prototype number 3 I step away from my own ideas for a minute to try and build something suggested by a colleague. He asked me to try and make a game in which the player can set the texture of the enemy faces then shoot them, preferably while set in a bank. I found the premise a tad uncomfortable but have set off to craft a highly, highly farcical first person shooter that will be so ridiculous that it should not be offensive in any way.</p><p>The challenge of this prototype will lie in building basic FPS mechanics. Player shooting is fine, I can import that from Sunwalker. More problematic is enemy A.I. something I have very little experience of. I’ve got some basic ideas there, nothing concrete just yet. I’m hoping I can leverage the third person animation controller I built for Torch Lighter to get the enemies moving.</p><p>The farcical side of this game will come from the reactions when enemies and objects get shot. I want hyper physics. Think Dr No reactions when enemies get hit. I want enemies to go flying when they get shot be a pistol, I want them to go into orbit when they get hit by a shotgun. Also there will be no blood, that would be crass in this case. I think I have a good alternative in mind, we shall see how the prototype progresses.</p><p>Honestly it’s an interesting challenge and something new for me even if my heart isn’t necessarily into the concept. I should learn a lot, and I think I have an idea on how to load in a texture for enemy faces that should again be completely ridiculous instead of callously exploitative. Either way it should be a decent experiment and I think I can get something entertaining out of it.</p><p>Happy trails and I’ll see you down the road.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d5168534211" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Prototype 2: Torch Lighter]]></title>
            <link>https://medium.com/@matthewjtyas/prototype-2-torch-lighter-95bd446bb4e8?source=rss-4b4ab2f12cc6------2</link>
            <guid isPermaLink="false">https://medium.com/p/95bd446bb4e8</guid>
            <category><![CDATA[unity3d]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[unity]]></category>
            <dc:creator><![CDATA[Matthew Tyas]]></dc:creator>
            <pubDate>Sun, 29 Jan 2017 15:34:34 GMT</pubDate>
            <atom:updated>2017-01-29T15:38:31.498Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*khHDmXj7yuscVFnfNx6UjQ.png" /><figcaption>“These bloody torches don’t light themselves!”</figcaption></figure><h4>In which we learn who lights the torches and I learn the pains of building 3D third person platformers.</h4><p>Get it: <a href="http://tyasdev.com/prototypes/torch-lighter.html">here</a></p><p>Well ladies and gentlemen that is prototype number two in the book. If we go to the timekeeper we will see a tweet from yours truly showing Torch Lighter went live on the 28th, bang on schedule. You will note that this blog post did not, but you try writing a lengthy wash-up / announcement after coding for 12 hours on a Saturday!</p><p>Torch Lighter is a score attack based third person platformer, in which our as yet unnamed heroine tries to light all the torches present on a map before run-of-the-mill heroes turn up to fight “evil-doers”. I explained the premise more in my announcement post so won’t go into too many details regarding the plot here.</p><p>I aimed with this prototype to match the content of my first game Captain Bandana, I wanted a platformer of 10 levels in which the player sprints around lighting torches with some light story elements and multiple abilities. I demonstrably failed to get that, there are seven main levels in the game (with a hidden bonus 8th level), no additional abilities beyond running and jumping and absolutely no in game plot putting me somewhere behind Megaman 2 on the great video game story scale.</p><p>I am nevertheless incredibly proud of the game, it is a complete experience offering a level of replayability not found in my previous prototypes and is the most technically complex of any the games I have yet made. The platforming is tight and controllable, working well for the game and the scoring system offers players incentives to keep moving (which fits in well with the concept of clearing the level quickly to stay ahead of the “real heroes”).</p><h3>The Code</h3><p>(If you are uninterested in the technical minutia of programming I suggest you move on to the design and building section)</p><p>As I eluded to in my last blog post it was a much more challenging prototype than Sunwalker despite its relative visual simplicity. My time was split around 60/40 writing code versus designing and testing the game. First I had to build a third person controller that offered a smoothness of motion and tightness of controls for precision platforming. I built that out of my study of the Unity Standard Assets <strong>ThirdPersonController</strong>.</p><p>I butchered portions of code into something I rather narcissistically called the <strong>TyasThirdPersonController</strong>. I coopted their ground detection code (which was on point!) and the flags they built into their AnimationController while discarding the animation based motion they utilised. Unity offers a robust physics solution using <strong>RigidBodies</strong> and <strong>Mesh Colliders </strong>and initially I tried to use a method <strong>RigidBody.ApplyForce </strong>for movement, but I found it took too long the the player to accelerate and decelerate leaving a hero that felt like they were running on ice the whole time. Instead I opted to manually move the player without the RigidBody method, while still utilising the gravity and collision detection that it offers.</p><p>The other main coding challenges lay in game flow. I had to write a new level loader, based on one that one of my best mates wrote for an earlier project we worked on. I altered it to use a coroutine which essentially allows other process to run while the loading takes place (the idea being that I can do animated loading screens at a later date). The new <strong>LoadController </strong>handles basic level loading and has been built to be highly reusable. It is in essence a parent class, which allows me to very quickly make game specific loaders. For example the <strong>TorchLightLoadController </strong>handles tasks such as resetting the UI, setting new time limits, providing references to any game objects that need them to function. All functions specific to this prototype, while still using the shared code base of the parent <strong>LoadController</strong>. If you are interested in learning more about inheritance based programming I suggest you <a href="https://en.wikipedia.org/wiki/Inheritance_(object-oriented_programming)">start here</a>.</p><h3>Designing and Building</h3><p>As I mentioned earlier I originally aimed to build 10 levels for Torch Lighter. The idea was that each would be built to represent a different archetype of a level wherein torches might need to be lit. Coding the game logic took a lot longer this time around and I found myself quite behind schedule by Wednesday the 25th with six levels still needing to be built. I decided then to cut down my work load, reducing the ten planned levels to seven. This left me with four to build in three days, a much more manageable task.</p><p>More than that I felt that 10 levels would be stretching the mechanics in the game thin. I had no time to code additional elements such as moving/collapsing platforms or enemies, or to add extra torch lighting abilities and the basic score driven run and jump gameplay loop only remains entertaining for so long. With that in mind I was happy to remove certain planned levels and focus in on the best ideas I had.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*C1fV46lRV19uEHM5AsIcjg.jpeg" /><figcaption>The design for level 5</figcaption></figure><p>Design for each level had to take three factors into account: Uniqueness, Scoring and Player Movement. I wanted every level to feel unique with the exception of the final level which contains elements from multiple earlier ones, and the hidden bonus level which was more of a fun callback than a new piece of design. Levels 1 and 2 are very basic, teaching players the mechanics and how to light torches in order to maximise score. Level 3 is a linear vertical tower, levels 4 and 6 are open, level 5 is a tribute to Crash Bandicoot and so on.</p><p>Design also needed to take into account Scoring. Every level had to be able to be completed as part of a single scoring combo. That means every torch and key is no more than 4.5 seconds away from it’s nearest neighbor. The design of the score system is very simple, 10 points a torch, multiplier goes up with each torch lit and if a torch isn’t lit or a key isn’t collected after the five seconds the multiplier is lost. It is this scoring system that provides a hectic sense to the game, a constant need to be moving and smartly choosing which torch to light next.</p><p>Finally I learnt from Sunwalker about the need for player scale. I was constantly bearing in mind how tall the player character was (around 2 metres) and how high the player could jump (2.5 metres). I should have figured out how far the player could jump as well, but was able to build from gut feeling most of the time. With these metrics in mind I was able to build the platforming challenges of each level knowing that the player could run and jump through them most of the time.</p><p>Lastly was the system of keys and the hidden bonus level, a callback to my first prototype. I decided very early on to put in a hidden link to my earlier game and thought that gating access with keys would encourage player exploration (additionally top scores can only be gotten by accessing this final level with it’s many sweet sweet torches). I designed each level with a hiding place in mind for its key (with the exceptions of 1 and 2 which had been built earlier). The hardest platforming challenges of two of the levels gate off keys, for the rest they are simply tucked away (except level 1 in which the key is obvious to teach the player they exist in the game).</p><p>By bearing each of the above three factors in mind I was able to design a number of satisfying levels (and two which have frustrated my attempts to get a perfect score in the game). Yes it is possible to beat the whole game in a single combo, no I haven’t been able to do it.</p><p>One lesson well learnt from Sunwalker was properly structuring levels in the Object Hierarchy in unity:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FWzcDYxXJfJjhvcQCSZ0Ew.png" /><figcaption>Level 7’s object hierarchy (Blame level 3’s removal for the incorrect level names!)</figcaption></figure><p>By properly grouping objects under shared parent objects it was much easier to move around or rescale each feature of the level individually, and made it much easier to duplicate and reuse different elements within the levels.</p><h3>Learning Outcomes</h3><p>My project scope was way out of whack on this one. I aimed to add far too much to this prototype, to a level of polish that would have been impossible to attain. I had to discard multiple levels as I didn’t have time to build them all or get them to the standard I wanted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PYR-UrUiCEDrXlrlljdSxg.png" /><figcaption>You won’t find this level in the game</figcaption></figure><p>I spent an evening on the above level centred around Booster pads. Initial implementation worked well and they were a lot of fun to use but they were very unreliable, sometimes sending the player far too far, and sometimes leaving them very short of the target. In the end I had to abandon an evenings worth of work and had only a single booster pad to show for it in level 3 (note the wall you hit is there as I had to ramp the power up a lot to make sure the player would always clear the gap).</p><p>I think I need to spend a little more time designing the prototypes early on, estimating how long features should take to add and thinking about what really needs to be in the game and prioritising that. The score system for example wasn’t built until the 24th, and was a core part of the game. Better scoping of the initial project with estimates on how long features will take to implement should make these prototypes much smoother to build.</p><p>I am very happy with the amount of reusable scripts that have been added to the shared-scripts library I’m building. The inventory has been expanded and altered to be reusable, I have a CountDown class that is easy to use, an entire reusable scoring system and level loading.</p><p>Finally I got much more comfortable with timer based control coding. The multiplier, various parts of the UI and the main game timer all use CountDown timers something I’ve not really used much in the games I’ve designed in the past. As I attempt to implement more complex behaviours in my prototypes this knowledge should be very, very useful.</p><h3>Lastly</h3><p>A big thank you for reading this entry. It’s pretty long and I appreciate your time. I hope you find these break downs interesting, if there is any area you are interested in finding out more about then let me know and I’ll try to write it up. I’m pretty sure I know what the next prototype will be, it should be a little easier to build (famous last words) and hopefully will involve less last minute crunch! Thanks again!</p><p>Happy trails and I’ll see you down the road!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95bd446bb4e8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Prototype 2 Announcement: Torch Lighter]]></title>
            <link>https://medium.com/@matthewjtyas/prototype-2-torch-lighter-e5518c9191de?source=rss-4b4ab2f12cc6------2</link>
            <guid isPermaLink="false">https://medium.com/p/e5518c9191de</guid>
            <category><![CDATA[videogames]]></category>
            <category><![CDATA[unity]]></category>
            <category><![CDATA[storytelling]]></category>
            <category><![CDATA[gaming]]></category>
            <dc:creator><![CDATA[Matthew Tyas]]></dc:creator>
            <pubDate>Sun, 22 Jan 2017 18:08:53 GMT</pubDate>
            <atom:updated>2017-01-29T15:39:35.886Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yN-7yafySZ7rISTNWiJ6vg.png" /><figcaption>Lighting Torches is Thirsty Business</figcaption></figure><h4>Ever wondered who lights the torches in all those dungeons? Now the story can be told…</h4><p>Since I was young I’ve always wondered who lights all the torches. From bandit caves and goblin hollows to allegedly abandoned ruins deep in the jungles of Borneo. The torches are always lit when the player rolls in ready to explore / vanquish evil doers / mercilessly plunder and no one ever seems to stop and ask who bothers with the hundreds of torches!</p><p>In my latest prototype I aim to provide the answer. In truth there is a secret society of pan-dimensional operatives who are called upon by the wondrous painter of portals Al-Zuzu, who paints with threads of woven space time on the canvas of the multiverse. When a painting comes along in goes a Torch Lighter, only minutes ahead of the incoming “heroes”. They move as fast as possible through the dungeon, lighting all the torches while leaving all the enemies and traps intact for the heroes (the heroes need something to do after all).</p><p>So how’s Torch Lighter coming along after a week? Well let’s say it’s going good but I’m behind where I wanted to be. Getting decent controls in place has been a week long task and I only got where I really wanted to be this morning. With that in place though I’ve had a very productive day adding multiple levels, character sound effects and music. I want to get around 10 levels in place, add a couple of different ways to light fires and try my hand at writing some dialog.</p><p>Let’s just say it’s going to be a very busy week. I don’t expect this to end up any where near as polished as Sunwalker Omega but I’m laying down important ground work for future third person projects, of which there will be many (fingers crossed). Stay tuned for a possible mid week update and I’ll have download links up here and on my site next week.</p><p>Happy trails and I’ll see you down the road.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e5518c9191de" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Animation Woes]]></title>
            <link>https://medium.com/@matthewjtyas/animation-woes-85e937128bf5?source=rss-4b4ab2f12cc6------2</link>
            <guid isPermaLink="false">https://medium.com/p/85e937128bf5</guid>
            <category><![CDATA[unity]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[games]]></category>
            <dc:creator><![CDATA[Matthew Tyas]]></dc:creator>
            <pubDate>Mon, 16 Jan 2017 21:38:03 GMT</pubDate>
            <atom:updated>2017-01-16T21:38:03.457Z</atom:updated>
            <content:encoded><![CDATA[<h4>On Mixamo, Unity Animation and giving up and doing it yourself.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sdmCjSd_2JlCtmYi1A1smg.png" /></figure><p>Prototype 2 will be a third person 3D game. I won’t go into specifics of that here, that’s a different blog post for another day. After a late deploy of Sunwalker Prime I spent about 4 hours of Saturday evening and all of Sunday working on my new prototype. No rest for the wicked! As with Sunwalker Prime I decided to go with the standard assets third person controller to get development going fast.</p><p>That went well, I had a character walking, running and jumping all animating well. I added an extra script to make the camera controllable (with the mouse or the right stick of an Xbox 360 controller) and ended Saturday feeling pretty good about the progress of the prototype. The problems began Sunday morning after a brief coding session with another close friend, Steve, in a Starbucks. The Starbucks Session added some core gameplay elements and a neat objective marker I made using a transparent orbiting sphere. Next was swapping out the default character “Ethan” for a model and animations I was going to make with Mixamo. As we left Starbucks I said:</p><blockquote>“This is going to be a long frustrating day.”</blockquote><p>Boy was I right! This was my first time attempting to add proper 3D animation into a game (beyond basic model rotation in a couple of past projects) and I was going in only with the ominous warning from a friend that it was both confusing and challenging. The first step was to build a model in <a href="https://www.mixamo.com/">Mixamo Fuse</a>. I picked a copy of Fuse in a steam sale a few years back and had dabbled before so was able to quickly design a character which would do for the early stages of the prototype. It’s not so different to the character creator from Saints Row (albeit with far less picking of suggestive if not down right tawdry (gasp) animations).</p><p>Once the character was built and clothed I uploaded it to the Mixamo website and selected a number of animations before downloading the character and animations in the Unity friendly FBX format. Over the course of the day I repeated the download process many times, trying to get animations that looped, didn’t loop or were partially trimmed. The Mixamo animation website is pretty unintuitive but I was eventually able to get everything I needed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_FMmAxEyaSNjvVoY1Nzl-Q.png" /><figcaption>Yoga pose for all</figcaption></figure><p>I then spent roughly six hours cajoling my new character model into working with Unity’s default third person controller script. Unity’s animation system is built to separate the animations that are playing out from the codebase controlling a GameObject’s behaviour. If the Animation Controller is setup correctly all the scripts that control the character need to do is set the value of certain parameters on the Animation Controller. It will interpret these parameters into the correct Animation State and from there decide the animation to play.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ww0u973UZmt3FkK96zdoPw.png" /><figcaption>The Animation Controller provided with Unity Standard Assets Third Person Controller</figcaption></figure><p>In the image above each arrow is a transition which has an attached condition. When the condition is true the states will switch and Unity will programmatically move from one animation to the next. To add additional complexity each state comprises of multiple animations. To determine which animation plays a BlendTree is used. It again takes parameters and based on their values selects the right mixture of animations on which to pose and position the GameObject in question.</p><p>So on Sunday I duplicated that animation controller piece by piece substituting in the animations I had exported from Mixamo. I had less animations to work with than Unity’s default Animation Controller uses but was still able to eventually get a working version up and running and get my character to use the provided Third Person Controller. Victory, you might think. Alas no. I played around with it for a bit, testing the jumps and how it handled collisions with platforms and I decided that it didn’t feel right.</p><p>Prototype 2 is my attempt to make a really good proper feeling game. I want the running and jumping to feel tight and in control. With Unity’s controller there was no way to implement air controls (taking player input while jumping to change direction), turn circles felt too wide and the player lost all forward momentum in a jump if they hit a wall. All realistic but not what I need for this prototype. So I threw it all out and decided to build my own controller, incorporating portions of the Third Person Controller but with an emphasis on gameplay feel and less on precise and realistic animation.</p><p>You might think this was all a waste of time but for me building and discarding is the whole point of prototyping. Dive in feet first, run before you can walk and if you don’t like the destination tear it all down and build it anew. Frightful mixing of idioms aside I learnt so much in trying to get that Third Person Controller working. I knew next to nothing about the Animation systems of Unity on Sunday morning and now I’ve been able to write a lengthy blog post on the topic. I’ll use what I’ve learnt to build something more appropriate for my game then with each additional prototype this year I’ll add to it and build it up until I have a script that is perfect for my needs that I know inside and out.</p><p>And who knows, I just might learn something along the way. Stay tuned later this week when I announce the prototype and what it is I’m trying to build.</p><p>Happy trails, and I’ll see you down the road.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=85e937128bf5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Prototype 1: Sunwalker Omega]]></title>
            <link>https://medium.com/@matthewjtyas/prototype-1-sunwalker-omega-cd48288e234f?source=rss-4b4ab2f12cc6------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd48288e234f</guid>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[design]]></category>
            <dc:creator><![CDATA[Matthew Tyas]]></dc:creator>
            <pubDate>Sat, 14 Jan 2017 18:54:29 GMT</pubDate>
            <atom:updated>2017-01-16T14:15:36.752Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*phm3LqCBqeWmYhCPgx0dSA.png" /><figcaption>Sunwalker Omega</figcaption></figure><p>Get the game from <a href="http://tyasdev.com/prototypes/sunwalker-omega.html">tyasdev.com</a> for free!</p><p>As the 14th rolls around I come to the end of my time with my first prototype of the year, Sunwalker Omega. Its stars the eponymous Sunwalker, the very same fighter pilot who “starred” in <a href="http://tyasdev.com/Sunwalker/index.html">Sunwalker</a> the last game in my prototypes until today. In this prototype she has been shot down and is beginning to explore the allegedly uninhabited planet she has crashed on.</p><p>My inspiration here was <a href="http://www.giantbomb.com/metroid-prime/3030-15473/">Metroid Prime</a>, a really quite fantastic first person game that placed a heavy focus on exploration and atmosphere as well as the shooting that first person games remain known for. I wanted to create a similar atmosphere as the player explores a world that is alien to them.</p><p>With this prototype I focused on creating a small, interesting 3D area that required the player to retrace their steps a little bit to solve the main puzzle of the prototype. As my first ever first person game (aside from an unreleased prototype which had very limited game play) I learnt a great deal about creating these kinds of games. First and foremost was the basic movement and looking around.</p><h3><strong>The Code</strong></h3><p>Unity contains a really quite solid <a href="https://www.assetstore.unity3d.com/en/#!/content/32351">FirstPersonController</a> which I used as a basis for this prototype. It provided sprinting, walking, jumping, collision detection and those fantastic footstep sound effects. I was able to prototype the movement on day one of development and start planning the necessary heights of obstacles to force players to have to make jumps. I ended up <a href="https://en.wikipedia.org/wiki/Fork_(software_development)">forking</a> that controller and adding a couple of features necessary for my game. First I added very rudimentary crouching (simply reduced the y scale of the player object for collision detection and moved the camera down in the scene). I also added a fairly simple under water script based off of the wonderful example provided <a href="http://wiki.unity3d.com/index.php?title=Underwater_Script">here</a>.</p><p>That was the bulk of the coding work on this project. The rest revolved around the puzzle design. <strong>Minor</strong> <strong>Spoilers </strong>for the prototype follow, I recommend you play it first before reading on. The primary puzzle of Sunwalker Omega revolves around opening a gate at the far end of the playable area. This is done so using a switch in front of it. I initially coded two scripts, a <strong>Target</strong> (placed on the object the switch would activate) and a <strong>Switch</strong> script. When the key e is pressed the switch checks if the player is looking at it. If they are the switch calls an activate method on the Target.</p><p>From here I expanded these basic scripts adding a <strong>PoweredSwitch</strong> (which requires it’s power to be on for the click event to send activation to the target) and a switch which requires the player to posses an item in order for it to activate. To support these switches I developed a simple <strong>Messanger </strong>script which displays the big text messages to the player that instruct them on how to proceed. I also added a simple <strong>Inventory</strong> system that will likely get expanded as the year progresses and I have more complicated needs (you can’t view the inventory, or equip items and each item is defined in code).</p><h3><strong>Designing and Building</strong></h3><p>More interestingly for the rest of you I’m sure was the process of building the environment. Initially I laid out the game world with simple rectangular blocks. I built each of the rooms and connected them together as the final level would be according to the following drawing:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*AbxqueUI-xl7gQRjLGPdAw.png" /><figcaption>Hand Drawn Design for Sunwalker Omega’s Map</figcaption></figure><p>With a basic final layout built I was able to code all of the game logic described in the coding section above and get the whole of the game flow working. With that in place I had a basically finished prototype with an entire week left for beautification and refinement. Firstly I replaced all of the basic cube shapes with various sets of rocks. I used <a href="https://www.assetstore.unity3d.com/en/#!/content/2452">two sets of</a> <a href="https://www.assetstore.unity3d.com/en/#!/content/6947">free rocks</a> and was able to build up a good set of cliffs, caves and out door areas. Next I added cables into the game that would lead the player from the first unpowered switch to the one that would provide it power, but was locked behind a force field.</p><p>I then spent some time with pre-baked lighting. This involved making each of the pieces of the environment static then waiting around about 3 hours for the lighting to render on my laptop! The results were well worth the wait, although if I had more time I would run another build with dark ambient lighting as the cave mushrooms really popped in the dark.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6Bzo4LVP-aocHb_uip_SNA.png" /><figcaption>Mushrooms and Cables Lead the Way</figcaption></figure><p>Once that was all in place the prototype was really coming together nicely. I spent an evening with my very good friend Tom adding extra details, glowing mushrooms, plants and lighting then threw in some smoke and snow. The additional details added some good variety, and the mushrooms were useful to give the player some direction underwater.</p><h3><strong>Learning Outcomes</strong></h3><p>So what have I learned from prototype one? Well first and foremost I’ve learnt that baking lighting takes a <strong>really long time. </strong>It took me around two hours to bake the lighting on my 2016 MacBook pro, and nearer five on my pc. That’s something that I should have handled the evening before release.</p><p>Second I need to keep track of scale better. It’s very easy to start building a room or corridor without considering how large the player is relative to the new room. On more than one occasion I built a solid room and had to pretty much throw the entire thing out as the scale was wrong. I’ll also be grouping objects by room next time round so that if I need to move or scale up a room it should be much easier.</p><p>I also learnt a valuable lesson about keeping floors fairly flat. While the rocky floors look really good in Sunwalker Prime they can be hard to navigate, often requiring jumps to get over small bumps. I spent a moment looking at Doom(2016) and noticed they use uneven floors but place flat colliders on them so that movement is smooth for the player. That’s certainly a lesson worth retaining for prototype two.</p><h3><strong>Lastly</strong></h3><p>(Conclusion would have been far two secondary school science) Thank you, thank you, thank you for reading. If you have any feedback drop a comment here or send me a tweet (I’m @ matthewjtyas on Twitter). In a couple of days I’ll put out a shorter post announcing prototype 2’s concept!</p><p>Happy trails and I’ll see you down the road!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd48288e234f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Game Every Two Weeks]]></title>
            <link>https://medium.com/@matthewjtyas/a-game-every-two-weeks-3a2efa00679e?source=rss-4b4ab2f12cc6------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a2efa00679e</guid>
            <category><![CDATA[design]]></category>
            <category><![CDATA[unity]]></category>
            <category><![CDATA[game-development]]></category>
            <dc:creator><![CDATA[Matthew Tyas]]></dc:creator>
            <pubDate>Wed, 11 Jan 2017 13:23:05 GMT</pubDate>
            <atom:updated>2017-01-11T13:51:18.209Z</atom:updated>
            <content:encoded><![CDATA[<p>It pains me to say it, but the best game I have ever made took me two weeks and was completed in August of 2013. <a href="http://tyasdev.com/MrBandana/">Mr Bandana</a> was a little project I made to explore making games in canvas using Javascript. I worked four or so hours a day after work and ended up with something I was quite proud of, so much so that I demonstrated it to the entire development team at my former employer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*fE6SVW276pTXntlnUVqzaQ.png" /><figcaption>Mr Bandana / Bandana Man / Captain Bandana (I never did pick a final title)</figcaption></figure><p>That rekindled my love of games development and for the next few months I created a number of little games or canvas experiments and posted them to <a href="http://tyasdev.com/">my site</a>. Each was more complicated than the last and I began to experiment with writing an engine in canvas. As my ambitions increased project scope followed. Months were spent on a 2D engine that ran on top of canvas, but none of the games I created from it ever saw the light of day and the complexity of the engine eventually drove me away from the hobby of games development for a few months.</p><p>In 2014 I returned with a couple of small projects. <a href="http://tyasdev.com/experiments/protestTest/protest.html">Protest</a> was the first, a game made for the <a href="http://ouyaforum.com/showthread.php?10784-Get-Into-Games-Challenge-2014-win-a-5000-Unity-licence-and-a-trip-to-Seattle">Edge Get Into Games 2014</a> competition with a couple of my friends. It was my first game project in which I worked remotely with three other team mates and my first time working with Unity. I was very proud of our accomplishment even though we got no where in the competition. So proud in fact that I got my first tattoo to commemorate the project.</p><p>The other was <a href="http://tyasdev.com/Sunwalker/index.html">Sunwalker</a>, my second favourite game again made in two weeks as a competition with one of my close friends. It was another simple 2D game, only a single level with a few enemies and a boss. While crude to look at it was probably the most complicated programming challenge I had released to date (and featured my first attempts to work with Belzier curves).</p><p>After Sunwalker my output came to a screeching, and until now final, halt. I moved jobs, got busy, got depressed and had really bad issues with insomnia. I didn’t stop making games, but I started making the same mistakes as I had at the end of 2013. Project complexity went up. The games ideas got more grandiose, the requirements of each project got bigger, the scope spiralled out of control and every single time I would give up, lost in a tangle of requirements and code complexity.</p><p>I never stopped making games but a lot of fun had gone from my hobby. After moving jobs my sleep got better, I started feeling a lot better mentally. Everything was coming up Tyas at last. It was during an interview that I was asked “Why haven’t you released anything new on your portfolio in the last two years?”. I stammered out a response about scope and a desire to return and I guess I said the right things because I got the job.</p><p>With a new job and much increased health I turned back to my games development hobby. I wanted to get building again. The fun was always in the early chase and my best work came out of two week long projects. So I came on the idea of making a game every two weeks in 2017. I won’t promise each will be great and they’re going to vary massively in gameplay and style. But each one will be released for you to play.</p><p>I’m doing this to learn how to build games. To remember why games development is the best damn hobby on the planet. I’m going to be smart about development (you can look forward to a lot of technical blog posts), I’m going to have to relearn how to use Blender and I’m going to be learning a lot of brand new skills.</p><p>At the end of the year I’ll pick out the best and start developing them from prototypes into full games. So come along on this journey with me if you like. You’ll get to play some fun games and I’ll take all of your feedback as I pick new projects to prototype.</p><p>Happy trails and I’ll see you next time!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a2efa00679e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>