Skip to content

kze1337/2048_fork

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2048

This is 2048 built with SDL2 with optional features, written as an assignment for submitting to my university.

Preview

Preview 1 Preview 2

Installation

Go to releases and download the latest version available for your platform, if somehow a platform is not available then you can build from source using the tutorial below.

To move the tiles use the WASD key or toggle arrow key support in the game settings.

Building

To build this game, you must have Meson, Ninja, CMake, make, g++/clang++, SDL2, SDL2_mixer, SDL2_ttf, SDL2_image along with required headers installed.

git clone https://github.com/teppyboy/2048
cd 2048
meson setup builddir  # Needed for installing SDL2 libraries to the project.
  • Debug
meson compile -C ./builddir
meson install -C ./builddir
  • Release
meson setup builddir-release --buildtype release --optimization 3 --strip
meson compile -C ./builddir-release
meson install -C ./builddir-release

The output will be in ./bin

Acknowledgements

BGM

SFX

Fonts

Images (all are blurred)

Assistance

  • StackOverflow
  • Perplexity (with Claude 3.7 Sonnet)

License

MIT

About

The 2048 game implemented in SDL2 with optional features.

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C++ 97.8%
  • Python 1.4%
  • Meson 0.8%