Last year was falling snow, or the Christmas game for the week

Every year, by December 31 we with friends make browser game. We have this tradition. This year we were faced with a goal to make at least not worse last.
/ >
image

Initially, much attention was paid to the idea of the game. Trying not to complicate the gameplay, it is based we put the standard arcade racing, but with the Christmas themes — compete had on the flying trees.

image

However, in our time flying by the trees in the browser is hardly a surprise and will interest. We decide to use the well-known Responsive design, but somewhat unusual. By design, when loading the site the player is shown a special code. The user opens the same site from a mobile phone, where he proposed to enter the code. The device synchronizes with the PC browser and the mobile phone becomes all the usual joystick with which you control your Tree. Multiplayer: you can play four simultaneously.

image

Simple, but impressive!

For fast data exchange between mobile-remote server monitor screen on which, in fact, the game goes, you need something very quick with minimal delays.

For front-end uses nginx. Server side we have implemented in Node.js. As a framework we use Express, and to transfer data from control to the monitor with the game on WebSocket-we took a Socket.io.

Another important point was the ping from the client to the server in normal ping in the 80-120 MS of lag is within norms, but keep in mind that ping is multiplied by two (the signal delay from the mobile to the server and the delay from the server to the monitor screen). So we decided at the time of publication habré to move the game from Germany to Moscow.

In parallel, the designers draw a beautiful Christmas tree achievements and other amenities which are so necessary in the Christmas game. But first they need to think and consider what objects do what in the game.

image

image

image

Specifically to write the music for the game we didn't have time, and to use standard Jingle bells is not wanted. As a test of the music we took everyone's favorite "Fell last year's snow" composer Grigory Gladkov. But before publishing plucked up courage and wrote a letter to the composer with the hope of getting blessing for the use of music. And miracles do happen! Grigory gave us permission to use his music plus has offered a few remixes on it. :-)

conclusion.


In just a week we managed to do a fairly simple but entertaining browser game, to give yourself and others a little Christmas cheer and make sure that miracles do happen.

Pleasant flight 2014.studio38.ru

And Yes, just recently the game got an Honorable mention on Awwwards.

image
Article based on information from habrahabr.ru

Comments

Popular posts from this blog

Powershell and Cyrillic in the console (updated)

Active/Passive PostgreSQL Cluster, using Pacemaker, Corosync

Automatic deployment ElasticBeanstalk using Bitbucket Pipelines