An open API service indexing awesome lists of open source software.

https://github.com/shadowmitia/rust-2048

A 2048 made in rust with SDL2 bindings
https://github.com/shadowmitia/rust-2048

Last synced: 11 months ago
JSON representation

A 2048 made in rust with SDL2 bindings

Awesome Lists containing this project

README

          

* 2048

* How to build

** On windows

Requires CMake

*** To compile

install sdl2 and sdl2-ttf with vcpkg and then in a terminal add

#+begin_src
$env:Path += ";C:\Users\ShadowMitia\Documents\GitHub\vcpkg\installed\x64-windows\bin"
$env:Lib += ";C:\Users\ShadowMitia\Documents\GitHub\vcpkg\installed\x64-windows\lib"
$env:Include += ";C:\Users\ShadowMitia\Documents\GitHub\vcpkg\installed\x64-windows\include"
#+end_src

and then build with "cargo build"

** On Linux

Just install SDL2 from the package manager

*** Fedora

#+begin_src sh
sudo dnf install SDL2 SDL2-devel SDL2_ttf-devel SDL2_ttf
#+end_src

*** Ubuntu

#+begin_src sh
sudo apt install libsdl2-dev libsdl2-ttf-dev
#+end_src