This is a 2048 recreation made in C with the help of the SDL2.0 graphics library. All assets were made by hand with the pixel editor aseprite. Color for each tile is changed by an SDL function. This project was made after having made several other SDL projects (chess, flappy bird, and pacman). I wanted to see how much I had improved and the progress I had made in coding. Below you will see a Timelog that I recorded to have a record of my progress. This was possible because of practice and having created tools like SDL_2D_init.
About to start, hold up let me git push...
They say wifi came back up, got stuff going...
Big time loss with a bug caused by wrong TILE_SIZE
Figured out the logic for sliding left. Not sure if 2 2 2 2 should turn into 4 4 0 0, or 8 0 0 0. Also both 4 2 8 0 and 2 4 8 0 are valid for 2 2 2 8. Time to see gameplay to determine behavior.
Took a break and finding out how to do all four sliding movements with one function was difficult. Tested it also, because it has a lot of edge cases.
There are bugs =[
Play testing! But also then found a bug, will rewrite the update function to be robust...
Back at it now, give me a few seconds to git push and fix that bug from earlier...
I had finished earlier but played until I was able to overflow the 2048 block. Really fun game.