Commit Graph

13 Commits

Author SHA1 Message Date
d28e93f54e Added reversed colors in status bar, to improve visual 2017-12-22 16:47:06 +01:00
0abfb0c345 The same as before, but I am a stupid, I forgot the comment 2017-12-22 16:37:15 +01:00
e91f86c50b Added BASIC autostart 2017-12-22 16:36:07 +01:00
207cbfd3cf That old X,Y coordinates generation using that ugly way was a real sh*t.
Now it is ways better (it simply does `random number` modulo `screen rows`
- or columns, depends).

There also was an error in comparing snakeX,Y with new piece of food's X,Y
Now really fixed (I hope, at least, since the bug is terribly difficult to
reproduce)

Also improved printing routine: now it can print general hexadecimal numbers,
and can locate them everywhere across first line (and beyond also, since it
is not checked, but if you do, you are a moron). Simply put byte to be print
in accumulator, column in Y index, and then jsr.
2017-12-22 16:21:19 +01:00
61a1c140f4 Probably fixed rare bug:
the pseudo-random routine pseudo-randomly generated X,Y for new piece of food
that corresponded to immediately next snake head position.
This X,Y resulted empty when checked in the routine, but suddenly after it
is overwritten with snake head, so food simply disappears.
This leads to impossible game play, because no new pieces of food are
generated if no food is previously eaten, but there is no food to eat, so...
Hope to have fixed.
2017-12-22 12:30:42 +01:00
53b3e700ca Updated comments on eat-food and self-eat detection 2017-12-22 12:14:37 +01:00
e479dcb5fe Increased waiting time before reset after gameover 2017-12-21 17:31:53 +01:00
f528c5f22a Added pause feature 2017-12-21 17:28:20 +01:00
23343d93f3 Visual improvements on status bar (score, messages) 2017-12-21 17:12:50 +01:00
3c91f4f8d6 Added support for ASCII spaces in printing function 2017-12-21 17:03:37 +01:00
6bb4a5151a Added routine for full reset of the game 2017-12-21 17:00:45 +01:00
95ae7e2ab4 Added reset after gameover, with a little delay 2017-12-21 16:49:05 +01:00
c13a54c266 First commit 2017-12-21 15:14:42 +01:00