+++ title = "Snake in go" date = 2026-09-08 [taxonomies] tags = ["go", "game", "snake", "discovery"] +++ Using the [Ebitengine](https://ebitengine.org/), I made a very ugly and simple snake game, mostly to learn a bit more about how game programming works, dip my toes a little bit. You can find [the code here](https://git.bricebernard.dev/Mimu/snake-game). snake go game gif I did this purely to see how it feels to write a game loop. That's why there is only one level, randoming a constant amount of points to eat. The gif above is basically the entire game. The only addition is pressing the `spacebar` to go at maximum speed. I didn't really learn anything in Go but it was interesting to write something completely different than the usual web stuff. I did enjoy it a lot and I'm looking forward to the next one, with bevy while learning rust. It'll be more polished, maybe. If I had to point out one aspect I did not enjoy at all, it's **writing text**. It's probably because I'm coming from the web where this is so trivial, but what a nightmare to size and position. It's 100% a skill issue, I hope, but goddamn.