Game 2048(Electron)
Electron, Node.js, and Cross-platform

A cross-platform desktop app for Game 2048, built with Electron and Node.js

1. 2048

2048 is a famous number puzzle game, you can play it online at https://gabrielecirulli.github.io/2048/. It also has iOS and Android apps for mobile devices. I converted this game from a web application to desktop application with Electron for all platforms, OS X, Windows and Linux.

2. UI

The user interface looks same with the web application. Click New Game to start and use four arrow keys on keyboard to move the tiles for playing. image

2.1 Play on Mac

image

2.2 Play on Ubuntu/Linux

image

3. Under the Hood

Check posting Converting Web App to Desktop App with Electron to learn the details of Electron and how this desktop app was built.

Notice, Electron is used to build cross-platform desktop apps with JavaScript, HTML, and CSS. To develop cross-platform mobile apps, maybe you need Xamarin or Cordova instead.

4. Source Files