r/commandline • u/kekolar22 • 19h ago
Terminal User Interface I made a snake game where you eat lemons and spit the seeds at a monster
Enable HLS to view with audio, or disable this notification
so i've been working on a terminal ui library in go and i keep making little games with it to test stuff. this one kind of got out of hand
it's basically snake but every 5 lemons a monster shows up and starts chasing you. each lemon gives you 2 seeds and you spit them at it with space. if it touches your body it just bites the rest of you off which is honestly the most annoying thing ever
funniest part was tuning the difficulty. i wrote a bot with "average human" reaction times to see how far people would get and it kept dying on walls, so now you get like half a step of grace if you turn a bit late lol
oh and if you fill the whole board you win, like real snake
you can play it in the browser here: https://thebanri.github.io/limoni/?app=lemonsnake
(or go install github.com/thebanri/limoni/apps/lemonsnake@latest if you want it in your terminal)
there's a leaderboard, my best is level 11. beat it pls
press T for themes btw, there's 5
Code is here if anyone's curious: https://github.com/thebanri/limoni