r/commandline • • 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

69 Upvotes

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


r/commandline • • 21h ago

Fun C++ ASCII Raycasting Engine - Lite Engine

Thumbnail
gallery
3 Upvotes

Lite Engine is a raycasting game engine designed for FPS games.

I was inspired by Wolfenstein 3D and its raycasting engine. I decided to create my own engine with a similar approach, but instead of rendering pixels normally, it renders the entire game directly in the Windows console, using the █ character as a pixel.

Development started around 5 months ago. The current version (Lite Engine 0.1.8.1), supports simple geometry and different types of entities, including enemies, medkits, ammo, collectibles, and more.

Version-0.1.8.0 added support for custom asset archives (.LED). These archives can store map files, ASCII sprites, and definitions for entities and weapons. You can create and edit them using Lade, my LED editor.

Lite Engine website: https://liteengine.pinwinsoftware.com

Download Lite Engine: https://liteengine.pinwinsoftware.com/downloads

Download Lade: https://liteengine.pinwinsoftware.com/sdk/Lade