Sacha Ligthert
|
6d23349e43
Redo how a string is pushed into an array of runes and then printed. (Closes #11)
|
1 year ago |
Sacha Ligthert
|
feced4cd7f
New and improved linting capabilities.
|
1 year ago |
Sacha Ligthert
|
76b6150a1e
Added pre-commit and replace buildscript with Taskfile
|
2 years ago |
Sacha Ligthert
|
b7af5b64ad
Fix the starting tail (no idea why it works this way).
|
2 years ago |
Sacha Ligthert
|
0732e7f809
Add build script
|
2 years ago |
Sacha Ligthert
|
763ed9b38a
#7 Moved score into its own struct. Print score and reason of death at game over.
|
2 years ago |
Sacha Ligthert
|
53e6bfdf4d
#5 Print single line tail
|
2 years ago |
Sacha Ligthert
|
44f2c5a41d
Disable useless debug coords.
|
2 years ago |
Sacha Ligthert
|
c5827793ef
Moving a constant between files.
|
2 years ago |
Sacha Ligthert
|
1a9d75574b
#8 Added a function to validate if something is a valid move.
|
2 years ago |
Sacha Ligthert
|
65ccadb6d8
#12 It sucks, doesn't work.
|
2 years ago |
Sacha Ligthert
|
47d5a6fb43
Quick clean-up of the render. =)
|
2 years ago |
Sacha Ligthert
|
2009252bb8
Updated the go.mod/.sum...
|
2 years ago |
Sacha Ligthert
|
b1cbe95485
Cleaning up comments
|
2 years ago |
Sacha Ligthert
|
aea82ab765
#4 Gives the snake a tail.
|
2 years ago |
Sacha Ligthert
|
3902d2b0a9
Prevents the snake from disappearing when its eating an apple.
|
2 years ago |
Sacha Ligthert
|
c459247529
This should be a red apple (???)
|
2 years ago |
Sacha Ligthert
|
b17918f052
Added scoring + apple mechanics
|
2 years ago |
Sacha Ligthert
|
3fb13a165f
Esthetics
|
2 years ago |
Sacha Ligthert
|
e66f2a2672
More comments
|
2 years ago |
Sacha Ligthert
|
c2134de4b7
Comments
|
2 years ago |
Sacha Ligthert
|
44724cbbb6
Clean up something that didn't work in the first place.
|
2 years ago |
Sacha Ligthert
|
de33a25864
#2 Start at the center of the screen. Always goes right. Sorta dies when it hits the border, but only when you are pressing a key. If it runs automatically into the border the game freezes.
|
2 years ago |
Sacha Ligthert
|
1f58fa5dbd
For #1 split the gameplay loop up from the key processor. Non-blocking channels proof of concept.
|
2 years ago |
Sacha Ligthert
|
9c1a9fc83d
Splitting up functions, introducing the game director
|
2 years ago |
Sacha Ligthert
|
b2928ec073
Start with adding a render block, should expand on this.
|
2 years ago |
Sacha Ligthert
|
8e10c82b67
Rename files for later
|
2 years ago |
Sacha Ligthert
|
f2c3cfd891
Use more annoying names
|
2 years ago |
Sacha Ligthert
|
78d73a7920
Trying that godoc format
|
2 years ago |
Sacha Ligthert
|
fc18d74e1f
Handle food (functions to select an emoji from a string).
|
2 years ago |