From f374622528d6ccf9a5fa7158b23f2ca296a9c7b6 Mon Sep 17 00:00:00 2001 From: girst Date: Sat, 19 May 2018 01:40:18 +0200 Subject: [PATCH] update readme TODOs --- README.md | 38 +++++++++++--------------------------- 1 file changed, 11 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index 4ef7b18..f06e2e5 100644 --- a/README.md +++ b/README.md @@ -15,14 +15,20 @@ r to restart, p to pause, q to quit. ## TODO - DONE base game: fixed field size, fixed speed - - food (unicode) - - put 'sprites' into `schemes.h` - - snake elongates - - unicode chars + - DONE food (unicode) + - DONE put 'sprites' into `schemes.h` + - DONE snake elongates + - DONE unicode chars + - DONE input buffer (so fast 180° turns get executed) - timer, score, increasing speed + - keybindings for restart, pause, redraw + - only redraw changing parts of the screen + - on dying: show end screen, allow restarting - special items: slower snake, shorter snake, etc. - - input buffer (so fast 180° turns get executed) + - decaying points (more points the faster you get the food) - wall-wrap-around mode? + - escape sequences out of whack when stopping (^Z) and resuming + - fix all `grep -n TODO viiper.c` ## Notes @@ -36,25 +42,3 @@ i intend to put bonus items in the game that will only be visible for a short time. when they get near the end of their life, SGI-5 (blink) will make them blink. this is supported in gnome-term 3.28 (vte 0.52) which is supplied with fedora 28. [bug report](https://bugzilla.gnome.org/show_bug.cgi?id=579964) - -### drawing the snake - -to draw the snake with box chars, we need to know which glyph to draw. - -our current position is X, and our predecessor and successor are on one of -`[NESW]` of us (we need to compute the relpos from the absolute). we need to -draw a line between them. note that head and tail have `NULL` as pre-/successor. - -``` - [N] -[W][X][E] - [S] -``` - -6 combinations (+ reverse): - - N-S -> `||` - - W-E -> `==` - - N-E -> `'=` - - E-S -> `,=` - - S-W -> `=,` - - W-N -> `='` -- 2.39.3