Posts
-
Oct 5, 2017
Game jam with Phaser
It has been a tough week. My dad passed away after having been ill with Crohn’s disease for many years. He started to deteriorate quite rapidly recently. It was heart breaking seeing him on his final days at the hospital.
-
Sep 30, 2017
Building an interlinked Github wiki from markdown topics
I use markdown wherever possible since it is a very simple and clean syntax to work with and is easy to read as-is. One of the areas that I’ve wanted to adopt markdown for a while is for documentation but somehow without compromising on the high quality linking that I have between topics.
-
Aug 18, 2017
Get-text style localization in Unity
In past Unity projects I have used basic string table lookup to localize UI text using carefully named keys. Whilst straightforward in terms of implementation this has a number of downsides such as being unable to properly handle the plural forms of some languages; not to mention the problem of having to come up with meaningful keys and locating strings in source code.
-
Mar 28, 2017
Installing npm packages into a Unity project
Installing npm packages that are enabled to work with the unity3d-package-syncer tool is a fairly straightforward process!
-
Mar 27, 2017
Creating an npm package with DLLs instead of scripts
The overall process is essentially the same as before except source files should be placed into a folder somewhere outside of the “assets” folder. A workflow can then be added using an npm script, a makefile, a shell script, a batch file, a gulp file, or whatever type of automation system that you prefer to use to initiate the building of the DLLs.
-
Mar 26, 2017
Structuring an npm package for Unity
As with all npm packages; each package requires a “package.json” file to identify the package and any dependencies that it may have.
-
Mar 20, 2017
Package management for Unity projects
As many of us have found; when working with even small projects you end up having many variations of reusable source code scattered across the projects. In some situations you will even find yourself having a project that has many versions of the exact same JSON library since each asset bundles it within a unique (or sometimes clashing) namespace.
-
Jan 10, 2017
Managing states with a lightweight FSM
Games will typically have a number of states and sub-states and there are endless ways in which these states can be defined from using a switch statement, to using delegates, state pattern, coroutines, scenes, animation events, etc. Each approach brings its own advantages and disadvantages and some are better suited depending on the use case.
-
Jan 6, 2017
Tweening with DOTween
There are several really good tweening libraries for Unity although I must say DOTween is my favorite since it has a wealth of features and performs well even on mobile. DOTween is open source although there is a DOTween Pro version which includes extra features such as visual editors but most importantly allows you to show some support to the fantastic developer of this asset.
-
Oct 17, 2016
Services and configuration assets for Unity projects
With many of the projects that I have worked on it has been necessary to support a variety of build targets that are either configured differently or make use of entirely different services. In early projects I would simply use the various symbols that Unity defines such as
UNITY_ANDROID
but this falls short when supporting multiple Android based platforms. Not to mention dealing with projects that contain multiple reskins of the same core game each with a range of different platforms.