Author: Mark

  • Demonfall Week 12 Progress

    Might not look like much, but I worked quite a lot on Demonfall this week. I redesigned the items to coins so they look more like collectables and added a little shine to attract attention. Originally the gold coin was just going to have a 1 on it but the logo I made made me…

  • Making Tabs in Angular

    The js: (function(){     var app = angular.module(‘tabModule’,[]); app.controller(‘TabController’, function(){     this.tab = 1;     this.setTab = function(newValue){       this.tab = newValue;     };     this.isSet = function(tabName){       return this.tab === tabName;     };   }); })(); and the HTML <section class=”tab” ng-controller=”TabController as panel”>         <ul>             <li ng-class=”{active:panel.isSet(1)}”>                 <a ng-click=”panel.setTab(1)” href>Description</a></li>…

  • Filling the extra areas of the screen in Unity

    A portrait game with a ratio of 4:3 fits perfectly on an ipad but on something like an iphone 5 that has a bigger height, there will be some empty space on the top and bottom. To fill up those spaces with a solid colour, make a ui image element, insert a square image, set…

  • Print CSS

    Here is a some default print css to get started. @media print { * { background: #fff none !important; color: #000 !important; } a:after { content: ” (” attr(href) “) “; font-size: 0.8em; font-weight: normal; /* wrapping required for windows 8 phone and ie10,11 */ -ms-word-break: break-all; word-break: break-all; display: inline-block; /* Non standard for…

  • Accessible Icons

    A common example of needing icons to be accessible is when they’re used as buttons eg. search button, left and right navigation buttons etc. To do this, add the css: .fa span{ text-indent: -9999px; display: inline-block; } and in your html just add the text in a span inside the icon like so: <i class=”fa fa-search><span>search</span></i>…

  • Demonfall Week 11 Progress

    A day late than the usual update. I was trying to figure something out yesterday and it was doing my head in. Unity works in strange ways sometimes.. Anyways, got it working today thanks to the fine people on the internet. This week got some of the UI designed aka the white buttons above. They…

  • Demonfall Week 10 Progress

    Well, got the logo designed (above). Tried a few variations and ended up with this; I’m quite happy with it. Also I fixed most of the bugs I’ve found so far. What’s next: more design stuff, let’s make the start menu pretty as well as make some of the assets for the game that are…

  • Making particle effects in Unity

    In this example I’m making a lightning attack effect. The lightning image gets bigger as it reaches it’s target and the movement will be controlled via code. Make a new particle system by right clicking the hierarchy and selecting ‘Particle System’. Drag the sprite you want to use into that object. You may have to…

  • Unity Prefabs

    What are prefabs? They’re game objects that are reusable. Examples of these could be collectable coins or enemies or enemy projectiles that appear multiple times in the game. To make a prefab, simply make a game object as always, then drag it into the assets folder (ideally in a folder called Prefabs or the like).…

  • Demonfall Week 9 Progress

    Ok, so this week I got multitouch working. Mouse clicks don’t count as touches so I have to test it on a device. I’m using Unity Remote which is awesome. Basically it sends the game to the device whenever I hit the play/preview button. To make the left and right buttons work with touches I’ve…