2048x2

June 23, 2026 · View on GitHub

A desktop clone of the popular puzzle game 2048 for two players written in D language. Left board is controlled with WASD, right board is controlled with arrow keys.

The game was originally written in 2014. In 2026, I reworked the code and ported the graphics backend to Dagon Engine, which improved the quality of text rendering. Translations of the game into German, French, Spanish, Portuguese, and other languages ​​were also added.

Note: this is not a port of original 2048 by Gabriele Cirulli. It was written completely from scratch.

Original version source code is here.

Building

Install D language toolchain. Supported compilers are DMD and LDC. Run dub build (or dub build --build=release-nobounds for release version).

Controls

  • WASD - shift tiles of the left board (Player 1)
  • Arrow keys - shift tiles of the right board (Player 2)
  • Enter - restart the game on the final screen.

Settings

The game is configured via the settings.conf file.

  • It is not recommended to change the resolution. The game was created for 810x450 window and don't support responsive graphics yet
  • You can disable the log by setting log.enabled to false
  • The game automatically detects user locale from the system. If you want to force specific language, use the locale option (commented by default). Supported values are "de_DE", "el_GR", "en_US", "es_ES", "fr_FR", "pl_PL", "pt_BR", "ru_RU", "uk_UA". You can add custom translations (*.lang files) to the locale folder.