Lemon Hunt : a terminal shooter, running at basically zero idle CPU

Wait 5 sec.

I’ve been building a TUI engine in Go called Limoni, and I ended up making a game with it. It’s called Lemon Hunt. You run around a little raycasted world, shoot rats, fight a boss, and try to get on the shared A REALLL LEADBOARD !!!. The whole thing is drawn with half-block characters, which still feels a bit ridiculous to me. CAN YOU BEAT ME IN GAME? The browser version runs the same Go game code, compiled to WebAssembly. So if you don’t feel like installing anything, you can play it here: https://thebanri.github.io/limoni/?app=lemonhunt Or run it in your terminal: go install github.com/thebanri/limoni/apps/lemonhunt@latest lemonhunt I also got a little obsessed with performance. It barely uses any CPU when idle, and the rendering benchmarks are showing zero heap allocations. If you’re curious, you can check: git clone https://github.com/thebanri/limoni cd limoni/apps/lemonhunt go test -run '^$' -bench . -benchmem . The allocs/op column should say 0 for both benchmarks. Anyway, I’d love to know how it runs on your machine (and whether you can beat the boss).   submitted by   /u/kekolar22 [link]   [comments]