Spil Games: Javascript developer
I was already responsible for the Flash library to integrate games into Spil Games' systems. The market was turning into HTML5 games and there was a growing need to have similar tooling available to integrate those games.
I started working together with the team to have a javascript library that could be used by game developers to reduce their integration time and also offer all the possibilities for the company to monetize the games.
It was a very nice and challenging project because we had on one end lots of services and tools from our company we had to communicate to and on the other there was a growing number of possible technologies games could be built with and we were supporting.
The services side
From the services side we've created a configuration service that would output json for the game according to its id and the site where it was running.
The configuration json contained branding information such as:
- assets
- where assets for the game should be fetched from, enabling content managers to brand according to the environment where the game was in
- services
- what kind of web site data the game was allowed to access, user data
The library also incapsulated other website functionalities and made the accessible to the games such as displaying advetisement whenever a level would be completed and taking the player to the payments flow where in game purchases could be done.
The games side
On the other end of the library were the game developers who were integarting them into the games. All games were running in the browser, so in the end they all used javascript for the final build, but game developers were using all kind of game development tools and that would interface very differently with the js in the browser.
We created some addaptors for the most popular game making tools at the time such as Unity and Flash as well as gave support to the game developer community to develop their own for other tools such as Game Maker and Construct 2.
That experience involved a lot of technical support and going through integrations with the developers. We've used:
- documentation
- documentation we wrote about each step with code examples.
- toolling
- a testing tool developer could run the game in a environment that simulated the websites where the run would go to and validated they were doing the needed calls to the library.
- support
- ticket system to talk directly to the developer when they needed more 1 on 1 support.
What I've learned
It was a large project started from scratch. We had to keep it stable. Testing and monitoring were essential tools for making sure all was going good.
Working on documentation and support gave a good experience on how other developers were working and helped improve the project's quality.
Incapsulating funtionalities from other services and tools and providing a unified approach for game developer to access them was also an interesting learning on abstraction and reducing complexity.
Tools
- Javascript
- Grunt
- Webpack
- PhaserJs
- Unity
- Game Maker

