Live data from Hacker News

Create a simple cross-platform desktop game with Go

sausheong.github.io

21–23 of 23 posts

Re: Create a simple cross-platform desktop game with Go

#21
post #16

Another good option is to use Raylib bindigs: https://github.com/gen2brain/raylib-go No need for HTML/js and API is pretty simple

Oh, this does look interesting. It mentions support for OpenGL ES 2.0, which (I think) means it'll work with the native OpenGL drivers for the Raspberry Pi family.

Could be a good combination for people. :)

Re: Create a simple cross-platform desktop game with Go

#22
post #16

Another good option is to use Raylib bindigs: https://github.com/gen2brain/raylib-go No need for HTML/js and API is pretty simple

Oh, this does look interesting. It mentions support for OpenGL ES 2.0, which ( I think ) means it'll work with the native OpenGL drivers for the Raspberry Pi family. Could be a good combination for people. :)

It turns out there are even Raspberry Pi specific examples in their docs:

https://github.com/gen2brain/raylib-go/tree/master/examples/...

Re: Create a simple cross-platform desktop game with Go

#23
post #12

Interesting, though what this actually does is run a local webserver so I assume it would be even simpler to just open the default web browser pointed to the local server? But then you start thinking that sound output could also be handled via the audio API and one could even play this remotely. So what you created is a webapp? Why even run it locally at all then... just some thoughts. Still a cool idea to circumvent…

Webview author here. It does not require local web server actually, it allows to inject js, css, HTML in runtime and bind go structs to is objects through the API, so the result is a self contained web app with no server. Although using a local web server may be more convenient to most web developers.

I wrote the blog post, thanks Serge for the great library! I considered the self-contained app without the web server method, but I've already done the images before and I'm way more comfortable with Go web programming (I wrote that book too).
Post reply on HN