Skip to content

A lightweight scalable C++ implementation of the 2048 game using SDL

Notifications You must be signed in to change notification settings

nwmetcal/2048_SDL_cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2048_game_cpp

This is a C++ implementation of the 2048 game using SDL for graphics

#--Dependencies-- Requires:
SDL2 - https://www.libsdl.org/download-2.0.php
SDL_image - https://www.libsdl.org/projects/SDL_image/
SDL_ttf - https://www.libsdl.org/projects/SDL_ttf/
to be installed to build from source

--Directions--

Make release for use, debug for debugging
Usage: ./2048 <-s/--size> <-w/--window>
-s/--size specifies number of tiles in each row
-w/--window specifies initial size of window
example:
./2048 -s 4 -w 600
Would start game with a 4x4 board on a 600x600 pixel window

Enjoy!

About

A lightweight scalable C++ implementation of the 2048 game using SDL

Resources

Stars

Watchers

Forks

Packages

No packages published