Commit Graph

47 Commits

Author SHA1 Message Date
matiasbian
1a02433aa3 fully translated to spanish 2018-06-10 19:17:40 -03:00
matiasbian
560bb6cf8b gettext funcion applied to strings 2018-05-29 19:56:28 -03:00
Marc Tiehuis
984a5b9f18 Add memory allocation checks
Closes #18.
2017-08-12 11:09:07 +12:00
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.
2017-08-12 10:58:47 +12:00
Björn Esser
1e1338f1de make TTF_FONT_PATH configurable 2016-03-29 16:52:05 +02:00
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.
2015-12-30 11:49:04 +13:00
tiehuis
28b4a46336 Fix blocks incorrectly spawning on no field change
See https://github.com/Tiehuis/2048-cli/issues/14.
2015-12-30 11:35:35 +13:00
Tiehuis
cd13ef000f Fix makefile targets. Remove unnecessary warnings. 2015-08-04 16:42:28 +12:00
Tiehuis
dc9adea7b5 Get rid of random blockgenerator in favor of a linear time one. Changed a sleep in ai to use gfx_sleep 2015-02-25 23:54:13 +13:00
Tiehuis
05f2713179 Alter engine so we can init a gamestate with no arguments. May be able to be utilized in ai code 2015-02-25 18:58:36 +13:00
Tiehuis
c0d4b6de3e Small change to animating rows 2015-02-25 15:14:15 +13:00
Tiehuis
1da480b331 Add the ai files that were forgotten in previous commit 2015-02-25 14:53:49 +13:00
Tiehuis
cf1a147078 Added ai modes. Altered output of highscores to allow possible parsing with tools easier 2015-02-25 14:51:48 +13:00
Tiehuis
2d9f89f339 Make conditional linking happen in makefile for merges 2015-02-25 10:47:41 +13:00
Tiehuis
d1b80fe2fe Aesthetic changes to graphics in ncurses version 2015-02-23 16:42:45 +13:00
Tiehuis
622a4b46ef Invert colorscheme by default on ncurses version for more distinct squares 2015-02-23 16:18:41 +13:00
Tiehuis
1e2b2b76ac Slight change to reset prompt to allow mix-cased response 2015-02-23 16:07:13 +13:00
Tiehuis
2d9af767d1 Add -r option to man and readme and make reset option actually prompt. Remove hardcoded merge_goal value. 2015-02-23 16:00:14 +13:00
Tiehuis
40f6419c55 Fix errors. Add printing of scores after game so user can actually see what they scored 2015-02-23 12:41:34 +13:00
Tiehuis
6d247f282f Added easy extension of custom merge results. Example fib merge rules added. Code altered to make use of this new style 2015-02-23 12:32:29 +13:00
Tiehuis
375cdeb7da Allow spawn rate option to work as intended 2015-02-23 10:12:01 +13:00
Tiehuis
53e941bf98 Remove the c99 for loops, just for gcc users. Optional CC var set in makefile 2015-02-22 16:38:53 +13:00
Tiehuis
5d6c3f92be Reintroduced color support for ncurses version 2015-02-22 16:30:40 +13:00
Tiehuis
d8cef1def4 Rewritten man page. Removed large dependencies by writing directly for man. 2015-02-22 16:08:11 +13:00
Tiehuis
c8e55ed6e9 Added highscore functionality 2015-02-22 11:29:15 +13:00
Tiehuis
3dd23136d5 Added sdl version to exmplify extension of the main engine 2015-02-21 17:31:54 +13:00
Tiehuis
8cff1bb002 Major rewrite. Abstracting graphics code completely and allowing new extensions via a consistent drawing interface 2015-02-21 15:36:15 +13:00
Marc
da0ff59971 Makefile updated. Small init changes in game_engine 2014-12-11 07:49:42 +13:00
Tiehuis
0a76b9c452 Various changes. Alter grid allocation. Add current block count 2014-12-07 22:09:22 +13:00
Tiehuis
3085bd4eb6 Removed unsigned/signed compare warnings. Change all to size_t types 2014-12-07 09:55:18 +13:00
Tiehuis
a116923c69 Clean devel src dir 2014-12-06 13:49:54 +13:00
Tiehuis
32a4b483ee Consolidate printing styles, make more generic. Add goal option to create a custom target 2014-12-06 13:43:00 +13:00
Tiehuis
3ca10eb8d5 Correct last commit 2014-12-06 13:00:47 +13:00
Tiehuis
44bc1cbe87 correct grid malloc to calloc 2014-12-06 12:58:29 +13:00
Tiehuis
b7c45f7f87 Add some option mechanics 2014-12-06 12:57:07 +13:00
Tiehuis
569e11710f vt100 simple mode added 2014-12-06 12:02:12 +13:00
Tiehuis
01af91121b Fix curses not displaying until keypress. Callback example demonstrating some pseudo-animation 2014-12-06 11:49:16 +13:00
Tiehuis
2b1d230330 Alter looping variables to better describe intent 2014-12-06 11:20:13 +13:00
Marc
387f37a64a Abstract engine and drawing logic apart from one another. Keep gamestate in a struct 2014-12-05 10:27:25 +13:00
Marc
2195f44005 Don't need flog of negative integers 2014-12-02 00:07:34 +13:00
Björn Esser
27fd8b3218 Fix compiler warnings about unused result 2014-11-03 10:53:34 +01:00
Tiehuis
e9e6ce2715 Readd some logic details that are needed. Fix colors on some blocks being black 2014-09-13 09:52:55 +12:00
Tiehuis
2dab267db2 Merge pull request #5 from AMDmi3/auto-color
Autodetect color support, allow override through arguments
2014-09-13 09:29:20 +12:00
Dmitry Marakasov
a49ed8dd36 Autodetect color support, allow override through arguments 2014-09-12 20:23:57 +04:00
Dmitry Marakasov
f2aa753d49 Fix highscore file handling
Don't create highscore file in the current directory, instead
create in under $XDG_DATA_HOME/2048/highscore or
$HOME/.local/share/2048/highscore as modern apps should.
2014-09-12 20:22:52 +04:00
Tiehuis
37c1d3607e Fix logic error 2014-09-12 23:36:52 +12:00
Tiehuis
8843fcb658 Cleaned up source, directories, and added header file to improve general readability 2014-09-12 23:17:04 +12:00