Tanner
4773cdb387
Add key info for protovac
6 months ago
elsyspedromamede
751404655a
Update the Hi Score and Score at the same time when you hit the Hi Score
6 years ago
Paul_Arutyunov
c5f6ca6beb
Handle arrow keys
6 years ago
Paul_Arutyunov
28cd69b501
Add arrow keys return values
6 years ago
Paul_Arutyunov
42aa4c8cf1
Add arrow keys definitions
6 years ago
matiasbian
6ad9b16454
gettext.h added - gettenv overwrite fixed.
6 years ago
matiasbian
1a02433aa3
fully translated to spanish
6 years ago
matiasbian
560bb6cf8b
gettext funcion applied to strings
6 years ago
Marc Tiehuis
984a5b9f18
Add memory allocation checks
...
Closes #18 .
7 years ago
tiehuis
912afdfe05
Remove SDL2 frontend
...
This was rather ugly and was not ever the main focus. This allows us to
remove the now unneeded font resources and simplifies the build
process/project.
7 years ago
Björn Esser
1e1338f1de
make TTF_FONT_PATH configurable
8 years ago
tiehuis
4520781f25
Remove various compilation warnings
...
With the removal of these warnings we slightly improve the robustness of
the highscore parsing, handling some more cases of bad parsing/writing
and failure to open files.
9 years ago
tiehuis
28b4a46336
Fix blocks incorrectly spawning on no field change
...
See https://github.com/Tiehuis/2048-cli/issues/14 .
9 years ago
Tiehuis
cd13ef000f
Fix makefile targets. Remove unnecessary warnings.
9 years ago
Tiehuis
dc9adea7b5
Get rid of random blockgenerator in favor of a linear time one. Changed a sleep in ai to use gfx_sleep
9 years ago
Tiehuis
05f2713179
Alter engine so we can init a gamestate with no arguments. May be able to be utilized in ai code
9 years ago
Tiehuis
c0d4b6de3e
Small change to animating rows
9 years ago
Tiehuis
1da480b331
Add the ai files that were forgotten in previous commit
9 years ago
Tiehuis
cf1a147078
Added ai modes. Altered output of highscores to allow possible parsing with tools easier
9 years ago
Tiehuis
2d9f89f339
Make conditional linking happen in makefile for merges
9 years ago
Tiehuis
d1b80fe2fe
Aesthetic changes to graphics in ncurses version
9 years ago
Tiehuis
622a4b46ef
Invert colorscheme by default on ncurses version for more distinct squares
9 years ago
Tiehuis
1e2b2b76ac
Slight change to reset prompt to allow mix-cased response
9 years ago
Tiehuis
2d9af767d1
Add -r option to man and readme and make reset option actually prompt. Remove hardcoded merge_goal value.
9 years ago
Tiehuis
40f6419c55
Fix errors. Add printing of scores after game so user can actually see what they scored
9 years ago
Tiehuis
6d247f282f
Added easy extension of custom merge results. Example fib merge rules added. Code altered to make use of this new style
9 years ago
Tiehuis
375cdeb7da
Allow spawn rate option to work as intended
9 years ago
Tiehuis
53e941bf98
Remove the c99 for loops, just for gcc users. Optional CC var set in makefile
9 years ago
Tiehuis
5d6c3f92be
Reintroduced color support for ncurses version
9 years ago
Tiehuis
d8cef1def4
Rewritten man page. Removed large dependencies by writing directly for man.
9 years ago
Tiehuis
c8e55ed6e9
Added highscore functionality
9 years ago
Tiehuis
3dd23136d5
Added sdl version to exmplify extension of the main engine
9 years ago
Tiehuis
8cff1bb002
Major rewrite. Abstracting graphics code completely and allowing new extensions via a consistent drawing interface
9 years ago
Marc
da0ff59971
Makefile updated. Small init changes in game_engine
10 years ago
Tiehuis
0a76b9c452
Various changes. Alter grid allocation. Add current block count
10 years ago
Tiehuis
3085bd4eb6
Removed unsigned/signed compare warnings. Change all to size_t types
10 years ago
Tiehuis
a116923c69
Clean devel src dir
10 years ago
Tiehuis
32a4b483ee
Consolidate printing styles, make more generic. Add goal option to create a custom target
10 years ago
Tiehuis
3ca10eb8d5
Correct last commit
10 years ago
Tiehuis
44bc1cbe87
correct grid malloc to calloc
10 years ago
Tiehuis
b7c45f7f87
Add some option mechanics
10 years ago
Tiehuis
569e11710f
vt100 simple mode added
10 years ago
Tiehuis
01af91121b
Fix curses not displaying until keypress. Callback example demonstrating some pseudo-animation
10 years ago
Tiehuis
2b1d230330
Alter looping variables to better describe intent
10 years ago
Marc
387f37a64a
Abstract engine and drawing logic apart from one another. Keep gamestate in a struct
10 years ago
Björn Esser
2efc3db045
unified codebase
10 years ago
Marc
2195f44005
Don't need flog of negative integers
10 years ago
Björn Esser
27fd8b3218
Fix compiler warnings about unused result
10 years ago
Tiehuis
e9e6ce2715
Readd some logic details that are needed. Fix colors on some blocks being black
10 years ago
Dmitry Marakasov
a49ed8dd36
Autodetect color support, allow override through arguments
10 years ago