Commit Graph

94 Commits

Author SHA1 Message Date
Marc Tiehuis
dccd115ca5 Merge pull request #15 from besser82/bugfix/ldflags
small improvement
2016-03-30 20:46:31 +13:00
Björn Esser
1e1338f1de make TTF_FONT_PATH configurable 2016-03-29 16:52:05 +02:00
Björn Esser
12aeff6d19 obey LDFLAGS from $ENV 2016-03-29 16:44:27 +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
160b6ce7ac Update man page with highscore option 2015-02-25 14:54:45 +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
3db0537685 Wrong url fixed 2015-02-23 16:53:35 +13:00
Tiehuis
2c5ae324a8 Update screenshot for readme 2015-02-23 16:52:00 +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
2b0f6a159e Update man page to reflect removal of goal options. Goals are now set for a particular set of merges 2015-02-23 12:35:18 +13:00
Tiehuis
02197d43cc Forgot to change Makefile back after testing 2015-02-23 12:33:15 +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
a75c200842 Fixed README links 2015-02-22 20:21:48 +13:00
Tiehuis
b58907aa2e Remove lines not removed in README during merge 2015-02-22 18:19:42 +13:00
Tiehuis
72aa176f19 Remove old man pages 2015-02-22 17:54:03 +13:00
Tiehuis
9bba1cc4b8 Fix merge with upstream master pull 2015-02-22 17:46:26 +13:00
Tiehuis
1c73dbbeda Merge branch 'devel' into master branch 2015-02-22 17:41:37 +13:00
Tiehuis
032659ff1e Fixing merge conflicts 2015-02-22 17:40:27 +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
75ef085260 Small makefile fixes and readme alterations 2015-02-21 17:37:54 +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
Tiehuis
723738c706 Merge pull request #10 from besser82/improvements
fixed malformated manpage
2014-12-14 14:39:18 +13:00
Björn Esser
3ee17edd2c update readme for Fedora and EPEL 2014-12-13 16:53:19 +01:00
Björn Esser
3b82fe1c7e fixed malformated manpage 2014-12-13 16:40:04 +01:00
Björn Esser
bc6f565c61 create manpages with one target 2014-12-13 16:40:04 +01: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