mandarin
  • About
  • Games
  • Blog
  • April 10, 2013
  • Thomas Viktil
  • Leave a comment

Change Unity’s default MonoBehaviour template

tips, Unity

If you’re like me and like your tab indents to use spaces rather than tabs, and you always remove the standard comments above Start and Update, then this little tips might be useful. Go to /Applications/Unity and Show Package Contents on the Unity.app. Navigate to Contents/Resources/ScriptTemplates. Here, you’ll find all the template Unity uses. Edit [...]

Continue Reading →
  • February 4, 2013
  • Thomas Viktil
  • Leave a comment

Better handling of behaviours in ImpactJS

ImpactJS

For the JIPPI project we made a game with a fairly standard setup with a menu that links to a couple of levels. We started off by adding functionality to the main class and then switching between update loops based on which level you’re at. This will quickly become difficult to maintain. Instead, we opted [...]

Continue Reading →
  • February 4, 2013
  • Thomas Viktil
  • Leave a comment

Starting/restarting an ImpactJS game without reloading the page

ImpactJS

For the JIPPI project we needed to build the game so that it could be restarted without reloading the page. Killing event listeners and stopping timers would have to be done, in addition to cleaning up any modules that might be loaded on the next create() so that ImpactJS wouldn’t trigger the “Module has already [...]

Continue Reading →
  • February 4, 2013
  • Thomas Viktil
  • Leave a comment

Dynamic loading of assets, entities and levels in ImpactJS

ImpactJS

As a part of the JIPPI project, we added a create/destroy function to ImpactJS. With the create function, you could pass a string to let the game know which jigsaw puzzle to load. We didn’t want the game to preload everything since the game consisted of 9 games and not all would be played during [...]

Continue Reading →
  • February 4, 2013
  • Thomas Viktil
  • Leave a comment

Automating entity generation with PHP and ImpactJS

ImpactJS

While working on the JIPPI game we needed tools for easing the development. One of the tools was a PHP script for automating generation of entities. We would get the sprite sheets from Making Waves, and then it was our job to make the entities come alive. To make this process as flexible as possible, [...]

Continue Reading →
  • February 4, 2013
  • Thomas Viktil
  • Leave a comment

Fast switching between your game and Weltmeister (ImpactJS)

ImpactJS

For JIPPI I created a couple of tools to ease the development, one of them being a handy drop down menu which allowed me to open Weltmeister (from now on just W) with the config file set to a particular sub folder of the levels and entities folders. This is something I intend to make [...]

Continue Reading →
  • August 10, 2012
  • Thomas Viktil
  • Leave a comment

Using Git for versioning with Unity

tips, Unity

In the document Using External Version Control Systems with Unity, Unity doesn’t mention Git as an alternative. I prefer using Git for versioning and just did a test using github.com. Setting up the respository was just as easy as described in the documentation. Update April 2nd 2013: Since committing to a git repo is a bit [...]

Continue Reading →
  • July 2, 2012
  • Thomas Viktil
  • Leave a comment

Blocking domains from Google search results

tips

Oh boy oh boy oh boy! I have just blocked all Google search results from experts-exchange.com! Make sure you are signed in to Google. Search for something, click on one of the websites in the results (I don’t know if you even have to wait for the page load), hit the back button and you [...]

Continue Reading →
  • April 18, 2012
  • Thomas Viktil
  • Leave a comment

Watch for changing properties in Flex

ActionScript3

In AS3 there is a handy utility class called ChangeWatcher, which lives inside the mx.binding.utils package. It provides you with a handy way of watching other object’s properties. Here’s how it’s used: Object – the object which owns the property “property” – the property you want to watch handler – the function name of the [...]

Continue Reading →
  • April 18, 2012
  • Thomas Viktil
  • Leave a comment

AS3: optimize an XMLSocket data handler

ActionScript3

A while back ago I realized the importance of variable types and code optimization. I was working on an interactive installation using an Arduino and a Mac Mini. The Mac was communicating with the Arduino through an XMLSocket and was getting data probably about one hundred times per second. The first version of the datahandler [...]

Continue Reading →
1 2 Next →
  • Popular
  • Latest
  • Comments
  • Tags
  • AS3: Copy text to clipboard April 3, 2012
  • Better handling of behaviours in ImpactJS February 4, 2013
  • Starting/restarting an ImpactJS game without reloading the page February 4, 2013
  • Dynamic loading of assets, entities and levels in ImpactJS February 4, 2013
  • Automating entity generation with PHP and ImpactJS February 4, 2013
  • Change Unity’s default MonoBehaviour template April 10, 2013
  • Better handling of behaviours in ImpactJS February 4, 2013
  • Starting/restarting an ImpactJS game without reloading the page February 4, 2013
  • Dynamic loading of assets, entities and levels in ImpactJS February 4, 2013
  • Automating entity generation with PHP and ImpactJS February 4, 2013
  • Thomas Viktil: Hi Carl-Erik. Yes, that OSC as in Open Sound Cont...
  • Carl-Erik Kopseng: Is that OSC, as in http://en.wikipedia.org/wiki/Op...
actionscript3 air as3 binary files bindable block boolean changing variables children clipboard conflict development domains editor entities experts exchange flash Flex game garbage collection generating git google impactjs javascript level loading MAMP mysql.sock optimizing code OS X php programming return statement search results socket subfolder switching unity update MAMP variable type versioning web development weltmeister xmlsocket

Contact me

  • Phone+47 92 68 90 10
  • Emailmandarin@mandarin.no

This is me

I am a freelance game designer and developer.

Subscribe

Read my latest ramblings by following me on one of these fancy channels.

  • Games
  • Blog
  • About
  • Sitemap
  • Timeline
  • Blog archive