5 ms·
It seems a shame that more hasn't been done with Go and games. The concurrency facilities seem particularly fantastic for this.
by stcredzero 14y ago
It seems a shame that more hasn't been done with Go and games. The concurrency facilities seem particularly fantastic for this.
- enneff 14y agoA friend did a couple of of the Ludlum Dare comps in Go. Here's the most recent one: https://github.com/kurrik/ld26 https://github.com/kurrik/ld26
- iand 14y agoThere is quite a lot of gamedev activity in Go and quite a few bindings to GL, SDL and the like. I've written a (bad) game in it and am currently working on a better one. I know of at least one commercial game being written in it. There are lots of emulators written in go for some reason too. I'm finding the multiplayer aspects of my current game to be an excellent fit for Go, making good use of concurrency and networking.
- lclarkmichalek 14y agoI'm doing a little game in it at the moment. Had to write my own allegro bindings (https://github.com/bluepeppers/allegro https://github.com/bluepeppers/allegro), but it's fun enough. One thing I really enjoy is mixing event handling with the goroutines. For example, I wanted to start scrolling the map on the user's click, and then stop when they release the button. So on click, I fired up a goroutine just to watch for the button release and handle the scrolling. So much easier than having some variable somewhere called "isButtonXDown" and then checking it in the main loop. Of course, you have to be carefully with concurrency, but it's a lot of fun.