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
- Host: GitHub
- URL: https://github.com/shadowmitia/rust-2048
- Owner: ShadowMitia
- Created: 2020-04-28T13:51:47.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-15T21:07:50.000Z (almost 6 years ago)
- Last Synced: 2025-03-15T02:33:31.469Z (over 1 year ago)
- Language: Rust
- Size: 68.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
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